perf symbols: Allow loading kallsyms without considering kcore files
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 19 Apr 2016 15:12:49 +0000 (12:12 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 19 Apr 2016 15:38:56 +0000 (12:38 -0300)
commite02092b9a922f17e951b2df5f12f4aafe7383a21
treebbcccedf69f950f1a29346ae611b14557f36adfb
parent2cc4666927402ec748122cac15ceac35a5e298a3
perf symbols: Allow loading kallsyms without considering kcore files

Before the support for using /proc/kcore was introduced, the kallsyms
routines used /proc/modules and the first 'perf test' entry expected
finding maps for each module in the system, which is not the case with
the kcore code. Provide a way to ignore kcore files so that the test can
have its expectations met.

Improving the test to cover kcore files as well needs to be done.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-ek5urnu103dlhfk4l6pcw041@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/machine.c
tools/perf/util/machine.h
tools/perf/util/symbol.c
tools/perf/util/symbol.h