From 294ca2e2195363996f70c49b1f9fe2e49c94d27c Mon Sep 17 00:00:00 2001 From: Stephane Eranian Date: Tue, 17 May 2011 15:36:19 +0200 Subject: [PATCH] --- yaml --- r: 245495 b: refs/heads/master c: 94692349c4fc1bc74c19a28f9379509361a06a3b h: refs/heads/master i: 245493: 10c4e77dde5d36e8bb45da558786a841ccae2aff 245491: 64317ad8e9934753542e0b705b2a9c1342644a2d 245487: 525d8c8ffa3d192f0a1b759b566f30260601be01 v: v3 --- [refs] | 2 +- trunk/tools/perf/util/parse-events.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 23b2501bebd5..81254d281d7a 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 449a66fd1fa75d36dca917704827c40c8f416bca +refs/heads/master: 94692349c4fc1bc74c19a28f9379509361a06a3b diff --git a/trunk/tools/perf/util/parse-events.c b/trunk/tools/perf/util/parse-events.c index ffa493a24333..41982c373faf 100644 --- a/trunk/tools/perf/util/parse-events.c +++ b/trunk/tools/perf/util/parse-events.c @@ -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;