linux/tools/perf/tests
Adrian Hunter 5b7ba82a75 perf symbols: Load kernel maps before using
In order to use kernel maps to read object code, those maps must be
adjusted to map to the dso file offset.  Because lazy-initialization is
used, that is not done until symbols are loaded.  However the maps are
first used by thread__find_addr_map() before symbols are loaded.  So
this patch changes thread__find_addr() to "load" kernel maps before
using them.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1375875537-4509-3-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2013-08-07 17:35:31 -03:00
..
attr perf tests: Add attr record group sampling test 2013-08-07 17:35:23 -03:00
attr.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2013-04-30 09:36:50 -07:00
attr.py perf tests: Make attr script test event cpu 2013-03-15 13:06:00 -03:00
bp_signal_overflow.c perf tests: Fix compile errors in bp_signal files 2013-05-28 16:23:57 +03:00
bp_signal.c perf tests: Fix compile errors in bp_signal files 2013-05-28 16:23:57 +03:00
builtin-test.c perf tests: Add test for reading object code 2013-08-07 17:35:30 -03:00
code-reading.c perf symbols: Load kernel maps before using 2013-08-07 17:35:31 -03:00
dso-data.c perf tests: Make TEST_ASSERT_VAL global 2013-07-12 13:45:52 -03:00
evsel-roundtrip-name.c perf evlist: Remove cpus and threads arguments from perf_evlist__new() 2013-03-15 13:06:01 -03:00
evsel-tp-sched.c perf tests: Check proper prev_state size for sched_switch tp 2013-07-17 12:34:53 -03:00
hists_link.c perf tools: Add support for weight v7 (modified) 2013-04-01 12:19:43 -03:00
make perf tests: Add broken install-* tests into tests/make 2013-07-22 16:54:56 -03:00
mmap-basic.c perf evlist: Remove cpus and threads arguments from perf_evlist__new() 2013-03-15 13:06:01 -03:00
open-syscall-all-cpus.c perf evsel: Fix memory leaks on evsel->counts 2013-01-30 10:37:04 -03:00
open-syscall-tp-fields.c perf tests: Fixup return path of open-syscall-tp-fields test case 2013-03-15 13:06:12 -03:00
open-syscall.c perf test: Use perf_evsel__newtp constructor in the tracepoint tests 2012-12-10 15:11:43 -03:00
parse-events.c perf tests: Add parse events tests for leader sampling 2013-08-07 17:35:23 -03:00
perf-record.c perf tests: Fixup return path of perf record test case 2013-03-15 13:06:12 -03:00
perf-time-to-tsc.c perf tools: Add test for converting perf time to/from TSC 2013-07-23 12:17:59 +02:00
pmu.c perf tests: Use ARRAY_SIZE() were applicable 2013-01-24 16:40:51 -03:00
python-use.c perf tests: Check python path on attr and binding test 2013-01-24 16:40:10 -03:00
rdpmc.c perf tests: Move test__rdpmc into separate object 2012-11-14 16:49:50 -03:00
sw-clock.c perf tests: Add a test case for checking sw clock event frequency 2013-03-18 11:43:16 -03:00
task-exit.c perf test: Add test case for checking number of EXIT events 2013-03-15 13:06:12 -03:00
tests.h perf tests: Add test for reading object code 2013-08-07 17:35:30 -03:00
vmlinux-kallsyms.c perf tests: Omit end of the symbol check failure for test 1 2013-07-12 13:45:50 -03:00