diff options
Diffstat (limited to 'tools/perf/builtin-script.c')
-rw-r--r-- | tools/perf/builtin-script.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index f43b0c6f88f4..efca81679bb3 100644 --- a/tools/perf/builtin-script.c +++ b/tools/perf/builtin-script.c | |||
@@ -2031,7 +2031,7 @@ int cmd_script(int argc, const char **argv, const char *prefix __maybe_unused) | |||
2031 | OPT_UINTEGER(0, "max-stack", &scripting_max_stack, | 2031 | OPT_UINTEGER(0, "max-stack", &scripting_max_stack, |
2032 | "Set the maximum stack depth when parsing the callchain, " | 2032 | "Set the maximum stack depth when parsing the callchain, " |
2033 | "anything beyond the specified depth will be ignored. " | 2033 | "anything beyond the specified depth will be ignored. " |
2034 | "Default: " __stringify(PERF_MAX_STACK_DEPTH)), | 2034 | "Default: kernel.perf_event_max_stack or " __stringify(PERF_MAX_STACK_DEPTH)), |
2035 | OPT_BOOLEAN('I', "show-info", &show_full_info, | 2035 | OPT_BOOLEAN('I', "show-info", &show_full_info, |
2036 | "display extended information from perf.data file"), | 2036 | "display extended information from perf.data file"), |
2037 | OPT_BOOLEAN('\0', "show-kernel-path", &symbol_conf.show_kernel_path, | 2037 | OPT_BOOLEAN('\0', "show-kernel-path", &symbol_conf.show_kernel_path, |
@@ -2067,6 +2067,8 @@ int cmd_script(int argc, const char **argv, const char *prefix __maybe_unused) | |||
2067 | NULL | 2067 | NULL |
2068 | }; | 2068 | }; |
2069 | 2069 | ||
2070 | scripting_max_stack = sysctl_perf_event_max_stack; | ||
2071 | |||
2070 | setup_scripting(); | 2072 | setup_scripting(); |
2071 | 2073 | ||
2072 | argc = parse_options_subcommand(argc, argv, options, script_subcommands, script_usage, | 2074 | argc = parse_options_subcommand(argc, argv, options, script_subcommands, script_usage, |