]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
perf probe: Fix to support libdwfl older than 0.148
authorMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Fri, 17 Dec 2010 13:12:18 +0000 (22:12 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 21 Dec 2010 21:24:57 +0000 (19:24 -0200)
commit3b4694de3596edac0159524b15a4a06945875421
tree479f76d879f9512ada46f495ef7e602d460c74d8
parentea187cfbb9a3de73e7bd7b7125ae345d92d4384b
perf probe: Fix to support libdwfl older than 0.148

Since the libdwfl library before 0.148 fails to analyze live kernel debuginfo,
'perf probe --list' compiled with those old libdwfl sometimes crashes.

To avoid that bug, perf probe does not use libdwfl's live kernel analysis
routine when it is compiled with older libdwfl.

Side effect: perf with older libdwfl doesn't support listing probe in modules
with source code line. Those could be shown by symbol+offset.

Cc: 2nddept-manager@sdl.hitachi.co.jp
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
LKML-Reference: <20101217131218.24123.62424.stgit@ltc236.sdl.hitachi.co.jp>
Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/probe-finder.c