perf probe: Fix error message if get_real_path() failed
authorMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Fri, 9 Jul 2010 09:28:59 +0000 (18:28 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 16 Jul 2010 14:46:34 +0000 (11:46 -0300)
commit7cf0b79e6ffd04bba5d4e625a0fe2e30a5b383e5
tree65a99a3bd6aeaafd723397ffb623a9a90e327474
parent0dd9ac63ce26ec87b080ca9c3e6efed33c23ace6
perf probe: Fix error message if get_real_path() failed

Perf probe -L shows incorrect error message (Dwarf error) if it fails to find
source file. This can confuse users.

# ./perf probe -s /nowhere -L vfs_read
Debuginfo analysis failed. (-2)
  Error: Failed to show lines. (-2)

With this patch, it shows correct message.

# ./perf probe -s /nowhere -L vfs_read
Failed to find source file. (-2)
  Error: Failed to show lines. (-2)

LKML-Reference: <4C36EBDB.4020308@hitachi.com>
Cc: Chase Douglas <chase.douglas@canonical.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Ingo Molnar <mingo@elte.hu>
Acked-by: Chase Douglas <chase.douglas@canonical.com>
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-finder.c