perf script: Make scripting_max_stack value allow for synthesized callchains
[deliverable/linux.git] / tools / perf / builtin-script.c
index 5c3c02d5af534998c51a81b05b51d6372a9dfb87..8ce1c6bbfa45cf9c98bfa47cf24714a3d4bf290f 100644 (file)
@@ -1748,6 +1748,10 @@ int cmd_script(int argc, const char **argv, const char *prefix __maybe_unused)
                }
        }
 
+       if (itrace_synth_opts.callchain &&
+           itrace_synth_opts.callchain_sz > scripting_max_stack)
+               scripting_max_stack = itrace_synth_opts.callchain_sz;
+
        /* make sure PERF_EXEC_PATH is set for scripts */
        perf_set_argv_exec_path(perf_exec_path());
 
This page took 0.044401 seconds and 5 git commands to generate.