@@ -981,12 +981,11 @@ int osnoise_hist_main(int argc, char *argv[])
return_value = 0;
- if (osnoise_trace_is_off(tool, record)) {
+ if (osnoise_trace_is_off(tool, record))
printf("rtla osnoise hit stop tracing\n");
- if (params->trace_output) {
- printf(" Saving trace to %s\n", params->trace_output);
- save_trace_to_file(record->trace.inst, params->trace_output);
- }
+ if (params->trace_output) {
+ printf(" Saving trace to %s\n", params->trace_output);
+ save_trace_to_file(record->trace.inst, params->trace_output);
}
out_hist:
@@ -811,12 +811,11 @@ int osnoise_top_main(int argc, char **argv)
return_value = 0;
- if (osnoise_trace_is_off(tool, record)) {
+ if (osnoise_trace_is_off(tool, record))
printf("osnoise hit stop tracing\n");
- if (params->trace_output) {
- printf(" Saving trace to %s\n", params->trace_output);
- save_trace_to_file(record->trace.inst, params->trace_output);
- }
+ if (params->trace_output) {
+ printf(" Saving trace to %s\n", params->trace_output);
+ save_trace_to_file(record->trace.inst, params->trace_output);
}
out_top:
Rtla saves trace output only when option `--auto` or `--stop` is specified. Single option `--trace` enables tracing, but doesn't save it. Save trace output in any case. Signed-off-by: Costa Shulyupin <costa.shul@redhat.com> --- tools/tracing/rtla/src/osnoise_hist.c | 9 ++++----- tools/tracing/rtla/src/osnoise_top.c | 9 ++++----- 2 files changed, 8 insertions(+), 10 deletions(-)