diff options
author | Yabin Cui <yabinc@google.com> | 2016-06-15 11:41:42 -0700 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2016-06-20 17:45:08 -0700 |
commit | 6965d42c43f12fd2dfcca3c490b51edc67822586 (patch) | |
tree | 70ea518ecc0dfc4ca725d6be500232517fb8dd7e /simpleperf/thread_tree.cpp | |
parent | 90d56472a6981cbbeba5adfc293f920004cd9a22 (diff) | |
download | extras-6965d42c43f12fd2dfcca3c490b51edc67822586.tar.gz |
simpleperf: add kmem command to report slab allocation information.
Bug: 27403614
Change-Id: Id3015a4828ec32170ea1db3a1580b14a8bd159ba
Diffstat (limited to 'simpleperf/thread_tree.cpp')
-rw-r--r-- | simpleperf/thread_tree.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/simpleperf/thread_tree.cpp b/simpleperf/thread_tree.cpp index 42104f39..58b02006 100644 --- a/simpleperf/thread_tree.cpp +++ b/simpleperf/thread_tree.cpp @@ -212,6 +212,11 @@ const Symbol* ThreadTree::FindSymbol(const MapEntry* map, uint64_t ip) { return symbol; } +const Symbol* ThreadTree::FindKernelSymbol(uint64_t ip) { + const MapEntry* map = FindMap(nullptr, ip, true); + return FindSymbol(map, ip); +} + void ThreadTree::ClearThreadAndMap() { thread_tree_.clear(); thread_comm_storage_.clear(); |