aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/perf_counter.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2008-12-08 13:26:59 -0500
committerIngo Molnar <mingo@elte.hu>2008-12-11 09:45:46 -0500
commiteab656ae04b9d3b83265e3db01c0d2c46b748ef7 (patch)
treea8e12bd5a2da6032234dbb20ad2c75766b96c270 /include/linux/perf_counter.h
parent4ac13294e44664bb7edf4daf52edb71e7c6bbe84 (diff)
perf counters: clean up 'raw' type API
Impact: cleanup Introduce a separate hw_event type. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/perf_counter.h')
-rw-r--r--include/linux/perf_counter.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h
index 5031b5614f25..daedd7d87c2a 100644
--- a/include/linux/perf_counter.h
+++ b/include/linux/perf_counter.h
@@ -38,6 +38,7 @@ enum hw_event_types {
38 * If this bit is set in the type, then trigger NMI sampling: 38 * If this bit is set in the type, then trigger NMI sampling:
39 */ 39 */
40 PERF_COUNT_NMI = (1 << 30), 40 PERF_COUNT_NMI = (1 << 30),
41 PERF_COUNT_RAW = (1 << 31),
41}; 42};
42 43
43/* 44/*
@@ -49,6 +50,12 @@ enum perf_record_type {
49 PERF_RECORD_GROUP, 50 PERF_RECORD_GROUP,
50}; 51};
51 52
53struct perf_counter_event {
54 u32 hw_event_type;
55 u32 hw_event_period;
56 u64 hw_raw_ctrl;
57};
58
52/** 59/**
53 * struct hw_perf_counter - performance counter hardware details 60 * struct hw_perf_counter - performance counter hardware details
54 */ 61 */