perf callchain: Move cpumode resolve code to add_callchain_ip
authorKan Liang <kan.liang@intel.com>
Tue, 2 Dec 2014 15:06:53 +0000 (10:06 -0500)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 9 Dec 2014 13:06:29 +0000 (10:06 -0300)
commit2e77784bb7d882647c33d8e75a650625e6df0f8b
tree8b2eca2e80b1dceebab1d6a72249ef7f90d85a64
parentf70b4e39de4ef25aade966c0dfc69cfb97091be9
perf callchain: Move cpumode resolve code to add_callchain_ip

Using flag to distinguish between branch_history and normal callchain.

Move the cpumode to add_callchain_ip function.

No change in behavior.

Signed-off-by: Kan Liang <kan.liang@intel.com>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1417532814-26208-3-git-send-email-kan.liang@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/machine.c