History

perf: Limit callchains to 127

Stack depth of 255 seems excessive, given that copy_from_user_nmi() could be slow.

Arun Sharma committed 14 years ago

Commit 0b0d9cf1 parent 302fa4b1 file · +1 −1Browse files

Showing the changes to include/linux (1 of 1 file). Show all

Unified · Split

include/linux/perf_event.h+1−1
@@ -555,7 +555,7 @@ enum perf_event_type { · 554 unmodified lines
555 PERF_RECORD_MAX, /* non-ABI */555 PERF_RECORD_MAX, /* non-ABI */
556};556};
557 557
558#define PERF_MAX_STACK_DEPTH 255558#define PERF_MAX_STACK_DEPTH 127
559 559
560enum perf_callchain_context {560enum perf_callchain_context {
561 PERF_CONTEXT_HV = (__u64)-32,561 PERF_CONTEXT_HV = (__u64)-32,