diff options
Diffstat (limited to 'include/linux/perf_event.h')
-rw-r--r-- | include/linux/perf_event.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index c66b34f75eea..a177698d95e2 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h | |||
@@ -211,11 +211,9 @@ struct perf_event_attr { | |||
211 | __u32 wakeup_watermark; /* bytes before wakeup */ | 211 | __u32 wakeup_watermark; /* bytes before wakeup */ |
212 | }; | 212 | }; |
213 | 213 | ||
214 | __u32 __reserved_2; | ||
215 | |||
216 | __u64 bp_addr; | ||
217 | __u32 bp_type; | 214 | __u32 bp_type; |
218 | __u32 bp_len; | 215 | __u64 bp_addr; |
216 | __u64 bp_len; | ||
219 | }; | 217 | }; |
220 | 218 | ||
221 | /* | 219 | /* |
@@ -814,9 +812,14 @@ extern int perf_event_overflow(struct perf_event *event, int nmi, | |||
814 | */ | 812 | */ |
815 | static inline int is_software_event(struct perf_event *event) | 813 | static inline int is_software_event(struct perf_event *event) |
816 | { | 814 | { |
817 | return (event->attr.type != PERF_TYPE_RAW) && | 815 | switch (event->attr.type) { |
818 | (event->attr.type != PERF_TYPE_HARDWARE) && | 816 | case PERF_TYPE_SOFTWARE: |
819 | (event->attr.type != PERF_TYPE_HW_CACHE); | 817 | case PERF_TYPE_TRACEPOINT: |
818 | /* for now the breakpoint stuff also works as software event */ | ||
819 | case PERF_TYPE_BREAKPOINT: | ||
820 | return 1; | ||
821 | } | ||
822 | return 0; | ||
820 | } | 823 | } |
821 | 824 | ||
822 | extern atomic_t perf_swevent_enabled[PERF_COUNT_SW_MAX]; | 825 | extern atomic_t perf_swevent_enabled[PERF_COUNT_SW_MAX]; |