probe-event.h (946e0f6ffcaa614012d646f4cf84efdd62628c8b) probe-event.h (36a009fe07bdecd201335f982babb8af34b603e2)
1#ifndef _PROBE_EVENT_H
2#define _PROBE_EVENT_H
3
4#include <stdbool.h>
5#include "intlist.h"
6#include "strlist.h"
7#include "strfilter.h"
8
9/* Probe related configurations */
10struct probe_conf {
11 bool show_ext_vars;
12 bool show_location_range;
13 bool force_add;
14 bool no_inlines;
1#ifndef _PROBE_EVENT_H
2#define _PROBE_EVENT_H
3
4#include <stdbool.h>
5#include "intlist.h"
6#include "strlist.h"
7#include "strfilter.h"
8
9/* Probe related configurations */
10struct probe_conf {
11 bool show_ext_vars;
12 bool show_location_range;
13 bool force_add;
14 bool no_inlines;
15 bool cache;
15 int max_probes;
16};
17extern struct probe_conf probe_conf;
18extern bool probe_event_dry_run;
19
20/* kprobe-tracer and uprobe-tracer tracing point */
21struct probe_trace_point {
22 char *realname; /* function real name (if needed) */

--- 56 unchanged lines hidden (view full) ---

79};
80
81/* Perf probe probing event (point + arg) */
82struct perf_probe_event {
83 char *event; /* Event name */
84 char *group; /* Group name */
85 struct perf_probe_point point; /* Probe point */
86 int nargs; /* Number of arguments */
16 int max_probes;
17};
18extern struct probe_conf probe_conf;
19extern bool probe_event_dry_run;
20
21/* kprobe-tracer and uprobe-tracer tracing point */
22struct probe_trace_point {
23 char *realname; /* function real name (if needed) */

--- 56 unchanged lines hidden (view full) ---

80};
81
82/* Perf probe probing event (point + arg) */
83struct perf_probe_event {
84 char *event; /* Event name */
85 char *group; /* Group name */
86 struct perf_probe_point point; /* Probe point */
87 int nargs; /* Number of arguments */
88 bool sdt; /* SDT/cached event flag */
87 bool uprobes; /* Uprobe event flag */
88 char *target; /* Target binary */
89 struct perf_probe_arg *args; /* Arguments */
90 struct probe_trace_event *tevs;
91 int ntevs;
92};
93
94/* Line range */

--- 21 unchanged lines hidden (view full) ---

116/* Command string to events */
117int parse_perf_probe_command(const char *cmd, struct perf_probe_event *pev);
118int parse_probe_trace_command(const char *cmd, struct probe_trace_event *tev);
119
120/* Events to command string */
121char *synthesize_perf_probe_command(struct perf_probe_event *pev);
122char *synthesize_probe_trace_command(struct probe_trace_event *tev);
123char *synthesize_perf_probe_arg(struct perf_probe_arg *pa);
89 bool uprobes; /* Uprobe event flag */
90 char *target; /* Target binary */
91 struct perf_probe_arg *args; /* Arguments */
92 struct probe_trace_event *tevs;
93 int ntevs;
94};
95
96/* Line range */

--- 21 unchanged lines hidden (view full) ---

118/* Command string to events */
119int parse_perf_probe_command(const char *cmd, struct perf_probe_event *pev);
120int parse_probe_trace_command(const char *cmd, struct probe_trace_event *tev);
121
122/* Events to command string */
123char *synthesize_perf_probe_command(struct perf_probe_event *pev);
124char *synthesize_probe_trace_command(struct probe_trace_event *tev);
125char *synthesize_perf_probe_arg(struct perf_probe_arg *pa);
126char *synthesize_perf_probe_point(struct perf_probe_point *pp);
124
127
128int perf_probe_event__copy(struct perf_probe_event *dst,
129 struct perf_probe_event *src);
130
125/* Check the perf_probe_event needs debuginfo */
126bool perf_probe_event_need_dwarf(struct perf_probe_event *pev);
127
128/* Release event contents */
129void clear_perf_probe_event(struct perf_probe_event *pev);
130void clear_probe_trace_event(struct probe_trace_event *tev);
131
132/* Command string to line-range */

--- 38 unchanged lines hidden ---
131/* Check the perf_probe_event needs debuginfo */
132bool perf_probe_event_need_dwarf(struct perf_probe_event *pev);
133
134/* Release event contents */
135void clear_perf_probe_event(struct perf_probe_event *pev);
136void clear_probe_trace_event(struct probe_trace_event *tev);
137
138/* Command string to line-range */

--- 38 unchanged lines hidden ---