perf tools: Record events info also when :record suffix is used.
authorFrederic Weisbecker <fweisbec@gmail.com>
Mon, 17 Aug 2009 21:07:50 +0000 (23:07 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 17 Aug 2009 22:00:19 +0000 (00:00 +0200)
commit9df37ddd81f54dd41dc4958055c3a3c9b6840aef
tree4f8834cab5c6f980c249ef991760072ac8c9894f
parent4bf2364a951d3c043e132e4451d90c7bc74dee83
perf tools: Record events info also when :record suffix is used.

You can enable a counter's PERF_SAMPLE_RAW attribute in two
fashions:

- using the -R option (every counters get PERF_SAMPLE_RAW)
- using the :record suffix in a trace event counter name

Currently we record the events info in a trace.info file from
perf record when the former method is used but we omit it with
the latter.

Check both situations.

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: Steven Rostedt <rostedt@goodmis.org>
LKML-Reference: <1250543271-8383-3-git-send-email-fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-record.c