Re: [PATCH v1 0/5] perf tool: Minor code clean ups

From: Ian Rogers

Date: Thu Mar 12 2026 - 16:45:20 EST


On Sat, Feb 7, 2026 at 12:24 AM Ian Rogers <irogers@xxxxxxxxxx> wrote:
>
> Remove some unused functions, files, etc. Reduce scope of variables
> and functions. Constify arrays in perf.c.
>
> Ian Rogers (5):
> perf symbol: Reduce scope of elf__needs_adjust_symbols
> perf dump-insn: Remove dump-insn.c
> perf tool: Constify the command and option arrays
> perf bpf_map: Remove unused code
> perf record: Remove unused cpu-set-sched.h

Ping.

Thanks,
Ian

> tools/perf/builtin-record.c | 1 -
> tools/perf/builtin-trace.c | 1 -
> tools/perf/perf.c | 12 +++---
> tools/perf/util/Build | 2 -
> tools/perf/util/bpf_map.c | 70 ---------------------------------
> tools/perf/util/bpf_map.h | 23 -----------
> tools/perf/util/cpu-set-sched.h | 50 -----------------------
> tools/perf/util/dump-insn.c | 23 -----------
> tools/perf/util/symbol-elf.c | 8 ++--
> tools/perf/util/symbol.h | 1 -
> 10 files changed, 10 insertions(+), 181 deletions(-)
> delete mode 100644 tools/perf/util/bpf_map.c
> delete mode 100644 tools/perf/util/bpf_map.h
> delete mode 100644 tools/perf/util/cpu-set-sched.h
> delete mode 100644 tools/perf/util/dump-insn.c
>
> --
> 2.53.0.239.g8d8fc8a987-goog
>