]>
git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - tools/perf/util/trace-event.c
a155a77f30230ede0e7c928da6d2bc7b45c252dc
2 #include <traceevent/event-parse.h>
3 #include "trace-event.h"
5 int trace_event__init(struct trace_event
*t
)
7 struct pevent
*pevent
= pevent_alloc();
10 t
->plugin_list
= traceevent_load_plugins(pevent
);
14 return pevent
? 0 : -1;
17 void trace_event__cleanup(struct trace_event
*t
)
19 pevent_free(t
->pevent
);
20 traceevent_unload_plugins(t
->plugin_list
);