aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/perf_counter.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h
index eccae437fe37..a7d3a61a59b7 100644
--- a/include/linux/perf_counter.h
+++ b/include/linux/perf_counter.h
@@ -337,6 +337,16 @@ enum perf_event_type {
337 */ 337 */
338}; 338};
339 339
340#define MAX_STACK_DEPTH 255
341
342struct perf_callchain_entry {
343 __u16 nr;
344 __u16 hv;
345 __u16 kernel;
346 __u16 user;
347 __u64 ip[MAX_STACK_DEPTH];
348};
349
340#ifdef __KERNEL__ 350#ifdef __KERNEL__
341/* 351/*
342 * Kernel-internal data types and definitions: 352 * Kernel-internal data types and definitions:
@@ -652,16 +662,6 @@ extern void perf_counter_fork(struct task_struct *tsk);
652 662
653extern void perf_counter_task_migration(struct task_struct *task, int cpu); 663extern void perf_counter_task_migration(struct task_struct *task, int cpu);
654 664
655#define MAX_STACK_DEPTH 255
656
657struct perf_callchain_entry {
658 u16 nr;
659 u16 hv;
660 u16 kernel;
661 u16 user;
662 u64 ip[MAX_STACK_DEPTH];
663};
664
665extern struct perf_callchain_entry *perf_callchain(struct pt_regs *regs); 665extern struct perf_callchain_entry *perf_callchain(struct pt_regs *regs);
666 666
667extern int sysctl_perf_counter_paranoid; 667extern int sysctl_perf_counter_paranoid;