diff options
Diffstat (limited to 'tools/perf/util/parse-events.c')
-rw-r--r-- | tools/perf/util/parse-events.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c index 435781e0c205..880070c02fd2 100644 --- a/tools/perf/util/parse-events.c +++ b/tools/perf/util/parse-events.c | |||
@@ -410,7 +410,6 @@ static enum event_result | |||
410 | parse_single_tracepoint_event(char *sys_name, | 410 | parse_single_tracepoint_event(char *sys_name, |
411 | const char *evt_name, | 411 | const char *evt_name, |
412 | unsigned int evt_length, | 412 | unsigned int evt_length, |
413 | char *flags, | ||
414 | struct perf_event_attr *attr, | 413 | struct perf_event_attr *attr, |
415 | const char **strp) | 414 | const char **strp) |
416 | { | 415 | { |
@@ -419,13 +418,9 @@ parse_single_tracepoint_event(char *sys_name, | |||
419 | u64 id; | 418 | u64 id; |
420 | int fd; | 419 | int fd; |
421 | 420 | ||
422 | if (flags) { | 421 | attr->sample_type |= PERF_SAMPLE_RAW; |
423 | if (!strncmp(flags, "record", strlen(flags))) { | 422 | attr->sample_type |= PERF_SAMPLE_TIME; |
424 | attr->sample_type |= PERF_SAMPLE_RAW; | 423 | attr->sample_type |= PERF_SAMPLE_CPU; |
425 | attr->sample_type |= PERF_SAMPLE_TIME; | ||
426 | attr->sample_type |= PERF_SAMPLE_CPU; | ||
427 | } | ||
428 | } | ||
429 | 424 | ||
430 | snprintf(evt_path, MAXPATHLEN, "%s/%s/%s/id", debugfs_path, | 425 | snprintf(evt_path, MAXPATHLEN, "%s/%s/%s/id", debugfs_path, |
431 | sys_name, evt_name); | 426 | sys_name, evt_name); |
@@ -533,8 +528,7 @@ static enum event_result parse_tracepoint_event(const char **strp, | |||
533 | flags); | 528 | flags); |
534 | } else | 529 | } else |
535 | return parse_single_tracepoint_event(sys_name, evt_name, | 530 | return parse_single_tracepoint_event(sys_name, evt_name, |
536 | evt_length, flags, | 531 | evt_length, attr, strp); |
537 | attr, strp); | ||
538 | } | 532 | } |
539 | 533 | ||
540 | static enum event_result | 534 | static enum event_result |