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

perf probe: Make synthesize_perf_probe_point() private to probe-event.c

Not used in any other place, so just make it static.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/lkml/ZM0pjfOe6R4X%2Fcql@kernel.org/
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

+3 -2
+3 -1
tools/perf/util/probe-event.c
··· 53 53 bool probe_event_dry_run; /* Dry run flag */ 54 54 struct probe_conf probe_conf = { .magic_num = DEFAULT_PROBE_MAGIC_NUM }; 55 55 56 + static char *synthesize_perf_probe_point(struct perf_probe_point *pp); 57 + 56 58 #define semantic_error(msg ...) pr_err("Semantic error :" msg) 57 59 58 60 int e_snprintf(char *str, size_t size, const char *format, ...) ··· 2012 2010 } 2013 2011 2014 2012 /* Compose only probe point (not argument) */ 2015 - char *synthesize_perf_probe_point(struct perf_probe_point *pp) 2013 + static char *synthesize_perf_probe_point(struct perf_probe_point *pp) 2016 2014 { 2017 2015 struct strbuf buf; 2018 2016 char *tmp, *ret = NULL;
-1
tools/perf/util/probe-event.h
··· 137 137 char *synthesize_perf_probe_command(struct perf_probe_event *pev); 138 138 char *synthesize_probe_trace_command(struct probe_trace_event *tev); 139 139 char *synthesize_perf_probe_arg(struct perf_probe_arg *pa); 140 - char *synthesize_perf_probe_point(struct perf_probe_point *pp); 141 140 142 141 int perf_probe_event__copy(struct perf_probe_event *dst, 143 142 struct perf_probe_event *src);