milos-linux/tools/perf
Arnaldo Carvalho de Melo 19a9ed115f 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>
2026-04-08 19:21:05 -07:00
..
arch perf tools: Use calloc() where applicable 2026-04-08 19:21:05 -07:00
bench perf tools: Use calloc() where applicable 2026-04-08 19:21:05 -07:00
check-header_ignore_hunks/lib
dlfilters
Documentation perf config: Make symbol_conf::addr2line_disable_warn configurable 2026-04-08 10:28:49 -07:00
include/perf
jvmti perf tools: Use calloc() where applicable 2026-04-08 19:21:05 -07:00
pmu-events perf metrics: Make common stalled metrics conditional on having the event 2026-04-02 20:12:28 -07:00
python perf ilist: Be tolerant of reading a metric on the wrong CPU 2025-12-02 16:12:49 -08:00
scripts perf script: Fix script_fetch_insn for more than just x86 2026-01-27 01:35:22 -03:00
tests perf tools: Use calloc() where applicable 2026-04-08 19:21:05 -07:00
trace perf beauty: Move copy of fadvise.h from tools/include/ to tools/perf/trace/beauty/include/ 2026-03-31 20:23:06 -07:00
ui perf disasm: Refactor arch__find and initialization of arch structs 2026-01-23 16:58:39 -03:00
util perf tools: Replace basename() calls with perf_basename() 2026-04-08 19:21:05 -07:00
.gitignore perf jevents: Build support for generating metrics from python 2026-01-28 15:18:44 -03:00
Build
builtin-annotate.c perf tools: Use calloc() where applicable 2026-04-08 19:21:05 -07:00
builtin-bench.c perf bench: Constify tables 2026-04-08 19:21:05 -07:00
builtin-buildid-cache.c perf symbol: Fix ENOENT case for filename__read_build_id 2025-12-17 07:30:51 -08:00
builtin-buildid-list.c
builtin-c2c.c perf tools: Use calloc() where applicable 2026-04-08 19:21:05 -07:00
builtin-check.c perf check: Add libbabeltrace to the listed features 2026-02-12 17:45:22 -03:00
builtin-config.c perf tools: Make more global variables static 2026-04-08 19:21:04 -07:00
builtin-daemon.c perf tools: Replace basename() calls with perf_basename() 2026-04-08 19:21:05 -07:00
builtin-data.c perf tools: Make more global variables static 2026-04-08 19:21:04 -07:00
builtin-diff.c perf tools: Use calloc() where applicable 2026-04-08 19:21:05 -07:00
builtin-evlist.c perf tool: Add the perf_tool argument to all callbacks 2025-11-07 13:25:05 -08:00
builtin-ftrace.c perf tools: Use calloc() where applicable 2026-04-08 19:21:05 -07:00
builtin-help.c perf help: Move common_cmds into builtin-help 2026-01-14 17:22:50 -03:00
builtin-inject.c perf sample: Add evsel to struct perf_sample 2026-04-05 23:12:15 -07:00
builtin-kallsyms.c
builtin-kmem.c perf tools: Make more global variables static 2026-04-08 19:21:04 -07:00
builtin-kvm.c perf session: Add e_flags to the e_machine helper 2026-02-03 18:01:27 -03:00
builtin-kwork.c perf tools: Use calloc() where applicable 2026-04-08 19:21:05 -07:00
builtin-list.c Merge remote-tracking branch 'torvalds/master' into perf-tools-next 2026-01-26 17:03:53 -03:00
builtin-lock.c perf lock: Fix option value type in parse_max_stack 2026-03-26 15:02:42 -07:00
builtin-mem.c perf auxtrace: Remove errno.h from auxtrace.h and fix transitive dependencies 2025-11-13 23:03:11 -08:00
builtin-probe.c perf tools: Add layout support for --symfs option 2026-03-10 23:13:30 -07:00
builtin-record.c perf tools: Use calloc() where applicable 2026-04-08 19:21:05 -07:00
builtin-report.c perf header: Refactor pipe mode end marker handling 2026-04-02 19:35:16 -07:00
builtin-sched.c perf tools: Use calloc() where applicable 2026-04-08 19:21:05 -07:00
builtin-script.c perf tools: Use calloc() where applicable 2026-04-08 19:21:05 -07:00
builtin-stat.c perf tools: Use calloc() where applicable 2026-04-08 19:21:05 -07:00
builtin-timechart.c perf tools: Add layout support for --symfs option 2026-03-10 23:13:30 -07:00
builtin-top.c perf tools: Make more global variables static 2026-04-08 19:21:04 -07:00
builtin-trace.c perf tools: Use calloc() where applicable 2026-04-08 19:21:05 -07:00
builtin-version.c
builtin.h
check-headers.sh perf beauty: Move copy of fadvise.h from tools/include/ to tools/perf/trace/beauty/include/ 2026-03-31 20:23:06 -07:00
CREDITS
design.txt
Makefile
Makefile.config perf build: Add -funsigned-char to default CFLAGS 2026-03-31 20:22:02 -07:00
Makefile.perf perf beauty: Move copy of fadvise.h from tools/include/ to tools/perf/trace/beauty/include/ 2026-03-31 20:23:06 -07:00
MANIFEST
perf-archive.sh
perf-completion.sh
perf-iostat.sh
perf-read-vdso.c
perf-sys.h
perf.c perf tool: Constify the command and option arrays 2026-03-13 14:26:27 -07:00
perf.h