]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
perf probe: Remove unused add_perf_probe_events
authorDr. David Alan Gilbert <linux@treblig.org>
Sun, 29 Sep 2024 01:06:59 +0000 (02:06 +0100)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 9 Oct 2024 17:52:08 +0000 (10:52 -0700)
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>
tools/perf/util/probe-event.c
tools/perf/util/probe-event.h

index a17c9b8a7a792dda970a9928bb6f4a265acc42f0..698a928753740bc2d70965b5a411949607de1bee 100644 (file)
@@ -3705,24 +3705,6 @@ void cleanup_perf_probe_events(struct perf_probe_event *pevs, int npevs)
        }
 }
 
-int add_perf_probe_events(struct perf_probe_event *pevs, int npevs)
-{
-       int ret;
-
-       ret = init_probe_symbol_maps(pevs->uprobes);
-       if (ret < 0)
-               return ret;
-
-       ret = convert_perf_probe_events(pevs, npevs);
-       if (ret == 0)
-               ret = apply_perf_probe_events(pevs, npevs);
-
-       cleanup_perf_probe_events(pevs, npevs);
-
-       exit_probe_symbol_maps();
-       return ret;
-}
-
 int del_perf_probe_events(struct strfilter *filter)
 {
        int ret, ret2, ufd = -1, kfd = -1;
index 7e3b6c3d1f7447a754192338fabea351ad7b6038..4850e52f274e4474b541d2e6e58b2a4860e06e8d 100644 (file)
@@ -159,7 +159,6 @@ void line_range__clear(struct line_range *lr);
 /* Initialize line range */
 int line_range__init(struct line_range *lr);
 
-int add_perf_probe_events(struct perf_probe_event *pevs, int npevs);
 int convert_perf_probe_events(struct perf_probe_event *pevs, int npevs);
 int apply_perf_probe_events(struct perf_probe_event *pevs, int npevs);
 int show_probe_trace_events(struct perf_probe_event *pevs, int npevs);