rt-tests: cyclictest avoid unneeded warning
Avoid annoying warning message when tracing is not requested and the debug file system is not available. The same test already protects against calling event_enable_all(). Signed-off-by: Frank Rowand <frank.rowand@am.sony.com> Reviewed-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Clark Williams <williams@redhat.com>
This commit is contained in:
parent
0629f60b79
commit
b3593fbe8e
|
@ -1611,8 +1611,9 @@ int main(int argc, char **argv)
|
|||
if (trace_fd >= 0)
|
||||
close(trace_fd);
|
||||
|
||||
/* turn off all events */
|
||||
event_disable_all();
|
||||
if (enable_events)
|
||||
/* turn off all events */
|
||||
event_disable_all();
|
||||
|
||||
/* turn off the function tracer */
|
||||
fileprefix = procfileprefix;
|
||||
|
|
Loading…
Reference in New Issue