blob: 711287d4baead5024a3b48f41ad47d267e0124fd [file] [log] [blame]
Masami Hiramatsu50656ee2009-11-30 19:19:58 -05001#ifndef _PROBE_EVENT_H
2#define _PROBE_EVENT_H
3
Masami Hiramatsufac13fd2009-12-15 10:31:14 -05004#include <stdbool.h>
Masami Hiramatsu50656ee2009-11-30 19:19:58 -05005#include "probe-finder.h"
Masami Hiramatsu4de189f2009-11-30 19:20:17 -05006#include "strlist.h"
Masami Hiramatsu50656ee2009-11-30 19:19:58 -05007
Masami Hiramatsu631c9de2010-01-06 09:45:34 -05008extern void parse_line_range_desc(const char *arg, struct line_range *lr);
Masami Hiramatsufac13fd2009-12-15 10:31:14 -05009extern void parse_perf_probe_event(const char *str, struct probe_point *pp,
10 bool *need_dwarf);
Masami Hiramatsu7ef17aa2009-12-15 10:32:47 -050011extern int synthesize_perf_probe_point(struct probe_point *pp);
Masami Hiramatsu4de189f2009-11-30 19:20:17 -050012extern int synthesize_perf_probe_event(struct probe_point *pp);
Masami Hiramatsuaf663d72009-12-15 10:32:18 -050013extern void parse_trace_kprobe_event(const char *str, struct probe_point *pp);
Masami Hiramatsu50656ee2009-11-30 19:19:58 -050014extern int synthesize_trace_kprobe_event(struct probe_point *pp);
Masami Hiramatsud761b082009-12-15 10:32:25 -050015extern void add_trace_kprobe_events(struct probe_point *probes, int nr_probes,
16 bool force_add);
Masami Hiramatsufa282442009-12-08 17:03:23 -050017extern void del_trace_kprobe_events(struct strlist *dellist);
Masami Hiramatsu4de189f2009-11-30 19:20:17 -050018extern void show_perf_probe_events(void);
Masami Hiramatsu631c9de2010-01-06 09:45:34 -050019extern void show_line_range(struct line_range *lr);
Masami Hiramatsu50656ee2009-11-30 19:19:58 -050020
Masami Hiramatsub498ce12009-11-30 19:20:25 -050021/* Maximum index number of event-name postfix */
22#define MAX_EVENT_INDEX 1024
23
Masami Hiramatsu50656ee2009-11-30 19:19:58 -050024#endif /*_PROBE_EVENT_H */