summaryrefslogtreecommitdiff
path: root/simpleperf/command.cpp
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2019-08-21 16:05:07 -0700
committerYabin Cui <yabinc@google.com>2019-08-22 10:23:06 -0700
commitc573eaaea45529370a15151d5a4e7ee7e6ff1b6b (patch)
tree6005d475e345c46a8d074162ec2b8f7521667e64 /simpleperf/command.cpp
parent5ff5b91fdc0b07bebaaecd76e47d5c57571ca5ad (diff)
downloadextras-c573eaaea45529370a15151d5a4e7ee7e6ff1b6b.tar.gz
simpleperf: add inject cmd.
Add inject cmd to convert etm data into executed instr ranges. Bug: 135204414 Test: run simpleperf_unit_test. Change-Id: I46acf7b24ddb4865d0925f70e09b861b7f6748b6
Diffstat (limited to 'simpleperf/command.cpp')
-rw-r--r--simpleperf/command.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/simpleperf/command.cpp b/simpleperf/command.cpp
index 4c83540c..d751d610 100644
--- a/simpleperf/command.cpp
+++ b/simpleperf/command.cpp
@@ -88,6 +88,7 @@ const std::vector<std::string> GetAllCommandNames() {
extern void RegisterDumpRecordCommand();
extern void RegisterHelpCommand();
+extern void RegisterInjectCommand();
extern void RegisterListCommand();
extern void RegisterKmemCommand();
extern void RegisterRecordCommand();
@@ -103,6 +104,7 @@ class CommandRegister {
CommandRegister() {
RegisterDumpRecordCommand();
RegisterHelpCommand();
+ RegisterInjectCommand();
RegisterKmemCommand();
RegisterReportCommand();
RegisterReportSampleCommand();