diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/builtin-probe.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/perf/builtin-probe.c b/tools/perf/builtin-probe.c index 559eeb42c5e7..919037bc9808 100644 --- a/tools/perf/builtin-probe.c +++ b/tools/perf/builtin-probe.c | |||
@@ -205,8 +205,13 @@ int cmd_probe(int argc, const char **argv, const char *prefix __used) | |||
205 | 205 | ||
206 | argc = parse_options(argc, argv, options, probe_usage, | 206 | argc = parse_options(argc, argv, options, probe_usage, |
207 | PARSE_OPT_STOP_AT_NON_OPTION); | 207 | PARSE_OPT_STOP_AT_NON_OPTION); |
208 | if (argc > 0) | 208 | if (argc > 0) { |
209 | if (strcmp(argv[0], "-") == 0) { | ||
210 | pr_warning(" Error: '-' is not supported.\n"); | ||
211 | usage_with_options(probe_usage, options); | ||
212 | } | ||
209 | parse_probe_event_argv(argc, argv); | 213 | parse_probe_event_argv(argc, argv); |
214 | } | ||
210 | 215 | ||
211 | if ((!session.nr_probe && !session.dellist && !session.list_events)) | 216 | if ((!session.nr_probe && !session.dellist && !session.list_events)) |
212 | usage_with_options(probe_usage, options); | 217 | usage_with_options(probe_usage, options); |