diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2011-11-24 13:42:59 -0500 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2011-11-24 13:42:59 -0500 |
commit | d1d6e4c300d858c47b834be145f30973bc2921bf (patch) | |
tree | 60f2ee8c7250f6c25246eca7b247132d0e19dcc2 /include/litmus | |
parent | a7a7f71529d9a6aae02ab3cb64451e036ce9d028 (diff) |
Add option to turn off preemption state tracing
Preemption state tracing is only useful when debugging preemption-
and IPI-related races. Since it creates a lot of clutter in the logs,
this patch turns it off unless explicitly requested.
Diffstat (limited to 'include/litmus')
-rw-r--r-- | include/litmus/preempt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/litmus/preempt.h b/include/litmus/preempt.h index 260c6fe17986..380b886d78ff 100644 --- a/include/litmus/preempt.h +++ b/include/litmus/preempt.h | |||
@@ -10,7 +10,7 @@ | |||
10 | 10 | ||
11 | extern DEFINE_PER_CPU_SHARED_ALIGNED(atomic_t, resched_state); | 11 | extern DEFINE_PER_CPU_SHARED_ALIGNED(atomic_t, resched_state); |
12 | 12 | ||
13 | #ifdef CONFIG_DEBUG_KERNEL | 13 | #ifdef CONFIG_PREEMPT_STATE_TRACE |
14 | const char* sched_state_name(int s); | 14 | const char* sched_state_name(int s); |
15 | #define TRACE_STATE(fmt, args...) TRACE("SCHED_STATE " fmt, args) | 15 | #define TRACE_STATE(fmt, args...) TRACE("SCHED_STATE " fmt, args) |
16 | #else | 16 | #else |