perf tools: trivial NO_LIBDWARF build error tools/perf/builtin-probe.c
PATCH 1/1 perf tools: trivial NO_LIBDWARF build error tools/perf/builtin-probe.c
perf tools: fix NO_LIBDWARF build error tools/perf/builtin-probe.c
Signed-off-by Mike Galbraith <[email protected]>
Cc Masami Hiramatsu <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Frederic Weisbecker <[email protected]>
Cc Arnaldo Carvalho de Melo <[email protected]>
LKML-Reference: <new-submission>
tools/perf/builtin-probe.c +3 -0
@@ -118,6 +118,7 @@ static int opt_del_probe_event(const struct option *opt __used,return 0 ; } +#ifndef NO_LIBDWARF static int opt_show_lines (const struct option *opt__used ,const char *str,int unset__used ) {
@@ -127,6 +128,8 @@ static int opt_show_lines(const struct option *opt __used, session.show_lines = true; return 0; } +#endif +/* Currently just checking function name from symbol map */ static void evaluate_probe_point (struct probe_point *pp) {