1 #ifndef _PERF_UTIL_TRACE_EVENT_H
2 #define _PERF_UTIL_TRACE_EVENT_H
4 #include "parse-events.h"
5 #include "trace-parse-events.h"
13 int read_tracing_data(int fd, struct list_head *pattrs);
16 /* size is only valid if temp is 'true' */
22 struct tracing_data *tracing_data_get(struct list_head *pattrs,
24 void tracing_data_put(struct tracing_data *tdata);
27 struct scripting_ops {
29 int (*start_script) (const char *script, int argc, const char **argv);
30 int (*stop_script) (void);
31 void (*process_event) (union perf_event *event,
32 struct perf_sample *sample,
33 struct perf_evsel *evsel,
34 struct machine *machine,
35 struct thread *thread);
36 int (*generate_script) (const char *outfile);
39 int script_spec_register(const char *spec, struct scripting_ops *ops);
41 void setup_perl_scripting(void);
42 void setup_python_scripting(void);
44 struct scripting_context {
48 int common_pc(struct scripting_context *context);
49 int common_flags(struct scripting_context *context);
50 int common_lock_depth(struct scripting_context *context);
52 #endif /* _PERF_UTIL_TRACE_EVENT_H */