mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-23 18:51:32 -05:00
perf probe: Remove unused add_perf_probe_events
add_perf_probe_events has been unused since 2015's commit
b02137cc65 ("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>
This commit is contained in:
committed by
Namhyung Kim
parent
6bff76af96
commit
3c4e558787
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user