diff options
author | Frank Rowand <frank.rowand@am.sony.com> | 2012-05-01 19:45:00 -0700 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2012-05-03 16:17:38 -0500 |
commit | b3593fbe8e18bb441a37d869282574784aa49e0b (patch) | |
tree | cc60837d0c1adb8061052862b54877b8750bb14c | |
parent | 0629f60b79cd8958b0abd01611374c814354b0b1 (diff) | |
download | cyclictest-b3593fbe8e18bb441a37d869282574784aa49e0b.tar.gz |
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>
-rw-r--r-- | src/cyclictest/cyclictest.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cyclictest/cyclictest.c b/src/cyclictest/cyclictest.c index 5a518e7..92df82b 100644 --- a/src/cyclictest/cyclictest.c +++ b/src/cyclictest/cyclictest.c @@ -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; |