aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/parse-events.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/parse-events.c')
-rw-r--r--tools/perf/util/parse-events.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c
index 910283cbbc8f..a9bdcab8c070 100644
--- a/tools/perf/util/parse-events.c
+++ b/tools/perf/util/parse-events.c
@@ -425,8 +425,11 @@ parse_single_tracepoint_event(char *sys_name,
425 int fd; 425 int fd;
426 426
427 if (flags) { 427 if (flags) {
428 if (!strncmp(flags, "record", strlen(flags))) 428 if (!strncmp(flags, "record", strlen(flags))) {
429 attr->sample_type |= PERF_SAMPLE_RAW; 429 attr->sample_type |= PERF_SAMPLE_RAW;
430 attr->sample_type |= PERF_SAMPLE_TIME;
431 attr->sample_type |= PERF_SAMPLE_CPU;
432 }
430 } 433 }
431 434
432 snprintf(evt_path, MAXPATHLEN, "%s/%s/%s/id", debugfs_path, 435 snprintf(evt_path, MAXPATHLEN, "%s/%s/%s/id", debugfs_path,