summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2026-04-08 14:32:03 -0300
committerNamhyung Kim <namhyung@kernel.org>2026-04-08 19:21:05 -0700
commit19a9ed115fda95317c98bef0c716ea8412cd8ce0 (patch)
tree8756286240543453592e3a0cbcb081fde634f93e /tools/perf/scripts/python/stackcollapse.py
parentfbfb858552fb9a4c869e22f3303c7c7365367509 (diff)
perf tools: Replace basename() calls with perf_basename()
As noticed in a sashiko review for a patch adding a missing libgen.h in a file using basename(): https://sashiko.dev/#/patchset/20260402001740.2220481-1-acme%40kernel.org So avoid these subtleties and instead reuse the gnu_basename() function we had in srcline.c, renaming it to perf_basename() and replace basename() calls with it, simplifying several cases by removing now needless strdups. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.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