]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - tools/perf/builtin-script.c
perf tools: Add trace-event object
authorJiri Olsa <jolsa@redhat.com>
Tue, 3 Dec 2013 13:09:23 +0000 (14:09 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 4 Dec 2013 18:20:52 +0000 (15:20 -0300)
commit29f5ffd3d3ff9abdfc98928f7c4cb4097cefe434
tree92d0e87f316562c7e641473798d46165e6681688
parentcef82c9f5a3deab94c1f1f02cfc25213844852ed
perf tools: Add trace-event object

Add trace-event object to keep together 'struct pevent' object with its
loaded plugins with following interface:

int trace_event__init(struct trace_event *t);

  - Initalizes 'struct pevent' object and loads plugins for it

void trace_event__cleanup(struct trace_event *t);

  - Cleanups both 'struct pevent' and plugins

Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/1386076182-14484-10-git-send-email-jolsa@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Makefile.perf
tools/perf/builtin-script.c
tools/perf/util/header.c
tools/perf/util/python-ext-sources
tools/perf/util/session.h
tools/perf/util/trace-event-parse.c
tools/perf/util/trace-event-read.c
tools/perf/util/trace-event.c [new file with mode: 0644]
tools/perf/util/trace-event.h