]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit555d2a5a0242286540d0e18eaaedd950b53455fb
tree65a99a3bd6aeaafd723397ffb623a9a90e327474
parent884995651b0ffd7d1f0f15d14b83e74e98539441
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