diff options
author | Yabin Cui <yabinc@google.com> | 2015-05-05 19:58:07 -0700 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2015-05-13 16:16:56 -0700 |
commit | 8f6225147c5b6cb2159a7f5cb0dab952ee0759df (patch) | |
tree | bfc1ba2394275e2ea87cf2d4ceae09d5323d5a23 /simpleperf/environment.h | |
parent | 884fc856c79eddf8ac68fd54d75d804116f577e5 (diff) | |
download | extras-8f6225147c5b6cb2159a7f5cb0dab952ee0759df.tar.gz |
Dump build_id feature in `simpleperf record`.
Bug: 19483574
Change-Id: Ie2acd8a157bca9ad3c01a2e4b37e139aba89670f
Diffstat (limited to 'simpleperf/environment.h')
-rw-r--r-- | simpleperf/environment.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/simpleperf/environment.h b/simpleperf/environment.h index c4110677..f81005ce 100644 --- a/simpleperf/environment.h +++ b/simpleperf/environment.h @@ -20,6 +20,7 @@ #include <functional> #include <string> #include <vector> +#include "build_id.h" std::vector<int> GetOnlineCpus(); @@ -61,6 +62,11 @@ struct ThreadMmap { bool GetThreadMmapsInProcess(pid_t pid, std::vector<ThreadMmap>* thread_mmaps); +static const char* DEFAULT_KERNEL_FILENAME_FOR_BUILD_ID = "[kernel.kallsyms]"; + +bool GetKernelBuildId(BuildId* build_id); +bool GetModuleBuildId(const std::string& module_name, BuildId* build_id); + // Expose the following functions for unit tests. std::vector<int> GetOnlineCpusFromString(const std::string& s); |