diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2009-04-24 12:10:28 -0400 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2009-04-24 12:10:28 -0400 |
commit | 3d0d33c07d203296162e1b703e6027ac8e0edb0e (patch) | |
tree | 59d0d177a40a90f7bdbba295834056624c1b92f6 | |
parent | 97eb269d2f4661751bb820d862f4bd1dc5b3a551 (diff) |
litmus config: make itpossible to compile without overhead tracing
Factor out ftdev support from overhead tracing.
-rw-r--r-- | include/litmus/trace.h | 4 | ||||
-rw-r--r-- | litmus/Kconfig | 20 | ||||
-rw-r--r-- | litmus/Makefile | 5 |
3 files changed, 19 insertions, 10 deletions
diff --git a/include/litmus/trace.h b/include/litmus/trace.h index b8157e88d8..620d1ac303 100644 --- a/include/litmus/trace.h +++ b/include/litmus/trace.h | |||
@@ -1,7 +1,7 @@ | |||
1 | #ifndef _SYS_TRACE_H_ | 1 | #ifndef _SYS_TRACE_H_ |
2 | #define _SYS_TRACE_H_ | 2 | #define _SYS_TRACE_H_ |
3 | 3 | ||
4 | #ifdef CONFIG_FEATHER_TRACE | 4 | #ifdef CONFIG_SCHED_OVERHEAD_TRACE |
5 | 5 | ||
6 | #include <litmus/feather_trace.h> | 6 | #include <litmus/feather_trace.h> |
7 | #include <litmus/feather_buffer.h> | 7 | #include <litmus/feather_buffer.h> |
@@ -34,7 +34,7 @@ feather_callback void save_timestamp_task(unsigned long event, unsigned long t_p | |||
34 | 34 | ||
35 | #define TTIMESTAMP(id, task) ft_event1(id, save_timestamp_task, (unsigned long) task) | 35 | #define TTIMESTAMP(id, task) ft_event1(id, save_timestamp_task, (unsigned long) task) |
36 | 36 | ||
37 | #else /* !CONFIG_FEATHER_TRACE */ | 37 | #else /* !CONFIG_SCHED_OVERHEAD_TRACE */ |
38 | 38 | ||
39 | #define TIMESTAMP(id) /* no tracing */ | 39 | #define TIMESTAMP(id) /* no tracing */ |
40 | 40 | ||
diff --git a/litmus/Kconfig b/litmus/Kconfig index 9a2ab90dec..997f19f336 100644 --- a/litmus/Kconfig +++ b/litmus/Kconfig | |||
@@ -37,8 +37,17 @@ endmenu | |||
37 | 37 | ||
38 | menu "Tracing" | 38 | menu "Tracing" |
39 | 39 | ||
40 | config FEATHER_TRACE | ||
41 | bool "Feather-Trace Infrastructure" | ||
42 | default y | ||
43 | help | ||
44 | Feather-Trace basic tracing infrastructure. Includes device file | ||
45 | driver and instrumentation point support. | ||
46 | |||
47 | |||
40 | config SCHED_TASK_TRACE | 48 | config SCHED_TASK_TRACE |
41 | bool "Trace real-time tasks" | 49 | bool "Trace real-time tasks" |
50 | depends on FEATHER_TRACE | ||
42 | default y | 51 | default y |
43 | help | 52 | help |
44 | Include support for the sched_trace_XXX() tracing functions. This | 53 | Include support for the sched_trace_XXX() tracing functions. This |
@@ -63,13 +72,12 @@ config SCHED_DEBUG_TRACE | |||
63 | Say Yes for debugging. | 72 | Say Yes for debugging. |
64 | Say No for overhead tracing. | 73 | Say No for overhead tracing. |
65 | 74 | ||
66 | config FEATHER_TRACE | 75 | config SCHED_OVERHEAD_TRACE |
67 | bool "Feather-Trace Instrumentation Support" | 76 | bool "Record timestamps for overhead measurements" |
68 | default y | 77 | depends on FEATHER_TRACE |
78 | default n | ||
69 | help | 79 | help |
70 | Include Feather-Trace trace points. Currently not supported on | 80 | Export event stream for overhead tracing. |
71 | sparc64. | ||
72 | |||
73 | Say Yes for overhead tracing. | 81 | Say Yes for overhead tracing. |
74 | 82 | ||
75 | 83 | ||
diff --git a/litmus/Makefile b/litmus/Makefile index 45f95d6a0c..b8188cc35a 100644 --- a/litmus/Makefile +++ b/litmus/Makefile | |||
@@ -14,6 +14,7 @@ obj-y = sched_plugin.o litmus.o \ | |||
14 | sched_gq_edf.o \ | 14 | sched_gq_edf.o \ |
15 | sched_gedf.o | 15 | sched_gedf.o |
16 | 16 | ||
17 | obj-$(CONFIG_FEATHER_TRACE) += trace.o ft_event.o ftdev.o | 17 | obj-$(CONFIG_FEATHER_TRACE) += ft_event.o ftdev.o |
18 | obj-$(CONFIG_SCHED_TASK_TRACE) += sched_task_trace.o | 18 | obj-$(CONFIG_SCHED_TASK_TRACE) += sched_task_trace.o |
19 | obj-$(CONFIG_SCHED_DEBUG_TRACE) += sched_trace.o \ No newline at end of file | 19 | obj-$(CONFIG_SCHED_DEBUG_TRACE) += sched_trace.o |
20 | obj-$(CONFIG_SCHED_OVERHEAD_TRACE) += trace.o | ||