Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf probe: Remove unused add_perf_probe_events

add_perf_probe_events has been unused since 2015's commit
b02137cc6550 ("perf probe: Move print logic into cmd_probe()")
which confusingly now uses perf_add_probe_events.

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Link: https://lore.kernel.org/r/20240929010659.430208-1-linux@treblig.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>

authored by

Dr. David Alan Gilbert and committed by
Namhyung Kim
3c4e5587 6bff76af

-19
-18
tools/perf/util/probe-event.c
··· 3705 3705 } 3706 3706 } 3707 3707 3708 - int add_perf_probe_events(struct perf_probe_event *pevs, int npevs) 3709 - { 3710 - int ret; 3711 - 3712 - ret = init_probe_symbol_maps(pevs->uprobes); 3713 - if (ret < 0) 3714 - return ret; 3715 - 3716 - ret = convert_perf_probe_events(pevs, npevs); 3717 - if (ret == 0) 3718 - ret = apply_perf_probe_events(pevs, npevs); 3719 - 3720 - cleanup_perf_probe_events(pevs, npevs); 3721 - 3722 - exit_probe_symbol_maps(); 3723 - return ret; 3724 - } 3725 - 3726 3708 int del_perf_probe_events(struct strfilter *filter) 3727 3709 { 3728 3710 int ret, ret2, ufd = -1, kfd = -1;
-1
tools/perf/util/probe-event.h
··· 159 159 /* Initialize line range */ 160 160 int line_range__init(struct line_range *lr); 161 161 162 - int add_perf_probe_events(struct perf_probe_event *pevs, int npevs); 163 162 int convert_perf_probe_events(struct perf_probe_event *pevs, int npevs); 164 163 int apply_perf_probe_events(struct perf_probe_event *pevs, int npevs); 165 164 int show_probe_trace_events(struct perf_probe_event *pevs, int npevs);