perf tools: Add an option to multiplex counters in a single channel
authorFrederic Weisbecker <fweisbec@gmail.com>
Mon, 14 Sep 2009 06:57:15 +0000 (08:57 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 14 Sep 2009 07:52:23 +0000 (09:52 +0200)
commitd13025222cdb0043e2239b3b819389358bb31bc0
tree9bac1060f41da9f2d35f194749428a23dde8290c
parentf977bb4937857994312fff4f9c2cad336a36a932
perf tools: Add an option to multiplex counters in a single channel

Add an option to multiplex counters output in the channel of
the group leader, ie: the first counter opened:

-M --multiplex

The effect is better serialized samples. This is especially
useful for tracepoint samples that need to be well serialized
for their post-processing.

Also make use of this option in 'perf sched'.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-record.c
tools/perf/builtin-sched.c