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:
Frank Rowand 2012-05-01 19:45:00 -07:00 committed by Clark Williams
parent 0629f60b79
commit b3593fbe8e
1 changed files with 3 additions and 2 deletions

View File

@ -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;