diff options
Diffstat (limited to 'include/linux/perf_event.h')
-rw-r--r-- | include/linux/perf_event.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index df9d964c15fc..7f87563c8485 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h | |||
@@ -102,6 +102,8 @@ enum perf_sw_ids { | |||
102 | PERF_COUNT_SW_CPU_MIGRATIONS = 4, | 102 | PERF_COUNT_SW_CPU_MIGRATIONS = 4, |
103 | PERF_COUNT_SW_PAGE_FAULTS_MIN = 5, | 103 | PERF_COUNT_SW_PAGE_FAULTS_MIN = 5, |
104 | PERF_COUNT_SW_PAGE_FAULTS_MAJ = 6, | 104 | PERF_COUNT_SW_PAGE_FAULTS_MAJ = 6, |
105 | PERF_COUNT_SW_ALIGNMENT_FAULTS = 7, | ||
106 | PERF_COUNT_SW_EMULATION_FAULTS = 8, | ||
105 | 107 | ||
106 | PERF_COUNT_SW_MAX, /* non-ABI */ | 108 | PERF_COUNT_SW_MAX, /* non-ABI */ |
107 | }; | 109 | }; |
@@ -219,7 +221,7 @@ struct perf_event_attr { | |||
219 | #define PERF_EVENT_IOC_DISABLE _IO ('$', 1) | 221 | #define PERF_EVENT_IOC_DISABLE _IO ('$', 1) |
220 | #define PERF_EVENT_IOC_REFRESH _IO ('$', 2) | 222 | #define PERF_EVENT_IOC_REFRESH _IO ('$', 2) |
221 | #define PERF_EVENT_IOC_RESET _IO ('$', 3) | 223 | #define PERF_EVENT_IOC_RESET _IO ('$', 3) |
222 | #define PERF_EVENT_IOC_PERIOD _IOW('$', 4, u64) | 224 | #define PERF_EVENT_IOC_PERIOD _IOW('$', 4, __u64) |
223 | #define PERF_EVENT_IOC_SET_OUTPUT _IO ('$', 5) | 225 | #define PERF_EVENT_IOC_SET_OUTPUT _IO ('$', 5) |
224 | #define PERF_EVENT_IOC_SET_FILTER _IOW('$', 6, char *) | 226 | #define PERF_EVENT_IOC_SET_FILTER _IOW('$', 6, char *) |
225 | 227 | ||
@@ -472,8 +474,8 @@ struct hw_perf_event { | |||
472 | unsigned long event_base; | 474 | unsigned long event_base; |
473 | int idx; | 475 | int idx; |
474 | }; | 476 | }; |
475 | union { /* software */ | 477 | struct { /* software */ |
476 | atomic64_t count; | 478 | s64 remaining; |
477 | struct hrtimer hrtimer; | 479 | struct hrtimer hrtimer; |
478 | }; | 480 | }; |
479 | }; | 481 | }; |
@@ -712,7 +714,6 @@ struct perf_output_handle { | |||
712 | int nmi; | 714 | int nmi; |
713 | int sample; | 715 | int sample; |
714 | int locked; | 716 | int locked; |
715 | unsigned long flags; | ||
716 | }; | 717 | }; |
717 | 718 | ||
718 | #ifdef CONFIG_PERF_EVENTS | 719 | #ifdef CONFIG_PERF_EVENTS |