diff options
Diffstat (limited to 'tools/perf/builtin-probe.c')
-rw-r--r-- | tools/perf/builtin-probe.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/perf/builtin-probe.c b/tools/perf/builtin-probe.c index e8a66f9a6715..89acc17cf2a0 100644 --- a/tools/perf/builtin-probe.c +++ b/tools/perf/builtin-probe.c | |||
@@ -173,7 +173,7 @@ static int opt_set_target(const struct option *opt, const char *str, | |||
173 | if (str && !params.target) { | 173 | if (str && !params.target) { |
174 | if (!strcmp(opt->long_name, "exec")) | 174 | if (!strcmp(opt->long_name, "exec")) |
175 | params.uprobes = true; | 175 | params.uprobes = true; |
176 | #ifdef DWARF_SUPPORT | 176 | #ifdef HAVE_DWARF_SUPPORT |
177 | else if (!strcmp(opt->long_name, "module")) | 177 | else if (!strcmp(opt->long_name, "module")) |
178 | params.uprobes = false; | 178 | params.uprobes = false; |
179 | #endif | 179 | #endif |
@@ -187,7 +187,7 @@ static int opt_set_target(const struct option *opt, const char *str, | |||
187 | return ret; | 187 | return ret; |
188 | } | 188 | } |
189 | 189 | ||
190 | #ifdef DWARF_SUPPORT | 190 | #ifdef HAVE_DWARF_SUPPORT |
191 | static int opt_show_lines(const struct option *opt __maybe_unused, | 191 | static int opt_show_lines(const struct option *opt __maybe_unused, |
192 | const char *str, int unset __maybe_unused) | 192 | const char *str, int unset __maybe_unused) |
193 | { | 193 | { |
@@ -257,7 +257,7 @@ int cmd_probe(int argc, const char **argv, const char *prefix __maybe_unused) | |||
257 | "perf probe [<options>] --add 'PROBEDEF' [--add 'PROBEDEF' ...]", | 257 | "perf probe [<options>] --add 'PROBEDEF' [--add 'PROBEDEF' ...]", |
258 | "perf probe [<options>] --del '[GROUP:]EVENT' ...", | 258 | "perf probe [<options>] --del '[GROUP:]EVENT' ...", |
259 | "perf probe --list", | 259 | "perf probe --list", |
260 | #ifdef DWARF_SUPPORT | 260 | #ifdef HAVE_DWARF_SUPPORT |
261 | "perf probe [<options>] --line 'LINEDESC'", | 261 | "perf probe [<options>] --line 'LINEDESC'", |
262 | "perf probe [<options>] --vars 'PROBEPOINT'", | 262 | "perf probe [<options>] --vars 'PROBEPOINT'", |
263 | #endif | 263 | #endif |
@@ -271,7 +271,7 @@ int cmd_probe(int argc, const char **argv, const char *prefix __maybe_unused) | |||
271 | OPT_CALLBACK('d', "del", NULL, "[GROUP:]EVENT", "delete a probe event.", | 271 | OPT_CALLBACK('d', "del", NULL, "[GROUP:]EVENT", "delete a probe event.", |
272 | opt_del_probe_event), | 272 | opt_del_probe_event), |
273 | OPT_CALLBACK('a', "add", NULL, | 273 | OPT_CALLBACK('a', "add", NULL, |
274 | #ifdef DWARF_SUPPORT | 274 | #ifdef HAVE_DWARF_SUPPORT |
275 | "[EVENT=]FUNC[@SRC][+OFF|%return|:RL|;PT]|SRC:AL|SRC;PT" | 275 | "[EVENT=]FUNC[@SRC][+OFF|%return|:RL|;PT]|SRC:AL|SRC;PT" |
276 | " [[NAME=]ARG ...]", | 276 | " [[NAME=]ARG ...]", |
277 | #else | 277 | #else |
@@ -283,7 +283,7 @@ int cmd_probe(int argc, const char **argv, const char *prefix __maybe_unused) | |||
283 | "\t\tFUNC:\tFunction name\n" | 283 | "\t\tFUNC:\tFunction name\n" |
284 | "\t\tOFF:\tOffset from function entry (in byte)\n" | 284 | "\t\tOFF:\tOffset from function entry (in byte)\n" |
285 | "\t\t%return:\tPut the probe at function return\n" | 285 | "\t\t%return:\tPut the probe at function return\n" |
286 | #ifdef DWARF_SUPPORT | 286 | #ifdef HAVE_DWARF_SUPPORT |
287 | "\t\tSRC:\tSource code path\n" | 287 | "\t\tSRC:\tSource code path\n" |
288 | "\t\tRL:\tRelative line number from function entry.\n" | 288 | "\t\tRL:\tRelative line number from function entry.\n" |
289 | "\t\tAL:\tAbsolute line number in file.\n" | 289 | "\t\tAL:\tAbsolute line number in file.\n" |
@@ -296,7 +296,7 @@ int cmd_probe(int argc, const char **argv, const char *prefix __maybe_unused) | |||
296 | opt_add_probe_event), | 296 | opt_add_probe_event), |
297 | OPT_BOOLEAN('f', "force", ¶ms.force_add, "forcibly add events" | 297 | OPT_BOOLEAN('f', "force", ¶ms.force_add, "forcibly add events" |
298 | " with existing name"), | 298 | " with existing name"), |
299 | #ifdef DWARF_SUPPORT | 299 | #ifdef HAVE_DWARF_SUPPORT |
300 | OPT_CALLBACK('L', "line", NULL, | 300 | OPT_CALLBACK('L', "line", NULL, |
301 | "FUNC[:RLN[+NUM|-RLN2]]|SRC:ALN[+NUM|-ALN2]", | 301 | "FUNC[:RLN[+NUM|-RLN2]]|SRC:ALN[+NUM|-ALN2]", |
302 | "Show source code lines.", opt_show_lines), | 302 | "Show source code lines.", opt_show_lines), |
@@ -408,7 +408,7 @@ int cmd_probe(int argc, const char **argv, const char *prefix __maybe_unused) | |||
408 | return ret; | 408 | return ret; |
409 | } | 409 | } |
410 | 410 | ||
411 | #ifdef DWARF_SUPPORT | 411 | #ifdef HAVE_DWARF_SUPPORT |
412 | if (params.show_lines && !params.uprobes) { | 412 | if (params.show_lines && !params.uprobes) { |
413 | if (params.mod_events) { | 413 | if (params.mod_events) { |
414 | pr_err(" Error: Don't use --line with" | 414 | pr_err(" Error: Don't use --line with" |