summaryrefslogtreecommitdiffstats
path: root/include/linux/perf_counter.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-12-23 12:17:29 +0100
committerIngo Molnar <mingo@elte.hu>2008-12-23 12:45:24 +0100
commitf650a672359819454c3d8d4135ecd1558cde0b24 (patch)
tree8157271c00949b1d228b2a81473c906a2d29b216 /include/linux/perf_counter.h
parent235c7fc7c500e4fd1700c4ad01b5612bcdc1b449 (diff)
downloadlinux-stable-f650a672359819454c3d8d4135ecd1558cde0b24.tar.gz
linux-stable-f650a672359819454c3d8d4135ecd1558cde0b24.tar.bz2
linux-stable-f650a672359819454c3d8d4135ecd1558cde0b24.zip
perfcounters: add PERF_COUNT_BUS_CYCLES
Generalize "bus cycles" hw events - and map them to CPU_CLK_Unhalted.Ref on x86. (which is a good enough approximation) Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/perf_counter.h')
-rw-r--r--include/linux/perf_counter.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h
index 1ea08e9f31ce..ec77d1643d37 100644
--- a/include/linux/perf_counter.h
+++ b/include/linux/perf_counter.h
@@ -36,14 +36,15 @@ enum hw_event_types {
/*
* Common hardware events, generalized by the kernel:
*/
- PERF_COUNT_CYCLES = 0,
+ PERF_COUNT_CPU_CYCLES = 0,
PERF_COUNT_INSTRUCTIONS = 1,
PERF_COUNT_CACHE_REFERENCES = 2,
PERF_COUNT_CACHE_MISSES = 3,
PERF_COUNT_BRANCH_INSTRUCTIONS = 4,
PERF_COUNT_BRANCH_MISSES = 5,
+ PERF_COUNT_BUS_CYCLES = 6,
- PERF_HW_EVENTS_MAX = 6,
+ PERF_HW_EVENTS_MAX = 7,
/*
* Special "software" counters provided by the kernel, even if