diff options
author | Bjoern <bbb@flare.cs.unc.edu> | 2008-05-01 16:29:24 -0400 |
---|---|---|
committer | Bjoern <bbb@flare.cs.unc.edu> | 2008-05-01 16:29:24 -0400 |
commit | c48705183acab144d08277f898dcf751ec1f6477 (patch) | |
tree | 34cbb982b6f501b4c2f44c5b75be35e2a5ef8fe9 | |
parent | 9fa169ba5fd0c8836dab08457af4f5c7a106fb9a (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.
-rw-r--r-- | include/litmus/trace.h | 11 | ||||
-rw-r--r-- | litmus/Kconfig | 15 | ||||
-rw-r--r-- | litmus/Makefile | 4 |
3 files changed, 28 insertions, 2 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 | * |
diff --git a/litmus/Kconfig b/litmus/Kconfig index e6c5469d70..7b329d68bd 100644 --- a/litmus/Kconfig +++ b/litmus/Kconfig | |||
@@ -10,6 +10,9 @@ config SCHED_TASK_TRACE | |||
10 | small overhead in the scheduling code. Disable if the overhead is not | 10 | small overhead in the scheduling code. Disable if the overhead is not |
11 | acceptable (e.g., benchmarking). | 11 | acceptable (e.g., benchmarking). |
12 | 12 | ||
13 | Say Yes for debugging. | ||
14 | Say No for overhead tracing. | ||
15 | |||
13 | config SCHED_DEBUG_TRACE | 16 | config SCHED_DEBUG_TRACE |
14 | bool "TRACE() debugging" | 17 | bool "TRACE() debugging" |
15 | default y | 18 | default y |
@@ -20,5 +23,17 @@ config SCHED_DEBUG_TRACE | |||
20 | incurred by the scheduler. Disable if the overhead is not acceptable | 23 | incurred by the scheduler. Disable if the overhead is not acceptable |
21 | (e.g. benchmarking). | 24 | (e.g. benchmarking). |
22 | 25 | ||
26 | Say Yes for debugging. | ||
27 | Say No for overhead tracing. | ||
28 | |||
29 | config FEATHER_TRACE | ||
30 | bool "Feather-Trace Instrumentation Support" | ||
31 | default y | ||
32 | help | ||
33 | Include Feather-Trace trace points. Currently not supported on | ||
34 | sparc64. | ||
35 | |||
36 | Say Yes for overhead tracing. | ||
37 | |||
23 | 38 | ||
24 | endmenu | 39 | endmenu |
diff --git a/litmus/Makefile b/litmus/Makefile index db8cc21355..ec088a071b 100644 --- a/litmus/Makefile +++ b/litmus/Makefile | |||
@@ -5,5 +5,7 @@ | |||
5 | obj-y = sched_plugin.o litmus.o sched_trace.o \ | 5 | obj-y = sched_plugin.o litmus.o sched_trace.o \ |
6 | edf_common.o jobs.o\ | 6 | edf_common.o jobs.o\ |
7 | sched_gsn_edf.o sched_psn_edf.o \ | 7 | sched_gsn_edf.o sched_psn_edf.o \ |
8 | trace.o ft_event.o rt_domain.o fdso.o sync.o \ | 8 | rt_domain.o fdso.o sync.o \ |
9 | fmlp.o srp.o | 9 | fmlp.o srp.o |
10 | |||
11 | obj-$(CONFIG_FEATHER_TRACE) += trace.o ft_event.o | ||