History log of /art/test/911-get-stack-trace/stack_trace.cc
Revision Date Author Comments
8cf9cb386cd9286d67e879f1ee501ec00d72a4e1 19-Jul-2017 Andreas Gampe <agampe@google.com> ART: Include cleanup

Let clang-format reorder the header includes.

Derived with:

* .clang-format:
BasedOnStyle: Google
IncludeIsMainRegex: '(_test|-inl)?$'

* Steps:
find . -name '*.cc' -o -name '*.h' | xargs sed -i.bak -e 's/^#include/ #include/' ; git commit -a -m 'ART: Include cleanup'
git-clang-format -style=file HEAD^
manual inspection
git commit -a --amend

Test: mmma art
Change-Id: Ia963a8ce3ce5f96b5e78acd587e26908c7a70d02
4665167ddc34008dfa78a2873685fe7a98772eab 07-Apr-2017 Andreas Gampe <agampe@google.com> ART: More refactor for JVMTI run tests (1/3)

Put (most) tests into a new package and give them dedicated
class names (Test9XY).

NOTE: BROKEN WITHOUT A FOLLOW-UP CL TO CHANGE DIRECTORY STRUCTURE
AND FILE NAMES!

Bug: 32072923
Test: None
Change-Id: I291b0543f7782914e446a74f0d9037020c88e5b5
de8de1d34633775053388097a70fd7534abdbbd5 31-Mar-2017 Andreas Gampe <agampe@google.com> ART: TI Agent test library refactor

More refactoring, lowering the reliance on ART-provided functionality
and adding a library that includes all the code that can run without
ART.

Bug: 32072923
Test: m test-art-host
Change-Id: I67d84056a6fd7722c58855fccbdea3f6869b2efb
(cherry picked from commit 027444b64dd52e1d2beea7aa525fbb8146a516bc)
765b6455e4007b33c2ae489d3d5644b9fb505acf 30-Mar-2017 Andreas Gampe <agampe@google.com> ART: Refactor JVMTI run tests

In preparation for code deduplication with CTS.

Bug: 32072923
Test: m
Change-Id: Ibbe005c94252bd29eae7f88aad301b0b20ddb80d
(cherry picked from commit 3f46c96568bef650ba6d9ce6ac8835d30877f243)
027444b64dd52e1d2beea7aa525fbb8146a516bc 31-Mar-2017 Andreas Gampe <agampe@google.com> ART: TI Agent test library refactor

More refactoring, lowering the reliance on ART-provided functionality
and adding a library that includes all the code that can run without
ART.

Bug: 32072923
Test: m test-art-host
Change-Id: I67d84056a6fd7722c58855fccbdea3f6869b2efb
3f46c96568bef650ba6d9ce6ac8835d30877f243 30-Mar-2017 Andreas Gampe <agampe@google.com> ART: Refactor JVMTI run tests

In preparation for code deduplication with CTS.

Bug: 32072923
Test: m
Change-Id: Ibbe005c94252bd29eae7f88aad301b0b20ddb80d
5e03a305edafb49a34b436d9a858281e53d390f2 13-Mar-2017 Andreas Gampe <agampe@google.com> ART: Refactor libopenjdkjvmti

Move jvmti.h to its own folder and fix up include setup.

Bug: 31455788
Test: m
Change-Id: I5beb66fc5d0178746216f61f9214cda54fc2c7ac
53ae7803b20650b7f36c0564dbcdc3115f399cba 20-Jan-2017 Andreas Gampe <agampe@google.com> ART: Refactor TI tests

Add a helper to explicitly bind native methods in a given class,
using dlsym to look up C functions in the local environment.

Add a callback helper that hooks VmInit and calls the above function
on the Main class. Use the callback helper before calling the test-
defined or shared minimal OnLoad function.

Add a binder helper that immediately binds the Main functions. Use
the helper before calling the test-defined OnAttach function.

Remove System.loadLibrary from tests. Instead rely on the explicit
binding.

In preparation for making the tests functional on device.

Test: m test-art-host
Change-Id: I12e68f070e8c6331e51d3a1fa4b9ebd8f28dfce6
f6f3b5f115f712fe4238f6ac8c367399e0cd9c8b 13-Jan-2017 Andreas Gampe <agampe@google.com> ART: Add GetFrameCount and GetFrameLocation

Add support for GetFrameCount and GetFrameLocation. Add tests.

Bug: 31684812
Test: m test-art-host-run-test-911-get-stack-trace
Change-Id: I7656e243f614eb0ceb5fcd6841128119fad89968
eba32fbff82bf135090c121d2126bef7b4ee5c3b 13-Jan-2017 Andreas Gampe <agampe@google.com> ART: Add GetThreadListStackTraces

