]> git.baikalelectronics.ru Git - kernel.git/commit
perf symbols: Set module info when build-id event found
authorNamhyung Kim <namhyung@kernel.org>
Wed, 31 May 2017 12:01:04 +0000 (21:01 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 5 Jun 2017 17:17:58 +0000 (14:17 -0300)
commitd117c4a7b682b0391960e804212db0256bcb26cf
tree07d0ed62b940d1da53b409f0da6a33653d7daa5b
parentbaa12014f54326723599d48b8d35bb7e59ae245a
perf symbols: Set module info when build-id event found

Like machine__findnew_module_dso(), it should set necessary info for
kernel modules to find symbol info from the file.  Factor out
dso__set_module_info() to do it.

This is needed for dso__needs_decompress() to detect such DSOs.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: kernel-team@lge.com
Link: http://lkml.kernel.org/r/20170531120105.21731-2-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/dso.c
tools/perf/util/dso.h
tools/perf/util/header.c
tools/perf/util/machine.c