perf record: Fix -C option
authorJiri Olsa <jolsa@redhat.com>
Mon, 25 Feb 2013 09:52:48 +0000 (10:52 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 13 Mar 2013 19:58:28 +0000 (16:58 -0300)
commite4dd45fe7add0de09e0e5b2b511732d9c86b6ee7
treef33defcdc9c5bc92880c8b01852ba93606663e67
parentd2f32479e5526a1ab3b4e43910fcb279871524ce
perf record: Fix -C option

Currently the -C option does not work for record command, because of the
targets mismatch when synthesizing threads.

Fixing this by using proper target interface for the synthesize
decision.

Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Reported-by: Oleg Nesterov <oleg@redhat.com>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1361785972-7431-2-git-send-email-jolsa@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-record.c