aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBjoern <bbb@flare.cs.unc.edu>2008-05-01 16:29:24 -0400
committerBjoern <bbb@flare.cs.unc.edu>2008-05-01 16:29:24 -0400
commitc48705183acab144d08277f898dcf751ec1f6477 (patch)
tree34cbb982b6f501b4c2f44c5b75be35e2a5ef8fe9 /include
parent9fa169ba5fd0c8836dab08457af4f5c7a106fb9a (diff)
Feather-Trace: Make inclusion optional
We need to disable Feather-Trace on the Niagara for now, and there is no reason to always include it, anyway.
Diffstat (limited to 'include')
-rw-r--r--include/litmus/trace.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/litmus/trace.h b/include/litmus/trace.h
index 04510237ec..dcb0c1b374 100644
--- a/include/litmus/trace.h
+++ b/include/litmus/trace.h
@@ -1,7 +1,8 @@
1
2#ifndef _SYS_TRACE_H_ 1#ifndef _SYS_TRACE_H_
3#define _SYS_TRACE_H_ 2#define _SYS_TRACE_H_
4 3
4#ifdef CONFIG_FEATHER_TRACE
5
5#include <litmus/feather_trace.h> 6#include <litmus/feather_trace.h>
6#include <litmus/feather_buffer.h> 7#include <litmus/feather_buffer.h>
7 8
@@ -26,6 +27,14 @@ asmlinkage void save_timestamp(unsigned long event);
26 27
27#define TIMESTAMP(id) ft_event0(id, save_timestamp) 28#define TIMESTAMP(id) ft_event0(id, save_timestamp)
28 29
30
31#else /* !CONFIG_FEATHER_TRACE */
32
33#define TIMESTAMP(id) /* no tracing */
34
35#endif
36
37
29/* Convention for timestamps 38/* Convention for timestamps
30 * ========================= 39 * =========================
31 * 40 *