diff options
Diffstat (limited to 'tools/perf/util/parse-events.c')
-rw-r--r-- | tools/perf/util/parse-events.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c index ffa493a24333..41982c373faf 100644 --- a/tools/perf/util/parse-events.c +++ b/tools/perf/util/parse-events.c | |||
@@ -734,6 +734,9 @@ parse_event_modifier(const char **strp, struct perf_event_attr *attr) | |||
734 | if (!*str) | 734 | if (!*str) |
735 | return 0; | 735 | return 0; |
736 | 736 | ||
737 | if (*str == ',') | ||
738 | return 0; | ||
739 | |||
737 | if (*str++ != ':') | 740 | if (*str++ != ':') |
738 | return -1; | 741 | return -1; |
739 | 742 | ||