diff options
author | Masami Hiramatsu <mhiramat@redhat.com> | 2009-10-07 18:28:30 -0400 |
---|---|---|
committer | Frederic Weisbecker <fweisbec@gmail.com> | 2009-10-12 17:31:53 -0400 |
commit | 23e8ec0d1c410f2f1d81050ee155db229abb1707 (patch) | |
tree | 309462a3591f3239741373a413482abb03e49145 /tools/perf/util/probe-finder.h | |
parent | 4ea42b181434bfc6a0a18d32214130a242d489bf (diff) |
perf probe: Add perf probe command support without libdwarf
Enables 'perf probe' even if libdwarf is not installed. If libdwarf is
not found, 'perf probe' just disables dwarf support. Users can use
'perf probe' to set up new events by using kprobe_events format.
Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Cc: Jim Keniston <jkenisto@us.ibm.com>
Cc: Frank Ch. Eigler <fche@redhat.com>
LKML-Reference: <20091007222830.1684.25665.stgit@dhcp-100-2-132.bos.redhat.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Diffstat (limited to 'tools/perf/util/probe-finder.h')
-rw-r--r-- | tools/perf/util/probe-finder.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/probe-finder.h b/tools/perf/util/probe-finder.h index af920de64866..306810c32f6b 100644 --- a/tools/perf/util/probe-finder.h +++ b/tools/perf/util/probe-finder.h | |||
@@ -44,6 +44,7 @@ struct probe_point { | |||
44 | char *probes[MAX_PROBES]; /* Output buffers (will be allocated)*/ | 44 | char *probes[MAX_PROBES]; /* Output buffers (will be allocated)*/ |
45 | }; | 45 | }; |
46 | 46 | ||
47 | #ifndef NO_LIBDWARF | ||
47 | extern int find_probepoint(int fd, struct probe_point *pp); | 48 | extern int find_probepoint(int fd, struct probe_point *pp); |
48 | 49 | ||
49 | #include <libdwarf/dwarf.h> | 50 | #include <libdwarf/dwarf.h> |
@@ -64,5 +65,6 @@ struct probe_finder { | |||
64 | char *buf; /* Current output buffer */ | 65 | char *buf; /* Current output buffer */ |
65 | int len; /* Length of output buffer */ | 66 | int len; /* Length of output buffer */ |
66 | }; | 67 | }; |
68 | #endif /* NO_LIBDWARF */ | ||
67 | 69 | ||
68 | #endif /*_PROBE_FINDER_H */ | 70 | #endif /*_PROBE_FINDER_H */ |