]> bbs.cooldavid.org Git - net-next-2.6.git/commit
perf probe: Support comp_dir to find an absolute source path
authorMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Fri, 9 Jul 2010 09:29:11 +0000 (18:29 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 16 Jul 2010 14:48:09 +0000 (11:48 -0300)
commit6a330a3c8a648916b3c6bda79a78c38ac093af17
tree76322d562a438cb47ebf95311d898394efceca8e
parent7cf0b79e6ffd04bba5d4e625a0fe2e30a5b383e5
perf probe: Support comp_dir to find an absolute source path

Gcc generates DW_AT_comp_dir and stores relative source path if building kernel
without O= option. In that case, perf probe --line sometimes doesn't work
without --source option, because it tries to access relative source path.

This adds DW_AT_comp_dir support to perf probe for finding an absolute source
path when no --source option.

LKML-Reference: <4C36EBE7.3060802@hitachi.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/probe-event.c
tools/perf/util/probe-event.h
tools/perf/util/probe-finder.c