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-record.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-record.c')
-rw-r--r-- | tools/perf/builtin-record.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c index 84cd336ae79b..29259e74dcfa 100644 --- a/tools/perf/builtin-record.c +++ b/tools/perf/builtin-record.c | |||
@@ -378,12 +378,12 @@ try_again: | |||
378 | * is always available even if no PMU support: | 378 | * is always available even if no PMU support: |
379 | */ | 379 | */ |
380 | if (attr->type == PERF_TYPE_HARDWARE | 380 | if (attr->type == PERF_TYPE_HARDWARE |
381 | && attr->config == PERF_COUNT_CPU_CYCLES) { | 381 | && attr->config == PERF_COUNT_HW_CPU_CYCLES) { |
382 | 382 | ||
383 | if (verbose) | 383 | if (verbose) |
384 | warning(" ... trying to fall back to cpu-clock-ticks\n"); | 384 | warning(" ... trying to fall back to cpu-clock-ticks\n"); |
385 | attr->type = PERF_TYPE_SOFTWARE; | 385 | attr->type = PERF_TYPE_SOFTWARE; |
386 | attr->config = PERF_COUNT_CPU_CLOCK; | 386 | attr->config = PERF_COUNT_SW_CPU_CLOCK; |
387 | goto try_again; | 387 | goto try_again; |
388 | } | 388 | } |
389 | printf("\n"); | 389 | printf("\n"); |