summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2011-09-01 21:26:59 -0400
committerSteven Rostedt <rostedt@goodmis.org>2011-09-01 21:26:59 -0400
commitae357be2e8d48cc1fd14816a205d5f5f74007b40 (patch)
treeb878796e5af2556de080dd6a9bd117b6057ab211
parent8c1e851bfedd000a13a6faaee4cb775cda785b37 (diff)
downloadcyclictest-ae357be2e8d48cc1fd14816a205d5f5f74007b40.tar.gz
only check file descriptor in tracemark() function
If the tracemark_fd is >= 0, then we know we can write to the trace_marker file. We only need to check that and not version of the kernel or anything else at every instance of calling tracemark(). Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r--src/cyclictest/cyclictest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cyclictest/cyclictest.c b/src/cyclictest/cyclictest.c
index 860eb55..ff36ce2 100644
--- a/src/cyclictest/cyclictest.c
+++ b/src/cyclictest/cyclictest.c
@@ -340,7 +340,7 @@ static void tracemark(char *comment)
{
/* bail out if we're not tracing */
/* or if the kernel doesn't support trace_mark */
- if (!tracelimit || kernelversion < KV_26_33 || tracemark_fd < 0)
+ if (tracemark_fd < 0)
return;
write(tracemark_fd, comment, strlen(comment));
}