diff options
author | Yabin Cui <yabinc@google.com> | 2019-11-05 14:31:17 -0800 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2019-11-05 14:59:12 -0800 |
commit | 95d8395bcaf09d7079fe0fbbf7514631990ae47d (patch) | |
tree | 57c82f9357e59db16081b4d883547cf5584f85cb /simpleperf/JITDebugReader.h | |
parent | a3ae53117165460a18b5ea7eaab8231b62c63025 (diff) | |
download | extras-95d8395bcaf09d7079fe0fbbf7514631990ae47d.tar.gz |
simpleperf: add temporary work around for debug interface change.
To fix a libunwindstack problem, ART appends new debug entries to the
end of the debug entry list, insteading prepending to it. This breaks
CtsSimpleperfTestCases.
This CL adds a temporary work around in simpleperf, so we have time
to try other fixes in ART.
Bug: 143375574
Test: run simpleperf_unit_test
Change-Id: I5d73792996fb89d22a664b982e667ba0a4ee8276
Diffstat (limited to 'simpleperf/JITDebugReader.h')
-rw-r--r-- | simpleperf/JITDebugReader.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/simpleperf/JITDebugReader.h b/simpleperf/JITDebugReader.h index 3be124e6..1a3b5e69 100644 --- a/simpleperf/JITDebugReader.h +++ b/simpleperf/JITDebugReader.h @@ -169,6 +169,10 @@ class JITDebugReader { bool ReadNewCodeEntriesImpl(Process& process, const Descriptor& descriptor, uint64_t last_action_timestamp, uint32_t read_entry_limit, std::vector<CodeEntry>* new_code_entries); + template <typename CodeEntryT> + bool ReadNewCodeEntriesImplV2(Process& process, const Descriptor& descriptor, + uint64_t last_action_timestamp, uint32_t read_entry_limit, + std::vector<CodeEntry>* new_code_entries); void ReadJITCodeDebugInfo(Process& process, const std::vector<CodeEntry>& jit_entries, std::vector<JITDebugInfo>* debug_info); |