aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/perf_event.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
index 937495c25073..358880404b42 100644
--- a/include/linux/perf_event.h
+++ b/include/linux/perf_event.h
@@ -978,6 +978,13 @@ extern void perf_event_fork(struct task_struct *tsk);
978 978
979extern struct perf_callchain_entry *perf_callchain(struct pt_regs *regs); 979extern struct perf_callchain_entry *perf_callchain(struct pt_regs *regs);
980 980
981static inline void
982perf_callchain_store(struct perf_callchain_entry *entry, u64 ip)
983{
984 if (entry->nr < PERF_MAX_STACK_DEPTH)
985 entry->ip[entry->nr++] = ip;
986}
987
981extern int sysctl_perf_event_paranoid; 988extern int sysctl_perf_event_paranoid;
982extern int sysctl_perf_event_mlock; 989extern int sysctl_perf_event_mlock;
983extern int sysctl_perf_event_sample_rate; 990extern int sysctl_perf_event_sample_rate;