aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/util/data-convert-bt.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2015-03-03 11:58:45 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-03-11 10:17:09 -0300
commitb7b61cbebd789a3dbca522e3fdb727fe5c95593f (patch)
treeea6757b8b1d85b1562ce10217912c5827a4d2b23 /tools/perf/util/data-convert-bt.c
parentperf ordered_events: Untangle from perf_session (diff)
downloadwireguard-linux-b7b61cbebd789a3dbca522e3fdb727fe5c95593f.tar.xz
wireguard-linux-b7b61cbebd789a3dbca522e3fdb727fe5c95593f.zip
perf ordered_events: Shorten function signatures
By keeping pointers to machines, evlist and tool in ordered_events. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Borislav Petkov <bp@suse.de> Cc: David Ahern <dsahern@gmail.com> Cc: Don Zickus <dzickus@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-0c6huyaf59mqtm2ek9pmposl@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/data-convert-bt.c')
-rw-r--r--tools/perf/util/data-convert-bt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/data-convert-bt.c b/tools/perf/util/data-convert-bt.c
index e372e03ff480..1afd381b2346 100644
--- a/tools/perf/util/data-convert-bt.c
+++ b/tools/perf/util/data-convert-bt.c
@@ -579,7 +579,7 @@ int bt_convert__perf2ctf(const char *input, const char *path)
return -1;
/* perf.data session */
- session = perf_session__new(&file, 0, NULL);
+ session = perf_session__new(&file, 0, &c.tool);
if (!session)
goto free_writer;
@@ -591,7 +591,7 @@ int bt_convert__perf2ctf(const char *input, const char *path)
if (setup_events(cw, session))
goto free_session;
- err = perf_session__process_events(session, &c.tool);
+ err = perf_session__process_events(session);
if (!err)
err = bt_ctf_stream_flush(cw->stream);