perf probe: Don't compile CFI related code if elfutils is old
authorMasami Hiramatsu <mhiramat@redhat.com>
Mon, 10 May 2010 17:12:07 +0000 (13:12 -0400)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 18 May 2010 01:13:51 +0000 (22:13 -0300)
commit7752f1b096e13991f20b59fd11ba73da3809d93c
tree9a30ef1d2a8f665bc0d1d00d2011e5036b21ef73
parent94f3ca95787ada3d64339a4ecb2754236ab563f6
perf probe: Don't compile CFI related code if elfutils is old

Check elfutils version, and if it is old don't compile CFI analysis code. This
allows to compile perf with old elfutils.

Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Tested-by: Stephane Eranian <eranian@google.com>
Reported-by: Robert Richter <robert.richter@amd.com>
Cc: Ingo Molnar <mingo@elte.hu>
LKML-Reference: <20100510171207.26029.97604.stgit@localhost6.localdomain6>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/probe-finder.c
tools/perf/util/probe-finder.h