summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/asan/scripts
Commit message (Collapse)AuthorAgeFilesLines
...
* [asan] Allow users of asan_symbolize.py to forbid fallback to atos/addr2line.Sergey Matveev2015-03-061-0/+3
| | | | llvm-svn: 231492
* [asan] Support 'su' rooted devices in ASan setup script.Evgeniy Stepanov2015-02-161-41/+117
| | | | | | | | | | | | | | | | | Android devices may not support 'adb root', but be rooted with 'su' binary. This patch makes it possible to install ASAN to such devices. When --use-su flag is specified, most 'adb ...' commangs are changed to 'adb su -c "..."'. Some other notes: * 'readlink' changed to 'ls -l', since not all devices have readlink in their firmware. * removing ASan library step moved to very end, because 'su' may not run properly without this library until shell will be restarted. Patch by Dmitry <ripp at yandex-team dot ru>. llvm-svn: 229368
* [asan] Add one more wait-for-device in the Android setup script.Evgeniy Stepanov2015-01-291-0/+1
| | | | llvm-svn: 227473
* Fix indents on asan_symbolize.py's argument parsing code. No behavior change.Nico Weber2015-01-281-10/+13
| | | | llvm-svn: 227327
* Make asan_symbolize.py not crash on Windows.Nico Weber2015-01-281-18/+25
| | | | | | | | asan_symbolize.py isn't needed on Windows, but it's nice if asan has a unified UI on all platforms. So rather than have asan_symolize.py die on startup due to it importing modules that don't exist on Windows, let it just echo the input. llvm-svn: 227326
* [asan] Change detection of allow_user_segv_handler on Android.Evgeniy Stepanov2015-01-161-1/+1
| | | | llvm-svn: 226273
* [ASan] Fix the logic that decides whether we need to spawn a new ↵Alexander Potapenko2014-12-221-3/+3
| | | | | | llvm-symbolizer in asan_symbolize.py llvm-svn: 224710
* [ASan] Allow the users of SymbolizationLoop to make use of the --dsym_hint ↵Alexander Potapenko2014-11-211-11/+39
| | | | | | | | | | option in llvm-symbolizer Let the users of SymbolizationLoop define a function that produces the list of .dSYM hints (possible path to the .dSYM bundle) for the given binary. Because the hints can't be added to an existing llvm-symbolizer process, we spawn a new symbolizer process ones each time a new hint appears. Those can only appear for binaries that we haven't seen before. llvm-svn: 222535
* [asan] Minor tweak to asan_device_setup.Evgeniy Stepanov2014-10-061-1/+2
| | | | | | | Add another wait-for-device which may fix a flaky setup error. Fix output message. llvm-svn: 219117
* [asan] Support Android/x86 in asan_device_setup.Evgeniy Stepanov2014-10-031-13/+28
| | | | llvm-svn: 218968
* [sanitizer] Android build cleanup.Evgeniy Stepanov2014-09-291-2/+2
| | | | | | | | | | | | * Detect Android toolchain target arch and set correct runtime library name. * Merged a lot of Android and non-Android code paths. * Android is only supported in standalone build of compiler-rt now. * Linking lsan-common in ASan-Android (makes lsan annotations work). * Relying on -fsanitize=address linker flag when building tests (again, unification with non-Android path). * Runtime library moved from lib/asan to lib/linux. llvm-svn: 218605
* [asan] Fix SELinux setup on Android-K.Evgeniy Stepanov2014-09-291-2/+27
| | | | | | | On pre-L devices SELinux is set up in such a way that zygote wrapper has to be in system_file context, not zygote_exec. llvm-svn: 218599
* [asan] asan_device_setup improvements.Evgeniy Stepanov2014-09-191-1/+14
| | | | | | | | * Allow user SEGV handler if Android-L-like setup is detected. Necessary for correctness. * Change file context labels on the wrapper script to appease SELinux. llvm-svn: 218124
* [asan] Initialize logfile in asan_symbolize.py to sys.stdin.Sergey Matveev2014-09-181-1/+1
| | | | llvm-svn: 218072
* [asan] Fix a bug in asan_symbolize.pySergey Matveev2014-09-181-1/+1
| | | | | | | Do not forget to add newlines between multiple symbolized lines corresponding to a single input line (i.e. inlining). llvm-svn: 218071
* [asan] Preserve existing LD_PRELOAD setting on Android.Evgeniy Stepanov2014-09-111-1/+1
| | | | llvm-svn: 217584
* [asan] Update asan_device_setup to support Android L Preview.Evgeniy Stepanov2014-09-011-23/+42
| | | | llvm-svn: 216884
* [ASan] Add new options for asan_symbolize.py script.Alexey Samsonov2014-08-111-16/+52
| | | | | | | | | | | | | | | | The patch adds new features in asan-symbolizer script which are helpful for using ASan on embedded systems: 1) add cross-compile prefix for binutils 2) define path to sysroot with sanitized binaries Features are enabled by command line options. The patch also extends command line interface with help option. Reviewed in http://reviews.llvm.org/D4703. Patch by Maria Guseva! llvm-svn: 215381
* Add FreeBSD support to the Asan symbolization scriptViktor Kutuzov2014-07-181-1/+1
| | | | | | Differential Revision: http://reviews.llvm.org/D4560 llvm-svn: 213370
* [ASan] Factor out SymbolizationLoop.process_line() function to let PythonAlexander Potapenko2014-07-161-25/+31
| | | | | | scripts that import asan_symbolize to symbolize their reports line by line. llvm-svn: 213136
* [asan] Remove runtime assembly helpers.Evgeniy Stepanov2014-07-071-266/+0
| | | | | | | | Remove helper functions that were used in assembly instrumentation. Patch by Yuri Gorshenin. llvm-svn: 212456
* [asan] asan_device_setup: extend search pathEvgeniy Stepanov2014-06-051-2/+2
| | | | | | In standalone build asan-rt is stored in yet another path. llvm-svn: 210259
* [asan] Fix x86 asm instrumentation to preserve flags.Evgeniy Stepanov2014-05-211-4/+4
| | | | | | | | | This change also enables asm instrumentation in asan tests that was accidentally disabled yearlier, and adds a sanity test for that. Patch by Yuri Gorshenin. llvm-svn: 209282
* [asan] update asan_symbolize.py to use the new llvm-symbolizer flag syntaxKostya Serebryany2014-05-191-1/+1
| | | | llvm-svn: 209116
* asan_symbolize.py: use llvm-symbolizer results even if it returned function ↵Alexey Samsonov2014-03-051-2/+2
| | | | | | name w/o file/line info llvm-svn: 202983
* Improve llvm-symbolizer discovery in asan_symbolize.pyAlexey Samsonov2014-03-051-17/+24
| | | | llvm-svn: 202982
* [asan] Install asan_device_setup to bin/ when targetting Android.Evgeniy Stepanov2014-02-271-0/+4
| | | | | | | | | | asan_device_setup is a utility that prepares a device to run code built with ASan. Essentially, it installs ASan runtime library into the system. For this reason, it has to be at a predictable relative path from the runtime library itself. We also plan to distribute this utility, packaged with runtime library and maybe llvm-symbolizer, to the users. llvm-svn: 202362
* [asan] asan_device_setup: fix a typo in usage textEvgeniy Stepanov2014-02-261-2/+2
| | | | llvm-svn: 202246
* [asan] Remove .sh extension from asan_device_setup.Evgeniy Stepanov2014-02-261-1/+1
| | | | llvm-svn: 202245
* [asan] Changes to asm instrumentation must be done through the generator script.Evgeniy Stepanov2014-02-201-1/+1
| | | | llvm-svn: 201766
* [asan] Disable asm instrumentation and tests on Mac.Evgeniy Stepanov2014-02-191-3/+7
| | | | | | Move asm tests to their own file. llvm-svn: 201653
* [asan] Added assembly functions for x86/amd64 asan.Evgeniy Stepanov2014-02-191-0/+262
| | | | | | | | | These are runtime support functions for inline assembly instrumentation. This is a re-submit of r201402. Patch by Yuri Gorshenin. llvm-svn: 201650
* [asan] Revert r201402, r201404.Evgeniy Stepanov2014-02-141-215/+0
| | | | | | Test fails in bootstrap build. llvm-svn: 201411
* [asan] Added assembly functions for x86/amd64 asan.Evgeniy Stepanov2014-02-141-0/+215
| | | | | | | | These are runtime support functions for inline assembly instrumentation. Patch by Yuri Gorshenin. llvm-svn: 201402
* [asan] asan_device_setup.sh: allow overriding adb path.Evgeniy Stepanov2014-02-031-2/+2
| | | | llvm-svn: 200698
* [asan] Fix asan_device_setup.sh failure on userdebug Android.Evgeniy Stepanov2014-01-291-0/+2
| | | | llvm-svn: 200382
* [asan] Android setup: do "adb root" before "adb remount".Evgeniy Stepanov2014-01-271-0/+2
| | | | llvm-svn: 200199
* [asan] Add an ASan-on-Android installation script.Evgeniy Stepanov2014-01-241-0/+190
| | | | llvm-svn: 200009
* [ASan] Make asan_symbolize.py fall back to ASAN_SYMBOLIZER_PATH (which is ↵Alexander Potapenko2013-10-311-2/+4
| | | | | | used when ASAN_OPTIONS=symbolize=1) if LLVM_SYMBOLIZER_PATH is empty. llvm-svn: 193758
* [ASan] Close stderr before launching atos in asan_symbolize.pyAlexander Potapenko2013-07-041-3/+6
| | | | llvm-svn: 185631
* [ASan] Cache atos processes to make Darwin symbolication faster.Alexander Potapenko2013-07-011-12/+34
| | | | | | Patch by Jesse Ruderman<jruderman@gmail.com> llvm-svn: 185325
* [ASan] Do not buffer stdin in asan_symbolize.pyAlexander Potapenko2013-05-311-1/+4
| | | | llvm-svn: 183006
* [ASan] Minor cleanup: remove a couple of unused variables.Alexander Potapenko2013-05-301-3/+0
| | | | llvm-svn: 182915
* [asan] added flag -d|--demangle to asan_symbolize.py, makes ↵Kostya Serebryany2013-02-181-2/+11
| | | | | | addr2line/llvm-symbolizer demangle the functions names llvm-svn: 175429
* [ASan] use llvm-symbolizer for ASan lit-style tests on MacAlexey Samsonov2012-10-081-7/+5
| | | | llvm-svn: 165391
* Do not patch the instruction address when symbolizing the reports.Alexander Potapenko2012-10-021-32/+1
| | | | | | Instead, print the correct address at runtime. llvm-svn: 165018
* Fixed a number of gpylint warnings, added binary names filtering (useful for ↵Alexander Potapenko2012-09-261-66/+97
| | | | | | Chrome), minor fixes. llvm-svn: 164695
* Encapsulate the main loop into a class to allow reusing it.Alexander Potapenko2012-09-261-26/+28
| | | | llvm-svn: 164694
* Set --use-symbol-table=true as Alexey has already resolved the FIXME.Alexander Potapenko2012-09-261-2/+1
| | | | llvm-svn: 164693
* [ASan] make asan_symbolize script work if there is no llvm-symbolizer availableAlexey Samsonov2012-09-191-0/+4
| | | | llvm-svn: 164214
OpenPOWER on IntegriCloud