From: Masami Hiramatsu Date: Thu, 25 Feb 2010 13:35:12 +0000 (-0500) Subject: perf probe: Do not show --line option without dwarf support X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f3ab481ca6ffe5e272c8501317bea726f9a83959;p=linux-beck.git perf probe: Do not show --line option without dwarf support Do not show --line option in help message when perf doesn't support dwarf. Signed-off-by: Masami Hiramatsu Cc: systemtap Cc: DLE Cc: Frederic Weisbecker Cc: Arnaldo Carvalho de Melo Cc: Peter Zijlstra Cc: Paul Mackerras Cc: Mike Galbraith Cc: K.Prasad Cc: Frederic Weisbecker Cc: Ananth N Mavinakayanahalli LKML-Reference: <20100225133512.6725.88423.stgit@localhost6.localdomain6> Signed-off-by: Ingo Molnar --- diff --git a/tools/perf/builtin-probe.c b/tools/perf/builtin-probe.c index ad47bd4c50ef..c7e14d0145f4 100644 --- a/tools/perf/builtin-probe.c +++ b/tools/perf/builtin-probe.c @@ -156,7 +156,9 @@ static const char * const probe_usage[] = { "perf probe [] --add 'PROBEDEF' [--add 'PROBEDEF' ...]", "perf probe [] --del '[GROUP:]EVENT' ...", "perf probe --list", +#ifndef NO_LIBDWARF "perf probe --line 'LINEDESC'", +#endif NULL };