summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* ART: Improve the symbolize scriptAndreas Gampe2015-07-091-1/+13
| | | | | | | | Allow a list of files to pull. This improves turnaround time when tracking down perf hotspots. Bug: 21760614 Change-Id: I824e875053940d59eb00f9d796ef402632905c39
* ART: Symbolize all oat files in /data folder.Zheng Xu2015-07-011-19/+12
| | | | | | | | | | | | Now we store oat files not only in /data/dalvik-cache, but also in other places. This patch tries to pull all oat files from device /data folder. Bug: 21760614 (cherry picked from commit 468bcf63207420f18c0c8a8621aa2d774393c155) Change-Id: Icf81cf28c29da2e248e4fbd84f5920f46ddc4cd6
* Merge "ART stack unwinding fixes for libunwind/gdb/lldb." into mnc-devDavid Srbecky2015-06-191-1/+1
|\
| * ART stack unwinding fixes for libunwind/gdb/lldb.David Srbecky2015-06-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dex2oat can already generate unwinding and symbol information which allows tools to create backtrace of mixed native and Java code. This is a cherry pick from aosp/master which fixes several issues. Most notably: * It enables generation of ELF-64 on 64-bit systems (in dex2oat, C compilers already produce ELF-64). Libunwind requires ELF-64 on 64-bit systems for backtraces to work. * It enables loading of ELF files with dlopen. This is required for libunwind to be able to generate backtrace of current process (i.e. the process requesting backtrace of itself). * It adds unit test to test the above (32 vs 64 bit, in-proces vs out-of-process, application code vs framework code). * Some other fixes or clean-ups which should not be of much significance but which are easier to include to make the important CLs cherry-pick cleanly. This is squash of the following commits from aosp/master: 7381010 ART: CFI Test e1bbed2 ART: Blacklist CFI test for non-compiled run-tests aab9f73 ART: Blacklist CFI test for JIT 4437219 ART: Blacklist CFI test for Heap Poisoning a3a49fe Switch to using ELF-64 for 64-bit architectures. 297ed22 Write 64-bit address in DWARF if we are on 64-bit architecture. 24981a1 Set correct size of PT_PHDR ELF segment. 1a146bf Link .dynamic to .dynstr 67a0653 Make some parts of ELF more (pointer) aligned. f50fa82 Enable 64-bit CFI tests. 49e1fab Use dlopen to load oat files. 5dedb80 Add more logging output for dlopen. aa03870 Find the dlopened file using address rather than file path. 82e73dc Release dummy MemMaps corresponding to dlopen. 5c40961 Test that we can unwind framework code. 020c543 Add more log output to the CFI test. 88da3b0 ART: Fix CFI test wrt/ PIC a70e5b9 CFI test: kill the other process in native code. ad5fa8c Support generation of CFI in .debug_frame format. 90688ae Fix build - large frame size of ElfWriterQuick<ElfTypes>::Write. 97dabb7 Fix build breakage in dwarf_test. 388d286 Generate just single ARM mapping symbol. f898087 Split .oat_patches to multiple sections. 491a7fe Fix build - large frame size of ElfWriterQuick<ElfTypes>::Write (again). 8363c77 Add --generate-debug-info flag and remove the other two flags. 461d72a Generate debug info for core.oat files. Bug: 21924613 Change-Id: I3f944a08dd2ed1df4d8a807da4fee423fdd35eb7
* | Follow up on CL 151605Sebastien Hertz2015-06-181-4/+6
|/ | | | | | | | | | | | | | - Fixes return type of StackedShadowFrameRecord::GetType - Makes StackedShadowFrameType an enum class (scoped enum) - Moves DeoptimizationReturnValueRecord and StackedShadowFrameRecord to thread.cc file and use forward declaration in thread.h header - Fixes tools/generate-operator-out.py for scoped enum classes. Bug: 20845490 (cherry picked from commit f795869da0a1fa006fdcdacd8afb6149a63fc1a7) Change-Id: I6b67e288b1db563699161e58ec2e2330d42dd8f5
* No need to relocate the core image for the art script.Nicolas Geoffray2015-05-061-0/+1
| | | | Change-Id: Idd540175e197602e318eeb3764f552372aadce1f
* Bump jdwp timeout to 12 minutes.Nicolas Geoffray2015-05-061-1/+1
| | | | | | A run on volantis now is around 10 minutes. Change-Id: I6e1f436d71da6eec55e984f7af99ba34438e49fb
* Re-enable JDWP tests on volantis.Nicolas Geoffray2015-05-061-5/+0
| | | | Change-Id: Ibf1d16c9830155526cee38e242a4de9a3d5ed943
* Mark the test as failing while investigating.Nicolas Geoffray2015-04-251-0/+6
| | | | | | | | Recent linker changes required to increase the scope of our chroot-like environment on devices. There is however just this test failing. Change-Id: I496be04693b6cebefe68a0ac04947ed238b53e0d
* Don't use 'sh' on the host.Nicolas Geoffray2015-04-241-1/+3
| | | | Change-Id: I319c08367d143443425bc01f4dda28ad46417c7e
* Merge "Use 'sh' explicitly when invoking the art script."Nicolas Geoffray2015-04-241-1/+1
|\
| * Use 'sh' explicitly when invoking the art script.Nicolas Geoffray2015-04-241-1/+1
| | | | | | | | Change-Id: I5e11483dd75f9ab4dd67f3bbbc45485726d01e34
* | Make tests assume ANDROID_ROOT is not /system.Nicolas Geoffray2015-04-241-0/+1
|/ | | | | | This is to enable better chroot-like testing. Change-Id: I943c68b0ebcdab2f107f808b466ac694085255aa
* Propertly quote arguments after latest adb/vogar changes.Nicolas Geoffray2015-04-221-1/+1
| | | | Change-Id: If3452b616df48ecec0d85ac34d8af9253c3ea925
* Disable tests for volantis.Nicolas Geoffray2015-04-201-0/+5
| | | | | | They're triggering a segfault. Change-Id: If99bd9b2faba5422320764ca52808720d533745a
* Run jdwp tests now that localhost issues have been solved.Nicolas Geoffray2015-04-201-5/+0
| | | | | Change-Id: I5ae67c2caf73695316ea9530274e97272114af1b See: https://android-review.googlesource.com/#/c/147244/.
* ART: Streaming trace modeAndreas Gampe2015-04-151-0/+186
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add a streaming mode for tracing. Streaming uses a buffer of 16KB and writes to the output when that buffer gets full. Streaming mode can be enabled with -Xmethod-trace-stream and is currently not exposed otherwise. Add a python script that can parse the streaming format, which simply contains strings for newly encountered threads and methods inline, and create output that can be used with traceview. Add Trace::Pause and Trace::Abort, which can pause and abort tracing. Abort is different from Stop in that it does not write the data. Add code to the zygote hooks JNI implementation that pauses tracing before the fork, making sure that a child cannot clobber the parent's data. Add code to the zygote hooks JNI implementation that aborts old tracing and starts new tracing in the child after the fork. Currently base the output on the pid. This will not work on an unmodified device, as the profiles directory is not generally writable, but we do not have enough information at that point. Consider a scheme that restarts tracing later. Change-Id: I93c7bf87e35af582bdfdd3ecc7c52454514220dd
* ART: Fix failure-log scriptAndreas Gampe2015-04-101-1/+1
| | | | | | The transaction error class has been changed, update the script. Change-Id: Ibc4dfb8cdca01eb9dc9e868c18d36bf6badb0521
* Remove fuzzer build-time dependency on core image.Calin Juravle2015-04-072-2/+17
| | | | | | | | | | | | Test if the image exists at runtime. Forcing this dependency slows down development. For example, if after a change dex2oat does not compile anymore you need to first revert to a stable state and rebuild the core image to be able to move foreward. Since this is a test tool, it is ok to assume that the core image has already been built if host execution was selected. Change-Id: Id61a960ba62bb8d1d21acb07114f72208fbc9720
* Update dexfuzz after optimizing default selection.Stephen Kyle2015-04-026-6/+6
| | | | | | | Now that the optimizing compiler is the default backend, the quick compiler must be explicitly selected as an argument. Change-Id: I5e6b8e6a79432118e0a91c9aea85bdd9cd7305dc
* Merge "Adds host execution to dexfuzz."Calin Juravle2015-04-0126-418/+325
|\
| * Adds host execution to dexfuzz.Stephen Kyle2015-03-2626-418/+325
| | | | | | | | | | | | | | | | Use --host to execute fuzzed tests using the host-build of ART. See the README for more information. Also includes some refactoring of Executors/Devices. Change-Id: I789d6b3e102074b22431d8afa5a5c966b2710272
* | Tests still failing on buildbot's devices.Nicolas Geoffray2015-03-311-0/+5
| | | | | | | | Change-Id: I7085706884c64978eaef6ba9eb0900b9fe9e4112
* | Workaround for network issues: use 127.0.0.1.Nicolas Geoffray2015-03-311-9/+6
| | | | | | | | Change-Id: I3c0ed810165bc8945c1dfaa028eb9a7bed674281
* | Disable host testing for now.Nicolas Geoffray2015-03-301-0/+2
| | | | | | | | | | | | Buildbot machines hare not happy with gethostbyname. Change-Id: I9dd878b442686a3d1dbcad54dbca7aabc4adbdf3
* | On host, say the debuggee needs to be run through bash.Nicolas Geoffray2015-03-301-1/+3
| | | | | | | | Change-Id: I2cf7d3123e9d184f40cbaf49f8ac69e1481cc7a4
* | Please vogar by not giving a vm-command on host.Nicolas Geoffray2015-03-301-2/+8
| | | | | | | | | | | | | | If the host is configured with shell (and not bash or mksh), the 'art' script cannot be run by vogar. Change-Id: Ib88cea2e45de1ff54477ae8ec3a8e831155d86df
* | Tweak test script while investigating failures.Nicolas Geoffray2015-03-301-0/+6
| | | | | | | | | | | | | | - Disable runs on devices failing, - Add verbose for host failures. Change-Id: I4efecfbc40f6666e62fd0835257d5b6c3cdcc798
* | New localhost failures....Nicolas Geoffray2015-03-261-9/+6
| | | | | | | | Change-Id: Id3992f3c04dfa8fad130073ee9ea4f4d715c8432
* | Merge "Add a script to run jdwp tests on the chrome buildbot."Nicolas Geoffray2015-03-261-0/+71
|\ \ | |/ |/|
| * Add a script to run jdwp tests on the chrome buildbot.Nicolas Geoffray2015-03-261-0/+71
| | | | | | | | Change-Id: Ia702fd884f10abcb0887f4964c7df3c04a508984
* | Mark the tests as failing for now.Nicolas Geoffray2015-03-251-1/+5
| | | | | | | | | | | | | | Need to investigate what is going on with the network on the devices... Change-Id: Ic308e768989bfbdbb086a4d09e31a7cc9a327d70
* | Make sure localhost is enabled on testing devices.Nicolas Geoffray2015-03-251-0/+4
|/ | | | Change-Id: I9057dd77a8c760cc5881f3b2eaeb14a0d9910b51
* Change RETURN_VOID_BARRIER to RETURN_VOID_NO_BARRIERMathieu Chartier2015-03-192-3/+3
| | | | | | | | We want to default to having a barrier for the case where we don't dex to dex. Bug: 19762303 Change-Id: I60348d89eaf0b9e1e480298afcecbb5f52e8661b
* Add a script to be run by test device on buildbot.Nicolas Geoffray2015-03-181-0/+28
| | | | Change-Id: Ifb0f739dfa56bb32b07a47ff48282b2a786009ac
* Update test expections after network changes in kernel/libcore.Nicolas Geoffray2015-03-161-0/+11
| | | | Change-Id: I1cdb55b2320a451d82b24a1f497930c12dd506cb
* Update expectations for libcore bug.Nicolas Geoffray2015-03-131-0/+6
| | | | Change-Id: I88b949956440b8f0bc8f2bfe731fb7a3d18652e6
* ART: Allow multiple invoke-with for art scriptAndreas Gampe2015-03-121-1/+1
| | | | | | | Just like run-test, allow multiple invoke-with arguments that are chained together. Change-Id: I9f0d2d23fbff1cef32f0bb69e1bb803e157cfb73
* ART: Fix init-failure graph toolAndreas Gampe2015-03-091-1/+20
| | | | | | | | | Fix missing entries when the failed class doesn't appear in the stack trace. Add coloring for loadLibrary and getProperty. Change-Id: I35df917ac8b1ada1f6eb2e418fa6ff9ca6b17048
* Merge "Update expectations for volantis."Nicolas Geoffray2015-02-261-0/+7
|\
| * Update expectations for volantis.Nicolas Geoffray2015-02-261-0/+7
| | | | | | | | Change-Id: Icd4aecd9b7a274febfd99bad6432bb9d46f9e1d3
* | ART: Update description of failing libcore testsDavid Brazdil2015-02-251-3/+8
| | | | | | | | | | | | | | One of the tests that was described as failing on volantis fails on hammerhead too. It was moved to a new category. Change-Id: Ie58266d51d3aa180a36a460035ea7f016c0b7e3d
* | Merge "ART: Disable libcore crypto test failing on target"David Brazdil2015-02-241-1/+2
|\ \
| * | ART: Disable libcore crypto test failing on targetDavid Brazdil2015-02-241-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | Another test failing due to missing loop network device on hammerhead and volantis bots. We disable it until the device configuration issue is fixed. Change-Id: I5b4610d706a8e4bdf178764f64f2d4359a83682d
* | | Merge "ART: Enable more libcore tests (crypto)"David Brazdil2015-02-241-0/+2
|\ \ \ | |_|/ |/| |
| * | ART: Enable more libcore tests (crypto)David Brazdil2015-02-241-0/+2
| |/ | | | | | | | | | | | | | | | | This patch enables additional libcore tests run by the ART buildbots. These are tests from the org.apache.harmony.crypto and libcore.javax.crypto packages and take extra ~8 minutes to run on target and ~2 minutes on host. Change-Id: I7cd314eca654320104fee26d8c34437450814dc2
* | ART: Disable one more libcore test failing on hammerheadDavid Brazdil2015-02-241-1/+2
|/ | | | | | | One more test from the harmony package fails due to the locale issue on hammerhead. This patch disables it. Change-Id: I1f3941bfcc20d5b2e23fe5ae963676138eecccb8
* Merge "ART: Disable libcore tests failing on bots"David Brazdil2015-02-241-0/+25
|\
| * ART: Disable libcore tests failing on botsDavid Brazdil2015-02-241-0/+25
| | | | | | | | | | | | | | | | | | | | | | Some tests in previous commits are failing on the testing devices. Tests dependent on DateTimeFormatter fail on hammerhead due to misconfigured locales and tests with a server running on localhost fail due to the loop device being switched off on volantisg. These problems will be further investigated but this patch disables them for the time being. Change-Id: I2dde178925de555f26a4d532be15487f499571b4
* | ART: Enable more libcore tests (harmony package)David Brazdil2015-02-242-1/+18
|/ | | | | | | | This patch enables additional libcore tests run by the ART buildbots. These are tests from the org.apache.harmony.* packages and take extra ~5 minutes to run on target and ~2 minutes on host. Change-Id: Idb9fc09ac7df460bd4337bc5151301adddea4b97