perf symbols: Implement poor man's ELF parser
authorNamhyung Kim <namhyung.kim@lge.com>
Mon, 6 Aug 2012 04:41:22 +0000 (13:41 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 9 Aug 2012 19:27:04 +0000 (16:27 -0300)
commitb691f64360ecec49c44d534cf4c1798a438bfccb
tree8bd953273a1eeda870b6e4d88a263fd5085b3ebd
parent393be2e3747ea3ef0d2e724115a5f42b2fa50dbd
perf symbols: Implement poor man's ELF parser

Implement a minimal elf parser for getting build-id.  It assumes that
required elf.h header is provided by libc header on the system and the
parser only looks for PT_NOTE program header to check build-id.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1344228082-15569-5-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/symbol-minimal.c