perf tests: Add test for reading object code
authorAdrian Hunter <[email protected]>
Wed, 7 Aug 2013 11:38:45 +0000 (14:38 +0300)
committerArnaldo Carvalho de Melo <[email protected]>
Wed, 7 Aug 2013 20:35:30 +0000 (17:35 -0300)
commitb55ae0a976f2927ea8f15a85c43bbe6d25a68a41
treecc698532742f02295d114f271c6c175d5d04ec62
parent3445432b7b24665cf4693fc4794c62d4d768a978
perf tests: Add test for reading object code

Using the information in mmap events, perf tools can read object code
associated with sampled addresses.  A test is added that compares bytes
read by perf with the same bytes read using objdump.

Signed-off-by: Adrian Hunter <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/Makefile
tools/perf/tests/builtin-test.c
tools/perf/tests/code-reading.c [new file with mode: 0644]
tools/perf/tests/tests.h