probe-event.h (d4bbf7e7759afc172e2bfbc5c416324590049cdd) | probe-event.h (225466f1c2d816c33b4341008f45dfdc83a9f0cb) |
---|---|
1#ifndef _PROBE_EVENT_H 2#define _PROBE_EVENT_H 3 4#include <stdbool.h> 5#include "strlist.h" 6#include "strfilter.h" 7 8extern bool probe_event_dry_run; 9 | 1#ifndef _PROBE_EVENT_H 2#define _PROBE_EVENT_H 3 4#include <stdbool.h> 5#include "strlist.h" 6#include "strfilter.h" 7 8extern bool probe_event_dry_run; 9 |
10/* kprobe-tracer tracing point */ | 10/* kprobe-tracer and uprobe-tracer tracing point */ |
11struct probe_trace_point { 12 char *symbol; /* Base symbol */ 13 char *module; /* Module name */ 14 unsigned long offset; /* Offset from symbol */ 15 bool retprobe; /* Return probe flag */ 16}; 17 18/* probe-tracer tracing argument referencing offset */ 19struct probe_trace_arg_ref { 20 struct probe_trace_arg_ref *next; /* Next reference */ 21 long offset; /* Offset value */ 22}; 23 | 11struct probe_trace_point { 12 char *symbol; /* Base symbol */ 13 char *module; /* Module name */ 14 unsigned long offset; /* Offset from symbol */ 15 bool retprobe; /* Return probe flag */ 16}; 17 18/* probe-tracer tracing argument referencing offset */ 19struct probe_trace_arg_ref { 20 struct probe_trace_arg_ref *next; /* Next reference */ 21 long offset; /* Offset value */ 22}; 23 |
24/* kprobe-tracer tracing argument */ | 24/* kprobe-tracer and uprobe-tracer tracing argument */ |
25struct probe_trace_arg { 26 char *name; /* Argument name */ 27 char *value; /* Base value */ 28 char *type; /* Type name */ 29 struct probe_trace_arg_ref *ref; /* Referencing offset */ 30}; 31 | 25struct probe_trace_arg { 26 char *name; /* Argument name */ 27 char *value; /* Base value */ 28 char *type; /* Type name */ 29 struct probe_trace_arg_ref *ref; /* Referencing offset */ 30}; 31 |
32/* kprobe-tracer tracing event (point + arg) */ | 32/* kprobe-tracer and uprobe-tracer tracing event (point + arg) */ |
33struct probe_trace_event { 34 char *event; /* Event name */ 35 char *group; /* Group name */ 36 struct probe_trace_point point; /* Trace point */ 37 int nargs; /* Number of args */ | 33struct probe_trace_event { 34 char *event; /* Event name */ 35 char *group; /* Group name */ 36 struct probe_trace_point point; /* Trace point */ 37 int nargs; /* Number of args */ |
38 bool uprobes; /* uprobes only */ |
|
38 struct probe_trace_arg *args; /* Arguments */ 39}; 40 41/* Perf probe probing point */ 42struct perf_probe_point { 43 char *file; /* File path */ 44 char *function; /* Function name */ 45 int line; /* Line number */ --- 19 unchanged lines hidden (view full) --- 65}; 66 67/* Perf probe probing event (point + arg) */ 68struct perf_probe_event { 69 char *event; /* Event name */ 70 char *group; /* Group name */ 71 struct perf_probe_point point; /* Probe point */ 72 int nargs; /* Number of arguments */ | 39 struct probe_trace_arg *args; /* Arguments */ 40}; 41 42/* Perf probe probing point */ 43struct perf_probe_point { 44 char *file; /* File path */ 45 char *function; /* Function name */ 46 int line; /* Line number */ --- 19 unchanged lines hidden (view full) --- 66}; 67 68/* Perf probe probing event (point + arg) */ 69struct perf_probe_event { 70 char *event; /* Event name */ 71 char *group; /* Group name */ 72 struct perf_probe_point point; /* Probe point */ 73 int nargs; /* Number of arguments */ |
74 bool uprobes; |
|
73 struct perf_probe_arg *args; /* Arguments */ 74}; 75 76 77/* Line number container */ 78struct line_node { 79 struct list_head list; 80 int line; --- 43 unchanged lines hidden (view full) --- 124 int max_probe_points, const char *module, 125 bool force_add); 126extern int del_perf_probe_events(struct strlist *dellist); 127extern int show_perf_probe_events(void); 128extern int show_line_range(struct line_range *lr, const char *module); 129extern int show_available_vars(struct perf_probe_event *pevs, int npevs, 130 int max_probe_points, const char *module, 131 struct strfilter *filter, bool externs); | 75 struct perf_probe_arg *args; /* Arguments */ 76}; 77 78 79/* Line number container */ 80struct line_node { 81 struct list_head list; 82 int line; --- 43 unchanged lines hidden (view full) --- 126 int max_probe_points, const char *module, 127 bool force_add); 128extern int del_perf_probe_events(struct strlist *dellist); 129extern int show_perf_probe_events(void); 130extern int show_line_range(struct line_range *lr, const char *module); 131extern int show_available_vars(struct perf_probe_event *pevs, int npevs, 132 int max_probe_points, const char *module, 133 struct strfilter *filter, bool externs); |
132extern int show_available_funcs(const char *module, struct strfilter *filter); | 134extern int show_available_funcs(const char *module, struct strfilter *filter, 135 bool user); |
133 | 136 |
134 | |
135/* Maximum index number of event-name postfix */ 136#define MAX_EVENT_INDEX 1024 137 138#endif /*_PROBE_EVENT_H */ | 137/* Maximum index number of event-name postfix */ 138#define MAX_EVENT_INDEX 1024 139 140#endif /*_PROBE_EVENT_H */ |