diff options
| author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2026-04-08 14:32:03 -0300 |
|---|---|---|
| committer | Namhyung Kim <namhyung@kernel.org> | 2026-04-08 19:21:05 -0700 |
| commit | 19a9ed115fda95317c98bef0c716ea8412cd8ce0 (patch) | |
| tree | 8756286240543453592e3a0cbcb081fde634f93e /rust/kernel/interop/git@git.tavy.me:linux-stable.git | |
| parent | fbfb858552fb9a4c869e22f3303c7c7365367509 (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 'rust/kernel/interop/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
