diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /tools/perf/util/probe-event.h | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'tools/perf/util/probe-event.h')
-rw-r--r-- | tools/perf/util/probe-event.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/tools/perf/util/probe-event.h b/tools/perf/util/probe-event.h index 5af39243a25b..3434fc9d79d5 100644 --- a/tools/perf/util/probe-event.h +++ b/tools/perf/util/probe-event.h | |||
@@ -3,6 +3,7 @@ | |||
3 | 3 | ||
4 | #include <stdbool.h> | 4 | #include <stdbool.h> |
5 | #include "strlist.h" | 5 | #include "strlist.h" |
6 | #include "strfilter.h" | ||
6 | 7 | ||
7 | extern bool probe_event_dry_run; | 8 | extern bool probe_event_dry_run; |
8 | 9 | ||
@@ -90,6 +91,12 @@ struct line_range { | |||
90 | struct list_head line_list; /* Visible lines */ | 91 | struct list_head line_list; /* Visible lines */ |
91 | }; | 92 | }; |
92 | 93 | ||
94 | /* List of variables */ | ||
95 | struct variable_list { | ||
96 | struct probe_trace_point point; /* Actual probepoint */ | ||
97 | struct strlist *vars; /* Available variables */ | ||
98 | }; | ||
99 | |||
93 | /* Command string to events */ | 100 | /* Command string to events */ |
94 | extern int parse_perf_probe_command(const char *cmd, | 101 | extern int parse_perf_probe_command(const char *cmd, |
95 | struct perf_probe_event *pev); | 102 | struct perf_probe_event *pev); |
@@ -109,12 +116,19 @@ extern void clear_perf_probe_event(struct perf_probe_event *pev); | |||
109 | /* Command string to line-range */ | 116 | /* Command string to line-range */ |
110 | extern int parse_line_range_desc(const char *cmd, struct line_range *lr); | 117 | extern int parse_line_range_desc(const char *cmd, struct line_range *lr); |
111 | 118 | ||
119 | /* Internal use: Return kernel/module path */ | ||
120 | extern const char *kernel_get_module_path(const char *module); | ||
112 | 121 | ||
113 | extern int add_perf_probe_events(struct perf_probe_event *pevs, int npevs, | 122 | extern int add_perf_probe_events(struct perf_probe_event *pevs, int npevs, |
114 | bool force_add, int max_probe_points); | 123 | int max_probe_points, const char *module, |
124 | bool force_add); | ||
115 | extern int del_perf_probe_events(struct strlist *dellist); | 125 | extern int del_perf_probe_events(struct strlist *dellist); |
116 | extern int show_perf_probe_events(void); | 126 | extern int show_perf_probe_events(void); |
117 | extern int show_line_range(struct line_range *lr); | 127 | extern int show_line_range(struct line_range *lr, const char *module); |
128 | extern int show_available_vars(struct perf_probe_event *pevs, int npevs, | ||
129 | int max_probe_points, const char *module, | ||
130 | struct strfilter *filter, bool externs); | ||
131 | extern int show_available_funcs(const char *module, struct strfilter *filter); | ||
118 | 132 | ||
119 | 133 | ||
120 | /* Maximum index number of event-name postfix */ | 134 | /* Maximum index number of event-name postfix */ |