aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/perf_event.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/perf_event.h')
-rw-r--r--include/linux/perf_event.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
index a33707a3a788..df4e73e33774 100644
--- a/include/linux/perf_event.h
+++ b/include/linux/perf_event.h
@@ -221,8 +221,9 @@ struct perf_event_attr {
221#define PERF_EVENT_IOC_DISABLE _IO ('$', 1) 221#define PERF_EVENT_IOC_DISABLE _IO ('$', 1)
222#define PERF_EVENT_IOC_REFRESH _IO ('$', 2) 222#define PERF_EVENT_IOC_REFRESH _IO ('$', 2)
223#define PERF_EVENT_IOC_RESET _IO ('$', 3) 223#define PERF_EVENT_IOC_RESET _IO ('$', 3)
224#define PERF_EVENT_IOC_PERIOD _IOW('$', 4, u64) 224#define PERF_EVENT_IOC_PERIOD _IOW('$', 4, __u64)
225#define PERF_EVENT_IOC_SET_OUTPUT _IO ('$', 5) 225#define PERF_EVENT_IOC_SET_OUTPUT _IO ('$', 5)
226#define PERF_EVENT_IOC_SET_FILTER _IOW('$', 6, char *)
226 227
227enum perf_event_ioc_flags { 228enum perf_event_ioc_flags {
228 PERF_IOC_FLAG_GROUP = 1U << 0, 229 PERF_IOC_FLAG_GROUP = 1U << 0,
@@ -473,8 +474,8 @@ struct hw_perf_event {
473 unsigned long event_base; 474 unsigned long event_base;
474 int idx; 475 int idx;
475 }; 476 };
476 union { /* software */ 477 struct { /* software */
477 atomic64_t count; 478 s64 remaining;
478 struct hrtimer hrtimer; 479 struct hrtimer hrtimer;
479 }; 480 };
480 }; 481 };
@@ -635,7 +636,12 @@ struct perf_event {
635 636
636 struct pid_namespace *ns; 637 struct pid_namespace *ns;
637 u64 id; 638 u64 id;
639
640#ifdef CONFIG_EVENT_PROFILE
641 struct event_filter *filter;
638#endif 642#endif
643
644#endif /* CONFIG_PERF_EVENTS */
639}; 645};
640 646
641/** 647/**