aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/probe-finder.h
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@redhat.com>2010-04-21 15:56:40 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2010-04-26 14:35:20 -0400
commitef4a356574426877d569f8b6579325537eb7909b (patch)
tree0416c4ab1740a5ff6a07c01eee3e371128881110 /tools/perf/util/probe-finder.h
parent5d1ee0413c8e2e0aa48510b1edfb3c4d2d43455b (diff)
perf probe: Add --max-probes option
Add --max-probes option to change the maximum limit of findable probe points per event, since inlined function can be expanded into thousands of probe points. Default value is 128. Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com> Suggested-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Mike Galbraith <efault@gmx.de> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> LKML-Reference: <20100421195640.24664.62984.stgit@localhost6.localdomain6> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/probe-finder.h')
-rw-r--r--tools/perf/util/probe-finder.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/perf/util/probe-finder.h b/tools/perf/util/probe-finder.h
index 310ce897229c..66f1980e3855 100644
--- a/tools/perf/util/probe-finder.h
+++ b/tools/perf/util/probe-finder.h
@@ -18,7 +18,8 @@ static inline int is_c_varname(const char *name)
18#ifdef DWARF_SUPPORT 18#ifdef DWARF_SUPPORT
19/* Find kprobe_trace_events specified by perf_probe_event from debuginfo */ 19/* Find kprobe_trace_events specified by perf_probe_event from debuginfo */
20extern int find_kprobe_trace_events(int fd, struct perf_probe_event *pev, 20extern int find_kprobe_trace_events(int fd, struct perf_probe_event *pev,
21 struct kprobe_trace_event **tevs); 21 struct kprobe_trace_event **tevs,
22 int max_tevs);
22 23
23/* Find a perf_probe_point from debuginfo */ 24/* Find a perf_probe_point from debuginfo */
24extern int find_perf_probe_point(int fd, unsigned long addr, 25extern int find_perf_probe_point(int fd, unsigned long addr,
@@ -32,7 +33,8 @@ extern int find_line_range(int fd, struct line_range *lr);
32struct probe_finder { 33struct probe_finder {
33 struct perf_probe_event *pev; /* Target probe event */ 34 struct perf_probe_event *pev; /* Target probe event */
34 struct kprobe_trace_event *tevs; /* Result trace events */ 35 struct kprobe_trace_event *tevs; /* Result trace events */
35 int ntevs; /* number of trace events */ 36 int ntevs; /* Number of trace events */
37 int max_tevs; /* Max number of trace events */
36 38
37 /* For function searching */ 39 /* For function searching */
38 int lno; /* Line number */ 40 int lno; /* Line number */