提交 749141d9 编写于 作者: I Ingo Molnar

perf stat: Make all displayed event names parseable as well

Right now we display this by default:

          0.202204 task-clock-msecs         #      0.282 CPUs
                 0 context-switches         #      0.000 M/sec
                 0 CPU-migrations           #      0.000 M/sec
                85 page-faults              #      0.420 M/sec

The task-clock-msecs event cannot actually be passed back as an
event name, the event name we recognize is 'task-clock'.

So change the output of the cpu-clock and task-clock events
to be idempotent.

( Units should be printed out in the right-side column, if needed. )
Acked-by: NPeter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: NArnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Link: http://lkml.kernel.org/n/tip-lexrnbzy09asscgd4f7oac4i@git.kernel.orgSigned-off-by: NIngo Molnar <mingo@elte.hu>
上级 ceb53fbf
...@@ -70,8 +70,8 @@ static const char *hw_event_names[] = { ...@@ -70,8 +70,8 @@ static const char *hw_event_names[] = {
}; };
static const char *sw_event_names[] = { static const char *sw_event_names[] = {
"cpu-clock-msecs", "cpu-clock",
"task-clock-msecs", "task-clock",
"page-faults", "page-faults",
"context-switches", "context-switches",
"CPU-migrations", "CPU-migrations",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册