diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2009-11-10 22:51:06 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-11-11 01:30:19 -0500 |
commit | 3e13ab2d83b6867a20663c73c184f29c2fde1558 (patch) | |
tree | d0c67b84db78934e5a8c634261d0df017f0038fb /tools/perf/builtin-record.c | |
parent | 4778d2e4f410c6eea32f594cb2be9590bcb28b84 (diff) |
perf tools: Use perf_header__set/has_feat whenever possible
And drop the alternate checks/sets using set_bit or other kind
of helpers.
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp>
LKML-Reference: <1257911467-28276-5-git-send-email-fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
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 | } |