diff options
Diffstat (limited to 'include/linux/perf_counter.h')
-rw-r--r-- | include/linux/perf_counter.h | 20 |
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 | |||
342 | struct 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 | ||
653 | extern void perf_counter_task_migration(struct task_struct *task, int cpu); | 663 | extern void perf_counter_task_migration(struct task_struct *task, int cpu); |
654 | 664 | ||
655 | #define MAX_STACK_DEPTH 255 | ||
656 | |||
657 | struct perf_callchain_entry { | ||
658 | u16 nr; | ||
659 | u16 hv; | ||
660 | u16 kernel; | ||
661 | u16 user; | ||
662 | u64 ip[MAX_STACK_DEPTH]; | ||
663 | }; | ||
664 | |||
665 | extern struct perf_callchain_entry *perf_callchain(struct pt_regs *regs); | 665 | extern struct perf_callchain_entry *perf_callchain(struct pt_regs *regs); |
666 | 666 | ||
667 | extern int sysctl_perf_counter_paranoid; | 667 | extern int sysctl_perf_counter_paranoid; |