OSDN Git Service

perf symbols: Check compatible symtab type before loading dso
authorNamhyung Kim <namhyung@kernel.org>
Thu, 20 Feb 2014 01:32:56 +0000 (10:32 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 24 Feb 2014 19:25:01 +0000 (16:25 -0300)
commit1029f9fedf87fa6f52096991588fa54ffd159584
tree67a2cfd3b4b042be0f7d73d535d9ea4341c394b4
parent0d3dc5e8b85a144aaeb5dc26f7f2113e4c4e7e81
perf symbols: Check compatible symtab type before loading dso

When loading a dso it'll look for symbol tables of all possible types.
However it's just wasted of time to check incompatible types - like
trying kernel module when loading user library.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Cody P Schafer <cody@linux.vnet.ibm.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Namhyung Kim <namhyung.kim@lge.com>
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/1392859976-32760-4-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/symbol.c