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 /litmus | |
parent | 11e46234ce711665f75246d026631bcd6c946e44 (diff) |
Refactor sched_trace_log_message() -> debug_trace_log_message()wip-2011.2-bbb-trace
Diffstat (limited to 'litmus')
-rw-r--r-- | litmus/Kconfig | 2 | ||||
-rw-r--r-- | litmus/debug_trace.c | 6 |
2 files changed, 4 insertions, 4 deletions
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; |