summaryrefslogtreecommitdiff
path: root/simpleperf/cmd_stat.cpp
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2018-05-10 15:38:00 -0700
committerYabin Cui <yabinc@google.com>2018-05-14 12:01:08 -0700
commit5e8ee336c98c760b2c9ed35f705a2f707fbf93cc (patch)
tree2d486b7fbfe5306d36d9011871efd8250c854f29 /simpleperf/cmd_stat.cpp
parentad48d21a88fc17c5d7cc4fa83e54a2e2521f69ac (diff)
downloadextras-5e8ee336c98c760b2c9ed35f705a2f707fbf93cc.tar.gz
simpleperf: Add support for implementation-defined raw PMU events.
The patch was sent to upstream by c.orakwue@samsung.com, then I made some modifications to fit existing code. Bug: none Test: run simpleperf_unit_test. Change-Id: Iccc74892aff972e2c11941c3587314cdf5f63abd
Diffstat (limited to 'simpleperf/cmd_stat.cpp')
-rw-r--r--simpleperf/cmd_stat.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/simpleperf/cmd_stat.cpp b/simpleperf/cmd_stat.cpp
index da5b603b..7deb1174 100644
--- a/simpleperf/cmd_stat.cpp
+++ b/simpleperf/cmd_stat.cpp
@@ -317,9 +317,12 @@ class StatCommand : public Command {
" --interval-only-values.\n"
"--interval-only-values Print numbers of events happened in each interval.\n"
"-e event1[:modifier1],event2[:modifier2],...\n"
-" Select the event list to count. Use `simpleperf list` to find\n"
-" all possible event names. Modifiers can be added to define\n"
-" how the event should be monitored. Possible modifiers are:\n"
+" Select a list of events to count. An event can be:\n"
+" 1) an event name listed in `simpleperf list`;\n"
+" 2) a raw PMU event in rN format. N is a hex number.\n"
+" For example, r1b selects event number 0x1b.\n"
+" Modifiers can be added to define how the event should be\n"
+" monitored. Possible modifiers are:\n"
" u - monitor user space events only\n"
" k - monitor kernel space events only\n"
"--group event1[:modifier],event2[:modifier2],...\n"