diff options
Diffstat (limited to 'tools/perf/util/probe-event.h')
-rw-r--r-- | tools/perf/util/probe-event.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tools/perf/util/probe-event.h b/tools/perf/util/probe-event.h index a7dee835f49c..f9f3de8b4220 100644 --- a/tools/perf/util/probe-event.h +++ b/tools/perf/util/probe-event.h | |||
@@ -7,7 +7,7 @@ | |||
7 | 7 | ||
8 | extern bool probe_event_dry_run; | 8 | extern bool probe_event_dry_run; |
9 | 9 | ||
10 | /* kprobe-tracer tracing point */ | 10 | /* kprobe-tracer and uprobe-tracer tracing point */ |
11 | struct probe_trace_point { | 11 | struct probe_trace_point { |
12 | char *symbol; /* Base symbol */ | 12 | char *symbol; /* Base symbol */ |
13 | char *module; /* Module name */ | 13 | char *module; /* Module name */ |
@@ -21,7 +21,7 @@ struct probe_trace_arg_ref { | |||
21 | long offset; /* Offset value */ | 21 | long offset; /* Offset value */ |
22 | }; | 22 | }; |
23 | 23 | ||
24 | /* kprobe-tracer tracing argument */ | 24 | /* kprobe-tracer and uprobe-tracer tracing argument */ |
25 | struct probe_trace_arg { | 25 | struct probe_trace_arg { |
26 | char *name; /* Argument name */ | 26 | char *name; /* Argument name */ |
27 | char *value; /* Base value */ | 27 | char *value; /* Base value */ |
@@ -29,12 +29,13 @@ struct probe_trace_arg { | |||
29 | struct probe_trace_arg_ref *ref; /* Referencing offset */ | 29 | struct probe_trace_arg_ref *ref; /* Referencing offset */ |
30 | }; | 30 | }; |
31 | 31 | ||
32 | /* kprobe-tracer tracing event (point + arg) */ | 32 | /* kprobe-tracer and uprobe-tracer tracing event (point + arg) */ |
33 | struct probe_trace_event { | 33 | struct probe_trace_event { |
34 | char *event; /* Event name */ | 34 | char *event; /* Event name */ |
35 | char *group; /* Group name */ | 35 | char *group; /* Group name */ |
36 | struct probe_trace_point point; /* Trace point */ | 36 | struct probe_trace_point point; /* Trace point */ |
37 | int nargs; /* Number of args */ | 37 | int nargs; /* Number of args */ |
38 | bool uprobes; /* uprobes only */ | ||
38 | struct probe_trace_arg *args; /* Arguments */ | 39 | struct probe_trace_arg *args; /* Arguments */ |
39 | }; | 40 | }; |
40 | 41 | ||
@@ -70,6 +71,7 @@ struct perf_probe_event { | |||
70 | char *group; /* Group name */ | 71 | char *group; /* Group name */ |
71 | struct perf_probe_point point; /* Probe point */ | 72 | struct perf_probe_point point; /* Probe point */ |
72 | int nargs; /* Number of arguments */ | 73 | int nargs; /* Number of arguments */ |
74 | bool uprobes; | ||
73 | struct perf_probe_arg *args; /* Arguments */ | 75 | struct perf_probe_arg *args; /* Arguments */ |
74 | }; | 76 | }; |
75 | 77 | ||
@@ -129,8 +131,8 @@ extern int show_line_range(struct line_range *lr, const char *module); | |||
129 | extern int show_available_vars(struct perf_probe_event *pevs, int npevs, | 131 | extern int show_available_vars(struct perf_probe_event *pevs, int npevs, |
130 | int max_probe_points, const char *module, | 132 | int max_probe_points, const char *module, |
131 | struct strfilter *filter, bool externs); | 133 | struct strfilter *filter, bool externs); |
132 | extern int show_available_funcs(const char *module, struct strfilter *filter); | 134 | extern int show_available_funcs(const char *module, struct strfilter *filter, |
133 | 135 | bool user); | |
134 | 136 | ||
135 | /* Maximum index number of event-name postfix */ | 137 | /* Maximum index number of event-name postfix */ |
136 | #define MAX_EVENT_INDEX 1024 | 138 | #define MAX_EVENT_INDEX 1024 |