perf tools: Update cpumode for each cumulative entry
authorNamhyung Kim <namhyung@kernel.org>
Thu, 31 Oct 2013 04:58:30 +0000 (13:58 +0900)
committerJiri Olsa <jolsa@kernel.org>
Sun, 1 Jun 2014 12:34:58 +0000 (14:34 +0200)
commitc7405d85d7a354b8ba49e2db7c4b027e6cb997c1
tree0af81be04a236fa72d5b3c3233875e707a04921e
parent7a13aa28aa268359cee006059731f49bcd1f839e
perf tools: Update cpumode for each cumulative entry

The cpumode and level in struct addr_localtion was set for a sample
and but updated as cumulative callchains were added.  This led to have
non-matching symbol and cpumode in the output.

Update it accordingly based on the fact whether the map is a part of
the kernel or not.  This is a reverse of what thread__find_addr_map()
does.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Tested-by: Arun Sharma <asharma@fb.com>
Tested-by: Rodrigo Campos <rodrigo@sdfg.com.ar>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Link: http://lkml.kernel.org/r/1401335910-16832-7-git-send-email-namhyung@kernel.org
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
tools/perf/util/callchain.c
tools/perf/util/callchain.h
tools/perf/util/hist.c