]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Do not create kernel maps in sample__resolve()
authorJiri Olsa <jolsa@kernel.org>
Thu, 15 Feb 2018 12:26:34 +0000 (13:26 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 16 Feb 2018 17:25:59 +0000 (14:25 -0300)
commit2835d5f31007269f9b59645a8c39d4da5f9a5343
tree4d78836f108828298baf36a37aced80bece8b4f3
parentf4e0c593b49fbf852973706a0bc02261e153b9bf
perf tools: Do not create kernel maps in sample__resolve()

There's no need for kernel maps to be allocated at this point - sample
processing.

We search for kernel maps using the kernel map_groups in machine::kmaps
which is static. If vmlinux maps for any reason still don't exist, the
search correctly fails because they are not in the map group.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20180215122635.24029-9-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/event.c