Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263181
b: refs/heads/master
c: 777d1d7
h: refs/heads/master
i:
  263179: 73d57a4
v: v3
  • Loading branch information
Stephane Eranian authored and Arnaldo Carvalho de Melo committed Aug 18, 2011
1 parent 8805dab commit beacd3e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: cc2d86b04d9ac28a6be6cb05da6ea8f014fd5aa0
refs/heads/master: 777d1d71db622a5e1ff703495741c3d257b532e5
6 changes: 5 additions & 1 deletion trunk/tools/perf/util/parse-events.c
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,11 @@ parse_raw_event(const char **strp, struct perf_event_attr *attr)
return EVT_FAILED;
n = hex2u64(str + 1, &config);
if (n > 0) {
*strp = str + n + 1;
const char *end = str + n + 1;
if (*end != '\0' && *end != ',' && *end != ':')
return EVT_FAILED;

*strp = end;
attr->type = PERF_TYPE_RAW;
attr->config = config;
return EVT_HANDLED;
Expand Down

0 comments on commit beacd3e

Please sign in to comment.