perfcounters: add PERF_COUNT_BUS_CYCLES
authorIngo Molnar <mingo@elte.hu>
Tue, 23 Dec 2008 11:17:29 +0000 (12:17 +0100)
committerIngo Molnar <mingo@elte.hu>
Tue, 23 Dec 2008 11:45:24 +0000 (12:45 +0100)
commitf650a672359819454c3d8d4135ecd1558cde0b24
tree8157271c00949b1d228b2a81473c906a2d29b216
parent235c7fc7c500e4fd1700c4ad01b5612bcdc1b449
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>
arch/x86/kernel/cpu/perf_counter.c
include/linux/perf_counter.h