diff options
author | Ingo Molnar <mingo@elte.hu> | 2010-01-29 03:24:57 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-01-29 04:36:22 -0500 |
commit | ae7f6711d6231c9ba54feb5ba9856c3775e482f8 (patch) | |
tree | 89070c82204b2503348e4fd6c51d25a169375545 /include/linux/perf_event.h | |
parent | 64abebf731df87e6f4ae7d9ffc340bdf0c033e44 (diff) | |
parent | b23ff0e9330e4b11e18af984d50573598e10e7f9 (diff) |
Merge branch 'perf/urgent' into perf/core
Merge reason: We want to queue up a dependent patch. Also update to
later -rc's.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/perf_event.h')
-rw-r--r-- | include/linux/perf_event.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index 953c17731e0d..556b0f4a668e 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h | |||
@@ -818,9 +818,14 @@ extern int perf_event_overflow(struct perf_event *event, int nmi, | |||
818 | */ | 818 | */ |
819 | static inline int is_software_event(struct perf_event *event) | 819 | static inline int is_software_event(struct perf_event *event) |
820 | { | 820 | { |
821 | return (event->attr.type != PERF_TYPE_RAW) && | 821 | switch (event->attr.type) { |
822 | (event->attr.type != PERF_TYPE_HARDWARE) && | 822 | case PERF_TYPE_SOFTWARE: |
823 | (event->attr.type != PERF_TYPE_HW_CACHE); | 823 | case PERF_TYPE_TRACEPOINT: |
824 | /* for now the breakpoint stuff also works as software event */ | ||
825 | case PERF_TYPE_BREAKPOINT: | ||
826 | return 1; | ||
827 | } | ||
828 | return 0; | ||
824 | } | 829 | } |
825 | 830 | ||
826 | extern atomic_t perf_swevent_enabled[PERF_COUNT_SW_MAX]; | 831 | extern atomic_t perf_swevent_enabled[PERF_COUNT_SW_MAX]; |