summaryrefslogtreecommitdiff
path: root/simpleperf/JITDebugReader.h
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2019-11-05 14:31:17 -0800
committerYabin Cui <yabinc@google.com>2019-11-05 14:59:12 -0800
commit95d8395bcaf09d7079fe0fbbf7514631990ae47d (patch)
tree57c82f9357e59db16081b4d883547cf5584f85cb /simpleperf/JITDebugReader.h
parenta3ae53117165460a18b5ea7eaab8231b62c63025 (diff)
downloadextras-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.h4
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);