diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/perf_counter.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h index 4845a214b9e7..1fcd3cc93855 100644 --- a/include/linux/perf_counter.h +++ b/include/linux/perf_counter.h | |||
@@ -94,18 +94,18 @@ enum sw_event_ids { | |||
94 | #define PERF_COUNTER_EVENT_MASK __PERF_COUNTER_MASK(EVENT) | 94 | #define PERF_COUNTER_EVENT_MASK __PERF_COUNTER_MASK(EVENT) |
95 | 95 | ||
96 | /* | 96 | /* |
97 | * Bits that can be set in hw_event.record_type to request information | 97 | * Bits that can be set in hw_event.sample_type to request information |
98 | * in the overflow packets. | 98 | * in the overflow packets. |
99 | */ | 99 | */ |
100 | enum perf_counter_record_format { | 100 | enum perf_counter_sample_format { |
101 | PERF_RECORD_IP = 1U << 0, | 101 | PERF_SAMPLE_IP = 1U << 0, |
102 | PERF_RECORD_TID = 1U << 1, | 102 | PERF_SAMPLE_TID = 1U << 1, |
103 | PERF_RECORD_TIME = 1U << 2, | 103 | PERF_SAMPLE_TIME = 1U << 2, |
104 | PERF_RECORD_ADDR = 1U << 3, | 104 | PERF_SAMPLE_ADDR = 1U << 3, |
105 | PERF_RECORD_GROUP = 1U << 4, | 105 | PERF_SAMPLE_GROUP = 1U << 4, |
106 | PERF_RECORD_CALLCHAIN = 1U << 5, | 106 | PERF_SAMPLE_CALLCHAIN = 1U << 5, |
107 | PERF_RECORD_CONFIG = 1U << 6, | 107 | PERF_SAMPLE_CONFIG = 1U << 6, |
108 | PERF_RECORD_CPU = 1U << 7, | 108 | PERF_SAMPLE_CPU = 1U << 7, |
109 | }; | 109 | }; |
110 | 110 | ||
111 | /* | 111 | /* |
@@ -132,12 +132,12 @@ struct perf_counter_hw_event { | |||
132 | __u64 config; | 132 | __u64 config; |
133 | 133 | ||
134 | union { | 134 | union { |
135 | __u64 irq_period; | 135 | __u64 sample_period; |
136 | __u64 irq_freq; | 136 | __u64 sample_freq; |
137 | }; | 137 | }; |
138 | 138 | ||
139 | __u32 record_type; | 139 | __u64 sample_type; |
140 | __u32 read_format; | 140 | __u64 read_format; |
141 | 141 | ||
142 | __u64 disabled : 1, /* off by default */ | 142 | __u64 disabled : 1, /* off by default */ |
143 | nmi : 1, /* NMI sampling */ | 143 | nmi : 1, /* NMI sampling */ |
@@ -262,7 +262,7 @@ enum perf_event_type { | |||
262 | * struct { | 262 | * struct { |
263 | * struct perf_event_header header; | 263 | * struct perf_event_header header; |
264 | * u64 time; | 264 | * u64 time; |
265 | * u64 irq_period; | 265 | * u64 sample_period; |
266 | * }; | 266 | * }; |
267 | */ | 267 | */ |
268 | PERF_EVENT_PERIOD = 4, | 268 | PERF_EVENT_PERIOD = 4, |
@@ -363,7 +363,7 @@ struct hw_perf_counter { | |||
363 | }; | 363 | }; |
364 | }; | 364 | }; |
365 | atomic64_t prev_count; | 365 | atomic64_t prev_count; |
366 | u64 irq_period; | 366 | u64 sample_period; |
367 | atomic64_t period_left; | 367 | atomic64_t period_left; |
368 | u64 interrupts; | 368 | u64 interrupts; |
369 | #endif | 369 | #endif |