aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/perf_counter.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/perf_counter.h')
-rw-r--r--include/linux/perf_counter.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h
index f776851f8c4b..a356fa69796c 100644
--- a/include/linux/perf_counter.h
+++ b/include/linux/perf_counter.h
@@ -573,6 +573,8 @@ extern struct perf_callchain_entry *perf_callchain(struct pt_regs *regs);
573 573
574extern int sysctl_perf_counter_priv; 574extern int sysctl_perf_counter_priv;
575 575
576extern void perf_counter_init(void);
577
576#else 578#else
577static inline void 579static inline void
578perf_counter_task_sched_in(struct task_struct *task, int cpu) { } 580perf_counter_task_sched_in(struct task_struct *task, int cpu) { }
@@ -600,9 +602,10 @@ perf_counter_mmap(unsigned long addr, unsigned long len,
600 602
601static inline void 603static inline void
602perf_counter_munmap(unsigned long addr, unsigned long len, 604perf_counter_munmap(unsigned long addr, unsigned long len,
603 unsigned long pgoff, struct file *file) { } 605 unsigned long pgoff, struct file *file) { }
604 606
605static inline void perf_counter_comm(struct task_struct *tsk) { } 607static inline void perf_counter_comm(struct task_struct *tsk) { }
608static inline void perf_counter_init(void) { }
606#endif 609#endif
607 610
608#endif /* __KERNEL__ */ 611#endif /* __KERNEL__ */