diff options
author | Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> | 2010-10-21 06:13:35 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-10-21 14:06:42 -0400 |
commit | fb8c5a56c7ddbc2b0d2ee7a8da60fe1355f75141 (patch) | |
tree | 0d7575627d9fbcdeb642fbcb6ed84744fe9763f5 /tools/perf/util/probe-finder.h | |
parent | c82ec0a2bd7725a2d2ac3065d8cde13e1f717d3c (diff) |
perf probe: Show accessible global variables
Add --externs for allowing --vars to show accessible global (externally
defined) variables from a given probe point too.
This will give you a hint which globals can be accessible from the probe point.
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <20101021101335.3542.31003.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>
Diffstat (limited to 'tools/perf/util/probe-finder.h')
-rw-r--r-- | tools/perf/util/probe-finder.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/perf/util/probe-finder.h b/tools/perf/util/probe-finder.h index baffd25f39c9..516912a04011 100644 --- a/tools/perf/util/probe-finder.h +++ b/tools/perf/util/probe-finder.h | |||
@@ -30,7 +30,8 @@ extern int find_line_range(int fd, struct line_range *lr); | |||
30 | 30 | ||
31 | /* Find available variables */ | 31 | /* Find available variables */ |
32 | extern int find_available_vars_at(int fd, struct perf_probe_event *pev, | 32 | extern int find_available_vars_at(int fd, struct perf_probe_event *pev, |
33 | struct variable_list **vls, int max_points); | 33 | struct variable_list **vls, int max_points, |
34 | bool externs); | ||
34 | 35 | ||
35 | #include <dwarf.h> | 36 | #include <dwarf.h> |
36 | #include <libdw.h> | 37 | #include <libdw.h> |
@@ -70,6 +71,8 @@ struct available_var_finder { | |||
70 | struct variable_list *vls; /* Found variable lists */ | 71 | struct variable_list *vls; /* Found variable lists */ |
71 | int nvls; /* Number of variable lists */ | 72 | int nvls; /* Number of variable lists */ |
72 | int max_vls; /* Max no. of variable lists */ | 73 | int max_vls; /* Max no. of variable lists */ |
74 | bool externs; /* Find external vars too */ | ||
75 | bool child; /* Search child scopes */ | ||
73 | }; | 76 | }; |
74 | 77 | ||
75 | struct line_finder { | 78 | struct line_finder { |