diff options
Diffstat (limited to 'tools/perf/builtin-record.c')
-rw-r--r-- | tools/perf/builtin-record.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c index c35e61b30988..326e8a79cabf 100644 --- a/tools/perf/builtin-record.c +++ b/tools/perf/builtin-record.c | |||
@@ -431,11 +431,11 @@ static int __cmd_record(int argc, const char **argv) | |||
431 | header = perf_header__new(); | 431 | header = perf_header__new(); |
432 | 432 | ||
433 | if (raw_samples) { | 433 | if (raw_samples) { |
434 | perf_header__feat_trace_info(header); | 434 | perf_header__set_feat(header, HEADER_TRACE_INFO); |
435 | } else { | 435 | } else { |
436 | for (i = 0; i < nr_counters; i++) { | 436 | for (i = 0; i < nr_counters; i++) { |
437 | if (attrs[i].sample_type & PERF_SAMPLE_RAW) { | 437 | if (attrs[i].sample_type & PERF_SAMPLE_RAW) { |
438 | perf_header__feat_trace_info(header); | 438 | perf_header__set_feat(header, HEADER_TRACE_INFO); |
439 | break; | 439 | break; |
440 | } | 440 | } |
441 | } | 441 | } |