Message ID | 20160311105423.GA4442@wintermute (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index f5c5a3f..0eacdba0 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h @@ -849,6 +849,18 @@ static inline bool is_sampling_event(struct perf_event *event) return event->attr.sample_period != 0; } +static inline int any_exclude_set(struct perf_event *event) +{ + if (event->attr.exclude_user || + event->attr.exclude_kernel || + event->attr.exclude_host || + event->attr.exclude_guest || + event->attr.exclude_hv || + event->attr.exclude_idle) + return 1; + return 0; +} + /* * Return 1 for a software event, 0 for a hardware event */