Commit 4885c90c authored by Adrian Hunter's avatar Adrian Hunter Committed by Arnaldo Carvalho de Melo

perf report: Set perf time interval in itrace_synth_ops

Instruction trace decoders can optimize output based on what time
intervals will be filtered, so pass that information in
itrace_synth_ops.
Signed-off-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
Cc: Jin Yao <yao.jin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/20190604130017.31207-4-adrian.hunter@intel.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 400ae981
...@@ -1428,6 +1428,10 @@ int cmd_report(int argc, const char **argv) ...@@ -1428,6 +1428,10 @@ int cmd_report(int argc, const char **argv)
&report.range_num); &report.range_num);
if (ret < 0) if (ret < 0)
goto error; goto error;
itrace_synth_opts__set_time_range(&itrace_synth_opts,
report.ptime_range,
report.range_num);
} }
if (session->tevent.pevent && if (session->tevent.pevent &&
...@@ -1449,8 +1453,10 @@ int cmd_report(int argc, const char **argv) ...@@ -1449,8 +1453,10 @@ int cmd_report(int argc, const char **argv)
ret = 0; ret = 0;
error: error:
if (report.ptime_range) if (report.ptime_range) {
itrace_synth_opts__clear_time_range(&itrace_synth_opts);
zfree(&report.ptime_range); zfree(&report.ptime_range);
}
zstd_fini(&(session->zstd_data)); zstd_fini(&(session->zstd_data));
perf_session__delete(session); perf_session__delete(session);
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment