diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-06-11 08:06:28 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-06-11 11:54:15 -0400 |
commit | f4dbfa8f3131a84257223393905f7efad0ca5996 (patch) | |
tree | 67bb2666868c4449c2fa9ba6dc931721f60deb6c /tools/perf/builtin-top.c | |
parent | 1c432d899d32d36371ee4ee310fa3609cf0e5742 (diff) |
perf_counter: Standardize event names
Pure renames only, to PERF_COUNT_HW_* and PERF_COUNT_SW_*.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/builtin-top.c')
-rw-r--r-- | tools/perf/builtin-top.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index 309dbc76ec88..fe338d3c5d7e 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c | |||
@@ -562,13 +562,13 @@ try_again: | |||
562 | * is always available even if no PMU support: | 562 | * is always available even if no PMU support: |
563 | */ | 563 | */ |
564 | if (attr->type == PERF_TYPE_HARDWARE | 564 | if (attr->type == PERF_TYPE_HARDWARE |
565 | && attr->config == PERF_COUNT_CPU_CYCLES) { | 565 | && attr->config == PERF_COUNT_HW_CPU_CYCLES) { |
566 | 566 | ||
567 | if (verbose) | 567 | if (verbose) |
568 | warning(" ... trying to fall back to cpu-clock-ticks\n"); | 568 | warning(" ... trying to fall back to cpu-clock-ticks\n"); |
569 | 569 | ||
570 | attr->type = PERF_TYPE_SOFTWARE; | 570 | attr->type = PERF_TYPE_SOFTWARE; |
571 | attr->config = PERF_COUNT_CPU_CLOCK; | 571 | attr->config = PERF_COUNT_SW_CPU_CLOCK; |
572 | goto try_again; | 572 | goto try_again; |
573 | } | 573 | } |
574 | printf("\n"); | 574 | printf("\n"); |