diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2008-12-08 19:26:59 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-12-11 15:45:46 +0100 |
commit | eab656ae04b9d3b83265e3db01c0d2c46b748ef7 (patch) | |
tree | a8e12bd5a2da6032234dbb20ad2c75766b96c270 /include/linux/perf_counter.h | |
parent | 4ac13294e44664bb7edf4daf52edb71e7c6bbe84 (diff) | |
download | linux-stable-eab656ae04b9d3b83265e3db01c0d2c46b748ef7.tar.gz linux-stable-eab656ae04b9d3b83265e3db01c0d2c46b748ef7.tar.bz2 linux-stable-eab656ae04b9d3b83265e3db01c0d2c46b748ef7.zip |
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.h | 7 |
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 { * If this bit is set in the type, then trigger NMI sampling: */ PERF_COUNT_NMI = (1 << 30), + PERF_COUNT_RAW = (1 << 31), }; /* @@ -49,6 +50,12 @@ enum perf_record_type { PERF_RECORD_GROUP, }; +struct perf_counter_event { + u32 hw_event_type; + u32 hw_event_period; + u64 hw_raw_ctrl; +}; + /** * struct hw_perf_counter - performance counter hardware details */ |