提交 f1ac18af 编写于 作者: S Stephane Eranian 提交者: Ingo Molnar

perf: Add support for PERF_HW_COUNT_REF_CPU_CYCLES

Add new generic hw event: ref-cycles, which maps to
PERF_HW_COUNT_REF_CPUCYCLES:

 $ perf stat -e ref-cycles ls
Signed-off-by: NStephane Eranian <eranian@google.com>
Signed-off-by: NPeter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1323559734-3488-5-git-send-email-eranian@google.comSigned-off-by: NIngo Molnar <mingo@elte.hu>
上级 9c1497ea
...@@ -38,6 +38,7 @@ static struct event_symbol event_symbols[] = { ...@@ -38,6 +38,7 @@ static struct event_symbol event_symbols[] = {
{ CHW(BRANCH_INSTRUCTIONS), "branch-instructions", "branches" }, { CHW(BRANCH_INSTRUCTIONS), "branch-instructions", "branches" },
{ CHW(BRANCH_MISSES), "branch-misses", "" }, { CHW(BRANCH_MISSES), "branch-misses", "" },
{ CHW(BUS_CYCLES), "bus-cycles", "" }, { CHW(BUS_CYCLES), "bus-cycles", "" },
{ CHW(REF_CPU_CYCLES), "ref-cycles", "" },
{ CSW(CPU_CLOCK), "cpu-clock", "" }, { CSW(CPU_CLOCK), "cpu-clock", "" },
{ CSW(TASK_CLOCK), "task-clock", "" }, { CSW(TASK_CLOCK), "task-clock", "" },
...@@ -68,6 +69,7 @@ static const char *hw_event_names[PERF_COUNT_HW_MAX] = { ...@@ -68,6 +69,7 @@ static const char *hw_event_names[PERF_COUNT_HW_MAX] = {
"bus-cycles", "bus-cycles",
"stalled-cycles-frontend", "stalled-cycles-frontend",
"stalled-cycles-backend", "stalled-cycles-backend",
"ref-cycles",
}; };
static const char *sw_event_names[PERF_COUNT_SW_MAX] = { static const char *sw_event_names[PERF_COUNT_SW_MAX] = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册