aboutsummaryrefslogtreecommitdiffstats
path: root/litmus
diff options
context:
space:
mode:
Diffstat (limited to 'litmus')
-rw-r--r--litmus/Kconfig9
-rw-r--r--litmus/ft_event.c2
2 files changed, 10 insertions, 1 deletions
diff --git a/litmus/Kconfig b/litmus/Kconfig
index 1c0a96d54992..f3aa7478faf7 100644
--- a/litmus/Kconfig
+++ b/litmus/Kconfig
@@ -80,6 +80,15 @@ config FEATHER_TRACE
80 Feather-Trace basic tracing infrastructure. Includes device file 80 Feather-Trace basic tracing infrastructure. Includes device file
81 driver and instrumentation point support. 81 driver and instrumentation point support.
82 82
83 There are actually two implementations of Feather-Trace.
84 1) A slower, but portable, default implementation.
85 2) Architecture-specific implementations that rewrite kernel .text at runtime.
86
87 If enabled, Feather-Trace will be based on 2) if available (currently only for x86).
88 However, if DEBUG_RODATA=y, then Feather-Trace will choose option 1) in any case
89 to avoid problems with write-protected .text pages.
90
91 Bottom line: to avoid increased overheads, choose DEBUG_RODATA=n.
83 92
84config SCHED_TASK_TRACE 93config SCHED_TASK_TRACE
85 bool "Trace real-time tasks" 94 bool "Trace real-time tasks"
diff --git a/litmus/ft_event.c b/litmus/ft_event.c
index 58124fe0ad90..399a07becca5 100644
--- a/litmus/ft_event.c
+++ b/litmus/ft_event.c
@@ -2,7 +2,7 @@
2 2
3#include <litmus/feather_trace.h> 3#include <litmus/feather_trace.h>
4 4
5#ifndef CONFIG_ARCH_HAS_FEATHER_TRACE 5#if !defined(CONFIG_ARCH_HAS_FEATHER_TRACE) || defined(CONFIG_DEBUG_RODATA)
6/* provide dummy implementation */ 6/* provide dummy implementation */
7 7
8int ft_events[MAX_EVENTS]; 8int ft_events[MAX_EVENTS];