diff options
Diffstat (limited to 'include/linux/perf_counter.h')
-rw-r--r-- | include/linux/perf_counter.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h index 614f921d616a..e543ecc129f1 100644 --- a/include/linux/perf_counter.h +++ b/include/linux/perf_counter.h | |||
@@ -544,8 +544,10 @@ extern void perf_counter_exit_task(struct task_struct *child); | |||
544 | extern void perf_counter_do_pending(void); | 544 | extern void perf_counter_do_pending(void); |
545 | extern void perf_counter_print_debug(void); | 545 | extern void perf_counter_print_debug(void); |
546 | extern void perf_counter_unthrottle(void); | 546 | extern void perf_counter_unthrottle(void); |
547 | extern u64 hw_perf_save_disable(void); | 547 | extern void __perf_disable(void); |
548 | extern void hw_perf_restore(u64 ctrl); | 548 | extern bool __perf_enable(void); |
549 | extern void perf_disable(void); | ||
550 | extern void perf_enable(void); | ||
549 | extern int perf_counter_task_disable(void); | 551 | extern int perf_counter_task_disable(void); |
550 | extern int perf_counter_task_enable(void); | 552 | extern int perf_counter_task_enable(void); |
551 | extern int hw_perf_group_sched_in(struct perf_counter *group_leader, | 553 | extern int hw_perf_group_sched_in(struct perf_counter *group_leader, |
@@ -600,8 +602,8 @@ static inline void perf_counter_exit_task(struct task_struct *child) { } | |||
600 | static inline void perf_counter_do_pending(void) { } | 602 | static inline void perf_counter_do_pending(void) { } |
601 | static inline void perf_counter_print_debug(void) { } | 603 | static inline void perf_counter_print_debug(void) { } |
602 | static inline void perf_counter_unthrottle(void) { } | 604 | static inline void perf_counter_unthrottle(void) { } |
603 | static inline void hw_perf_restore(u64 ctrl) { } | 605 | static inline void perf_disable(void) { } |
604 | static inline u64 hw_perf_save_disable(void) { return 0; } | 606 | static inline void perf_enable(void) { } |
605 | static inline int perf_counter_task_disable(void) { return -EINVAL; } | 607 | static inline int perf_counter_task_disable(void) { return -EINVAL; } |
606 | static inline int perf_counter_task_enable(void) { return -EINVAL; } | 608 | static inline int perf_counter_task_enable(void) { return -EINVAL; } |
607 | 609 | ||