perf: Fix multi-event parsing bug
[cascardo/linux.git] / tools / perf / util / parse-events.c
index ffa493a..41982c3 100644 (file)
@@ -734,6 +734,9 @@ parse_event_modifier(const char **strp, struct perf_event_attr *attr)
        if (!*str)
                return 0;
 
+       if (*str == ',')
+               return 0;
+
        if (*str++ != ':')
                return -1;