Add support for GetThreadListStackTraces. Add a test.

Bug: 31684812
Test: m test-art-host-run-test-911-get-stack-trace
Change-Id: I958d02306d515f7ac03fddf4371805b133330d26
966de9eee1c5a8da95988669f225531b2509e005 13-Jan-2017 Andreas Gampe <agampe@google.com> ART: Refactor test 911

Break out the different test cases. As the stack traces print line
numbers, this will reduce the amount of expected.txt churn when
new tests are added.

Bug: 31684812
Test: m test-art-host-run-test-911-get-stack-trace
Change-Id: I3b4cb80ec5dd851ebbdf25fd660038d20a9daa9e
a1a27c603009a7b9101c6f672845e415f58571d7 12-Jan-2017 Andreas Gampe <agampe@google.com> ART: Add GetAllStackTraces

Add support for GetAllStackTraces. Add a test.

Bug: 31684812
Test: m test-art-host-run-test-911-get-stack-trace
Change-Id: I81f783a6b37bfc7b68c10ba6c803a11e1bd5d350
a8883a0000a08dc4cb2bfec01cbead0da6272a5c 12-Jan-2017 Andreas Gampe <agampe@google.com> ART: Simplify 9xx OnLoad setup

Provide the default implementation in common_load.cc, and only
mark cases that deviate.

Bug: 31455788
Test: m test-art-host-run-test
Change-Id: I40d467fb344405c443805749ced6717574430b75
4196071adf17245c25cd167fac0428f013a58bac 06-Jan-2017 Alex Light <allight@google.com> Make GetErrorName allocate the output buffer.

Previously we were simply returning a static pointer which isn't
allowed by the spec.

Test: mma -j40 test-art-host
Change-Id: I84cfb81e58d479c7c0d5ee352f5b005183895c82
46ee31b67d7ee1bd085fbc240502053caa3cf8fa 14-Dec-2016 Andreas Gampe <agampe@google.com> ART: Move to libbase StringPrintf

Remove ART's StringPrintf implementation. Fix up clients. Add
missing includes where necessary.

Test: m test-art-host
Change-Id: I564038d5868595ac3bb88d641af1000cea940e5a
da3e56185e982a1cf6b6e3a6ab5a7ca99ea388d0 14-Dec-2016 Andreas Gampe <agampe@google.com> ART: Add GetLineNumberTable

Add support for extracting a line number table. Add output to
stack trace test.

Bug: 31684812
Test: m test-art-host-run-test-911-get-stack-trace
Change-Id: Ief6ff566c35431333b51b551d9d511c7a47a05e7
2340e3f3aaa5935e064b32503512b7809e1ca165 13-Dec-2016 Andreas Gampe <agampe@google.com> ART: Fix stack trace location reporting

The frame info contains the location, not the line number. Add
location to output.

Bug: 31684812
Test: m test-art-host-run-test-911-get-stack-trace
Change-Id: Iac3db17fb32e9a7f83ca9f3614dee0d16fd2120d
ceafe3551374f87d78650c90ee7e2957d82fa3fa 13-Dec-2016 Andreas Gampe <agampe@google.com> ART: Rewrite test 911 stack trace reporting

Return an array of arrays, which is easier to extend and doesn't
have the tight coupling of a collapsed array.

Bug: 31684812
Test: m test-art-host-run-test-911-get-stack-trace
Change-Id: I4221ef8135c7b76a50c1af25f6328f447cf40ab2
e657424ab0105227358422452f566c3e72a77c8b 17-Aug-2016 Alex Light <allight@google.com> Add capabilities for jvmti.

Make a skeleton for jvmti capabilities.

Bug: 31455788
Test: m -j40 test-art-host

Change-Id: Ia1f96450d8a1ee59b9db66cf65492154d61fab48
336c3c3abceb7f238d715ea7f243e2c203b6548b 09-Nov-2016 Andreas Gampe <agampe@google.com> ART: Refactor some TI test code for reuse

Pull out helper code for creating arrays of data.

Bug: 31385354
Test: m test-art-host
Change-Id: I916fffa18f5a61bd17acbdbdaffce5b4c66a33ab
b5eb94a7536e5d050b9d3b1e4e09033bcf2aa554 28-Oct-2016 Andreas Gampe <agampe@google.com> ART: Add GetStackTrace support

Add support for getting a stack trace.

Bug: 31684812
Test: m test-art-host
Change-Id: Ifa5818ebca38caafb09616ffd7df30186eb8a06f