Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 338913
b: refs/heads/master
c: 9175ce1
h: refs/heads/master
i:
  338911: c8644c3
v: v3
  • Loading branch information
Andi Kleen authored and Arnaldo Carvalho de Melo committed Oct 28, 2012
1 parent c6c7b18 commit 5c657eb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9db55064940db1447976945d07402a923e818962
refs/heads/master: 9175ce1f1244edd9f4d39605aa06ce5b0a50b8e0
10 changes: 7 additions & 3 deletions trunk/tools/perf/util/parse-events.c
Original file line number Diff line number Diff line change
Expand Up @@ -827,16 +827,20 @@ int parse_events(struct perf_evlist *evlist, const char *str,
* Both call perf_evlist__delete in case of error, so we dont
* need to bother.
*/
fprintf(stderr, "invalid or unsupported event: '%s'\n", str);
fprintf(stderr, "Run 'perf list' for a list of valid events\n");
return ret;
}

int parse_events_option(const struct option *opt, const char *str,
int unset __maybe_unused)
{
struct perf_evlist *evlist = *(struct perf_evlist **)opt->value;
return parse_events(evlist, str, unset);
int ret = parse_events(evlist, str, unset);

if (ret) {
fprintf(stderr, "invalid or unsupported event: '%s'\n", str);
fprintf(stderr, "Run 'perf list' for a list of valid events\n");
}
return ret;
}

int parse_filter(const struct option *opt, const char *str,
Expand Down

0 comments on commit 5c657eb

Please sign in to comment.