diff options
Diffstat (limited to 'include/linux/perf_counter.h')
-rw-r--r-- | include/linux/perf_counter.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h index 22c4469abf44..5031b5614f25 100644 --- a/include/linux/perf_counter.h +++ b/include/linux/perf_counter.h | |||
@@ -156,6 +156,8 @@ extern void perf_counter_task_tick(struct task_struct *task, int cpu); | |||
156 | extern void perf_counter_init_task(struct task_struct *task); | 156 | extern void perf_counter_init_task(struct task_struct *task); |
157 | extern void perf_counter_notify(struct pt_regs *regs); | 157 | extern void perf_counter_notify(struct pt_regs *regs); |
158 | extern void perf_counter_print_debug(void); | 158 | extern void perf_counter_print_debug(void); |
159 | extern void hw_perf_restore_ctrl(u64 ctrl); | ||
160 | extern u64 hw_perf_disable_all(void); | ||
159 | #else | 161 | #else |
160 | static inline void | 162 | static inline void |
161 | perf_counter_task_sched_in(struct task_struct *task, int cpu) { } | 163 | perf_counter_task_sched_in(struct task_struct *task, int cpu) { } |
@@ -166,6 +168,8 @@ perf_counter_task_tick(struct task_struct *task, int cpu) { } | |||
166 | static inline void perf_counter_init_task(struct task_struct *task) { } | 168 | static inline void perf_counter_init_task(struct task_struct *task) { } |
167 | static inline void perf_counter_notify(struct pt_regs *regs) { } | 169 | static inline void perf_counter_notify(struct pt_regs *regs) { } |
168 | static inline void perf_counter_print_debug(void) { } | 170 | static inline void perf_counter_print_debug(void) { } |
171 | static inline void hw_perf_restore_ctrl(u64 ctrl) { } | ||
172 | static inline u64 hw_perf_disable_all(void) { return 0; } | ||
169 | #endif | 173 | #endif |
170 | 174 | ||
171 | #endif /* _LINUX_PERF_COUNTER_H */ | 175 | #endif /* _LINUX_PERF_COUNTER_H */ |