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.h13
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;
563struct pmu { 563struct 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);
868extern void set_perf_event_pending(void); 873extern void set_perf_event_pending(void);
869extern void perf_event_do_pending(void); 874extern void perf_event_do_pending(void);
870extern void perf_event_print_debug(void); 875extern void perf_event_print_debug(void);
871extern void __perf_disable(void); 876extern void perf_pmu_disable(struct pmu *pmu);
872extern bool __perf_enable(void); 877extern void perf_pmu_enable(struct pmu *pmu);
873extern void perf_disable(void);
874extern void perf_enable(void);
875extern int perf_event_task_disable(void); 878extern int perf_event_task_disable(void);
876extern int perf_event_task_enable(void); 879extern int perf_event_task_enable(void);
877extern void perf_event_update_userpage(struct perf_event *event); 880extern void perf_event_update_userpage(struct perf_event *event);
@@ -1056,8 +1059,6 @@ static inline void perf_event_exit_task(struct task_struct *child) { }
1056static inline void perf_event_free_task(struct task_struct *task) { } 1059static inline void perf_event_free_task(struct task_struct *task) { }
1057static inline void perf_event_do_pending(void) { } 1060static inline void perf_event_do_pending(void) { }
1058static inline void perf_event_print_debug(void) { } 1061static inline void perf_event_print_debug(void) { }
1059static inline void perf_disable(void) { }
1060static inline void perf_enable(void) { }
1061static inline int perf_event_task_disable(void) { return -EINVAL; } 1062static inline int perf_event_task_disable(void) { return -EINVAL; }
1062static inline int perf_event_task_enable(void) { return -EINVAL; } 1063static inline int perf_event_task_enable(void) { return -EINVAL; }
1063 1064