Messages in this thread Patch in this message | | | From | Arun Sharma <> | Subject | [PATCH 2/4] perf: Limit callchains to 127 | Date | Fri, 20 Apr 2012 15:41:34 -0700 |
| |
Stack depth of 255 seems excessive, given that copy_from_user_nmi() could be slow.
Signed-off-by: Arun Sharma <asharma@fb.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Ingo Molnar <mingo@elte.hu> Cc: linux-kernel@vger.kernel.org --- include/linux/perf_event.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index ddbb6a9..d1e71c1 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h @@ -609,7 +609,7 @@ struct perf_guest_info_callbacks { #include <linux/sysfs.h> #include <asm/local.h> -#define PERF_MAX_STACK_DEPTH 255 +#define PERF_MAX_STACK_DEPTH 127 struct perf_callchain_entry { __u64 nr; -- 1.7.8.4
| |