diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-12-22 11:10:42 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-12-23 12:45:25 +0100 |
commit | 2f18d1e8d07ae67dd0afce875287756d4bd31a46 (patch) | |
tree | bad96eb7e3330ac470b98d22ec7650da7b7b8910 /include/linux/perf_counter.h | |
parent | f650a672359819454c3d8d4135ecd1558cde0b24 (diff) | |
download | lwn-2f18d1e8d07ae67dd0afce875287756d4bd31a46.tar.gz lwn-2f18d1e8d07ae67dd0afce875287756d4bd31a46.zip |
x86, perfcounters: add support for fixed-function pmcs
Impact: extend performance counter support on x86 Intel CPUs
Modern Intel CPUs have 3 "fixed-function" performance counters, which
count these hardware events:
Instr_Retired.Any
CPU_CLK_Unhalted.Core
CPU_CLK_Unhalted.Ref
Add support for them to the performance counters subsystem.
Their use is transparent to user-space: the counter scheduler is
extended to automatically recognize the cases where a fixed-function
PMC can be utilized instead of a generic PMC. In such cases the
generic PMC is kept available for more counters.
The above fixed-function events map to these generic counter hw events:
PERF_COUNT_INSTRUCTIONS
PERF_COUNT_CPU_CYCLES
PERF_COUNT_BUS_CYCLES
(The 'bus' cycles are in reality often CPU-ish cycles, just with a fixed
frequency.)
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/perf_counter.h')
0 files changed, 0 insertions, 0 deletions