summaryrefslogtreecommitdiff
path: root/utils
Commit message (Collapse)AuthorAgeFilesLines
* Update generate_netbsd_ioctls.awk for NetBSD 9.99.3Kamil Rytarowski2019-08-081-0/+6
| | | | | | | Register new ioctl argument types passed in ioctl(2) calls. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@368246 91177308-0d34-0410-b5e6-96231b3b80d8
* Update the ioctl(2) list in sanitizers with NetBSD 8.99.34Kamil Rytarowski2019-02-051-1/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@353224 91177308-0d34-0410-b5e6-96231b3b80d8
* Update the file headers across all of the LLVM projects in the monorepoChandler Carruth2019-01-192-20/+15
| | | | | | | | | | | | | | | | | to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@351636 91177308-0d34-0410-b5e6-96231b3b80d8
* Update generate_netbsd_ioctls.awk for NetBSD 8.99.25Kamil Rytarowski2018-10-311-127/+9
| | | | | | | | Add dynamic detection of header files in /usr/include. Handle "nvlist_ref_t" needed by npf(4) ioctl(2) operations. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@345715 91177308-0d34-0410-b5e6-96231b3b80d8
* Update generate_netbsd_syscalls.awk for NetBSD 8.99.25Kamil Rytarowski2018-10-301-8/+4
| | | | | | | | | | | Register new syscall getsockopt2. Drop removed syscalls pmc_get_info and pmc_control. While there address compiler warnings about potentially unused variables. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@345580 91177308-0d34-0410-b5e6-96231b3b80d8
* Drop now hidden ioctl(2) operations for NetBSDKamil Rytarowski2018-10-301-11/+7
| | | | | | | POWER_IOC_GET_TYPE_WITH_LOSSAGE is no longer accessible from userland. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@345572 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] Cleanup sorting functionsVitaly Buka2018-05-091-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@331915 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove more references to ptrace_pt_{g,s}et_sigmaskKamil Rytarowski2018-03-031-4/+0
| | | | | | | | | | | These operations are now obsolete on NetBSD and will be removed. No functional change for other OSes. Sponsored by <The NetBSD Foundation> git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@326663 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove obsolete ptrace(2) operations from NetBSDKamil Rytarowski2018-03-031-4/+0
| | | | | | | | | | PT_SET_SIGMASK and PT_GET_SIGMASK will be removed from NetBSD without backward compat (it shortlived in a development branch). Sponsored by <The NetBSD Foundation> git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@326657 91177308-0d34-0410-b5e6-96231b3b80d8
* Skip two more ioctl interceptors for NetBSDKamil Rytarowski2018-02-261-0/+2
| | | | | | | | | | | | | | | Don't intercept: - HFSC_IF_ATTACH - HFSC_MOD_CLASS These operations conflict on NetBSD 32-bit with: - PRIQ_IF_ATTACH - PRIQ_MOD_CLASS Sponsored by <The NetBSD Foundation> git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@326084 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement a large part of NetBSD syscalls of netbsd_syscall_hooks.hKamil Rytarowski2018-02-151-3/+2581
| | | | | | | | | | | This is a follow up of: r325206 - Add NetBSD syscall hooks skeleton in sanitizers Sponsored by <The NetBSD Foundation> git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@325248 91177308-0d34-0410-b5e6-96231b3b80d8
* Teach sanitizer about NetBSD specific ioctl(2) callsKamil Rytarowski2018-02-151-0/+757
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Introduce handling of 1200 NetBSD specific ioctl(2) calls. Over 100 operations are disabled as unavailable or conflicting with the existing ones (the same operation number). Add a script that generates the rules to detect ioctls on NetBSD. The generate_netbsd_ioctls.awk script has been written in NetBSD awk(1) (patched nawk) and is compatible with gawk. Generate lib/sanitizer_common/sanitizer_interceptors_ioctl_netbsd.inc with the awk(1) script. Update sanitizer_platform_limits_netbsd accordingly to add the needed definitions. Sponsored by <The NetBSD Foundation> Reviewers: joerg, vitalybuka, eugenis, dvyukov Reviewed By: vitalybuka Subscribers: kubamracek, llvm-commits, mgorny, fedor.sergeev, #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D41636 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@325212 91177308-0d34-0410-b5e6-96231b3b80d8
* Add NetBSD syscall hooks skeleton in sanitizersKamil Rytarowski2018-02-151-0/+416
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Implement the skeleton of NetBSD syscall hooks for use with sanitizers. Add a script that generates the rules to handle syscalls on NetBSD: generate_netbsd_syscalls.awk. It has been written in NetBSD awk(1) (patched nawk) and is compatible with gawk. Generate lib/sanitizer_common/sanitizer_platform_limits_netbsd.h that is a public header for applications, and included as: <sanitizer_common/sanitizer_platform_limits_netbsd.h>. Generate sanitizer_syscalls_netbsd.inc that defines all the syscall rules for NetBSD. This file is modeled after the Linux specific file: sanitizer_common_syscalls.inc. Start recognizing NetBSD syscalls with existing sanitizers: ASan, ESan, HWASan, TSan, MSan. Sponsored by <The NetBSD Foundation> Reviewers: joerg, vitalybuka, kcc, dvyukov, eugenis Reviewed By: vitalybuka Subscribers: hintonda, kubamracek, mgorny, llvm-commits, #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D42048 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@325206 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] Remove llvm-symbolizer from compiler-rt/utils/Alexander Potapenko2012-11-123-397/+0
| | | | | | | | This is the first (1/2) part of a change that moves llvm-symbolizer to llvm/tools/, which will allow to build it with both cmake and configure+make. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167722 91177308-0d34-0410-b5e6-96231b3b80d8
* llvm-symbolizer for Mac: add support for reading DWARF from separate object ↵Alexey Samsonov2012-10-081-40/+87
| | | | | | file in resource directory generated by dsymutil. Fix minor symbol table lookup issues. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@165389 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] llvm-symbolizer: enable accessing symbol table (libObject is ↵Alexey Samsonov2012-09-211-20/+17
| | | | | | fixed in r164365) and replace string with std::string git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@164367 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] llvm-symbolizer: turn off symbol table lookup by default while ↵Alexey Samsonov2012-09-181-1/+3
| | | | | | getSymbolAddress from libObject returns wrong values git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@164113 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] add --demangle option to llvm-symbolizer (for now just assume ↵Alexey Samsonov2012-09-071-0/+17
| | | | | | that __cxa_demangle option is available) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163376 91177308-0d34-0410-b5e6-96231b3b80d8
* [compiler-rt] Recurse into 'utils' directory in CMake build of compiler-rt, ↵Alexey Samsonov2012-09-043-1/+19
| | | | | | enable build of llvm-symbolizer binary (currently for one target only) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163138 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] llvm-symbolizer util: make it more conforming to LLVM code ↵Alexey Samsonov2012-09-042-237/+316
| | | | | | style, and support fetching inlining info git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163133 91177308-0d34-0410-b5e6-96231b3b80d8
* [compiler-rt] fixup for r162988 - remove accidentally commited fileAlexey Samsonov2012-08-311-67/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162989 91177308-0d34-0410-b5e6-96231b3b80d8
* [compiler-rt] Move draft code for llvm-symbolizer to ↵Alexey Samsonov2012-08-312-0/+304
compiler-rt/utils/llvm-symbolizer after chandlerc's suggestion git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162988 91177308-0d34-0410-b5e6-96231b3b80d8