diff options
Diffstat (limited to 'include/linux/perf_event.h')
-rw-r--r-- | include/linux/perf_event.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index 243286a8ded7..6abf103fb7f8 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h | |||
@@ -563,6 +563,11 @@ struct perf_event; | |||
563 | struct pmu { | 563 | struct pmu { |
564 | struct list_head entry; | 564 | struct list_head entry; |
565 | 565 | ||
566 | int *pmu_disable_count; | ||
567 | |||
568 | void (*pmu_enable) (struct pmu *pmu); | ||
569 | void (*pmu_disable) (struct pmu *pmu); | ||
570 | |||
566 | /* | 571 | /* |
567 | * Should return -ENOENT when the @event doesn't match this PMU. | 572 | * Should return -ENOENT when the @event doesn't match this PMU. |
568 | */ | 573 | */ |
@@ -868,10 +873,8 @@ extern void perf_event_free_task(struct task_struct *task); | |||
868 | extern void set_perf_event_pending(void); | 873 | extern void set_perf_event_pending(void); |
869 | extern void perf_event_do_pending(void); | 874 | extern void perf_event_do_pending(void); |
870 | extern void perf_event_print_debug(void); | 875 | extern void perf_event_print_debug(void); |
871 | extern void __perf_disable(void); | 876 | extern void perf_pmu_disable(struct pmu *pmu); |
872 | extern bool __perf_enable(void); | 877 | extern void perf_pmu_enable(struct pmu *pmu); |
873 | extern void perf_disable(void); | ||
874 | extern void perf_enable(void); | ||
875 | extern int perf_event_task_disable(void); | 878 | extern int perf_event_task_disable(void); |
876 | extern int perf_event_task_enable(void); | 879 | extern int perf_event_task_enable(void); |
877 | extern void perf_event_update_userpage(struct perf_event *event); | 880 | extern void perf_event_update_userpage(struct perf_event *event); |
@@ -1056,8 +1059,6 @@ static inline void perf_event_exit_task(struct task_struct *child) { } | |||
1056 | static inline void perf_event_free_task(struct task_struct *task) { } | 1059 | static inline void perf_event_free_task(struct task_struct *task) { } |
1057 | static inline void perf_event_do_pending(void) { } | 1060 | static inline void perf_event_do_pending(void) { } |
1058 | static inline void perf_event_print_debug(void) { } | 1061 | static inline void perf_event_print_debug(void) { } |
1059 | static inline void perf_disable(void) { } | ||
1060 | static inline void perf_enable(void) { } | ||
1061 | static inline int perf_event_task_disable(void) { return -EINVAL; } | 1062 | static inline int perf_event_task_disable(void) { return -EINVAL; } |
1062 | static inline int perf_event_task_enable(void) { return -EINVAL; } | 1063 | static inline int perf_event_task_enable(void) { return -EINVAL; } |
1063 | 1064 | ||