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>
This commit is contained in:

committed by
Ingo Molnar

parent
4ac13294e4
commit
eab656ae04
@@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user