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>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user