Skip to content

perf tool: Minor code clean ups

Ian Rogers linux-perf-users lkml 1 version Applied

Status from this message: Applied to perf-tools-next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5perf symbol: Reduce scope of elf__needs_adjust_symbolstools/perf/util/symbol-elf.c tools/perf/util/symbol.h+4 -50 replies
2/5perf dump-insn: Remove dump-insn.ctools/perf/util/Build tools/perf/util/dump-insn.c+0 -240 replies
3/5perf tool: Constify the command and option arraystools/perf/perf.c+6 -60 replies
4/5perf bpf_map: Remove unused codetools/perf/builtin-trace.c tools/perf/util/Build tools/perf/util/bpf_map.c +1 more+0 -950 replies
5/5perf record: Remove unused cpu-set-sched.htools/perf/builtin-record.c tools/perf/util/cpu-set-sched.h+0 -510 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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

 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
Signature · 1 line
2.53.0.239.g8d8fc8a987-goog