diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2011-08-26 09:44:22 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@sprg.uniroma2.it> | 2011-11-25 11:23:24 -0500 |
commit | cb37cacc809a847acd20e5682183e76e6ff61b1b (patch) | |
tree | 631cfa55226411fe6aca9bafd190e9ed4e161164 | |
parent | 11e46234ce711665f75246d026631bcd6c946e44 (diff) |
Refactor sched_trace_log_message() -> debug_trace_log_message()wip-2011.2-bbb-trace
-rw-r--r-- | include/litmus/debug_trace.h | 6 | ||||
-rw-r--r-- | litmus/Kconfig | 2 | ||||
-rw-r--r-- | litmus/debug_trace.c | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/include/litmus/debug_trace.h b/include/litmus/debug_trace.h index bcf5a47f47cc..570460f35514 100644 --- a/include/litmus/debug_trace.h +++ b/include/litmus/debug_trace.h | |||
@@ -2,11 +2,11 @@ | |||
2 | #define LITMUS_DEBUG_TRACE_H | 2 | #define LITMUS_DEBUG_TRACE_H |
3 | 3 | ||
4 | #ifdef CONFIG_LITMUS_DEBUG_TRACE | 4 | #ifdef CONFIG_LITMUS_DEBUG_TRACE |
5 | void sched_trace_log_message(const char* fmt, ...); | 5 | void debug_trace_log_message(const char* fmt, ...); |
6 | void dump_trace_buffer(int max); | 6 | void dump_trace_buffer(int max); |
7 | #else | 7 | #else |
8 | 8 | ||
9 | #define sched_trace_log_message(fmt, ...) | 9 | #define debug_trace_log_message(fmt, ...) |
10 | 10 | ||
11 | #endif | 11 | #endif |
12 | 12 | ||
@@ -24,7 +24,7 @@ extern atomic_t __log_seq_no; | |||
24 | #endif | 24 | #endif |
25 | 25 | ||
26 | #define TRACE(fmt, args...) \ | 26 | #define TRACE(fmt, args...) \ |
27 | sched_trace_log_message(TRACE_PREFIX fmt, \ | 27 | debug_trace_log_message(TRACE_PREFIX fmt, \ |
28 | TRACE_ARGS, ## args) | 28 | TRACE_ARGS, ## args) |
29 | 29 | ||
30 | #define TRACE_TASK(t, fmt, args...) \ | 30 | #define TRACE_TASK(t, fmt, args...) \ |
diff --git a/litmus/Kconfig b/litmus/Kconfig index e680382329b6..205bf62b79ba 100644 --- a/litmus/Kconfig +++ b/litmus/Kconfig | |||
@@ -150,7 +150,7 @@ config LITMUS_DEBUG_TRACE | |||
150 | bool "TRACE() debugging" | 150 | bool "TRACE() debugging" |
151 | default y | 151 | default y |
152 | help | 152 | help |
153 | Include support for sched_trace_log_messages(), which is used to | 153 | Include support for debug_trace_log_message(), which is used to |
154 | implement TRACE(). If disabled, no TRACE() messages will be included | 154 | implement TRACE(). If disabled, no TRACE() messages will be included |
155 | in the kernel, and no overheads due to debugging statements will be | 155 | in the kernel, and no overheads due to debugging statements will be |
156 | incurred by the scheduler. Disable if the overhead is not acceptable | 156 | incurred by the scheduler. Disable if the overhead is not acceptable |
diff --git a/litmus/debug_trace.c b/litmus/debug_trace.c index 7ed21d4e7139..80c2fbb1dfc4 100644 --- a/litmus/debug_trace.c +++ b/litmus/debug_trace.c | |||
@@ -37,15 +37,15 @@ static DEFINE_RAW_SPINLOCK(log_buffer_lock); | |||
37 | static DEFINE_PER_CPU(char[MSG_SIZE], fmt_buffer); | 37 | static DEFINE_PER_CPU(char[MSG_SIZE], fmt_buffer); |
38 | 38 | ||
39 | /* | 39 | /* |
40 | * sched_trace_log_message - Write to the trace buffer (log_buffer) | 40 | * debug_trace_log_message - Write to the trace buffer (log_buffer) |
41 | * | 41 | * |
42 | * This is the only function accessing the log_buffer from inside the | 42 | * This is the only function accessing the log_buffer from inside the |
43 | * kernel for writing. | 43 | * kernel for writing. |
44 | * Concurrent access to sched_trace_log_message must be serialized using | 44 | * Concurrent access to debug_trace_log_message must be serialized using |
45 | * log_buffer_lock | 45 | * log_buffer_lock |
46 | * The maximum length of a formatted message is 255 | 46 | * The maximum length of a formatted message is 255 |
47 | */ | 47 | */ |
48 | void sched_trace_log_message(const char* fmt, ...) | 48 | void debug_trace_log_message(const char* fmt, ...) |
49 | { | 49 | { |
50 | unsigned long flags; | 50 | unsigned long flags; |
51 | va_list args; | 51 | va_list args; |