Skip to contentSkip to conversation

perf tools: trivial NO_LIBDWARF build error tools/perf/builtin-probe.c

PATCH New Mike Galbraith 1 participant 1 message Jan 17, 2010 perf events

lore
Share & tools
lore
#0 lore raw

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

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
index 1d3a99e..9be8063 100644
@@ -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)
 {