summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2026-03-18 16:45:59 -0700
committerNamhyung Kim <namhyung@kernel.org>2026-03-19 14:42:46 -0700
commitc006753c3aae432efda28d5aaea4b8fec0343da8 (patch)
treead8325b4d57ac5781d0ee8beb8d02195334cd9f5 /tools/perf/scripts/python/stackcollapse.py
parent443556be8adc59126624eccd41f4150ec0e5a11a (diff)
perf callchain: Refactor callchain option parsing
record_opts__parse_callchain is shared by builtin-record and builtin-trace, it is declared in callchain.h. Move the declaration to callchain.c for consistency with the header. In other cases make the option callback a small static stub that then calls into callchain.c. Make the no argument '-g' callchain option just a short-cut for '--call-graph fp' so that there is consistency in how the arguments are handled. This requires the const char* string to be strdup-ed in __parse_callchain_report_opt. For consistency also make parse_callchain_record use strdup and remove some unnecessary casts. Also, be more explicit about the '-g' behavior if there is a .perfconfig file setting. Signed-off-by: Ian Rogers <irogers@google.com> Tested-by: Thomas Richter <tmricht@linux.ibm.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions