From cb37cacc809a847acd20e5682183e76e6ff61b1b Mon Sep 17 00:00:00 2001 From: Andrea Bastoni Date: Fri, 26 Aug 2011 15:44:22 +0200 Subject: Refactor sched_trace_log_message() -> debug_trace_log_message() --- include/litmus/debug_trace.h | 6 +++--- litmus/Kconfig | 2 +- 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 @@ #define LITMUS_DEBUG_TRACE_H #ifdef CONFIG_LITMUS_DEBUG_TRACE -void sched_trace_log_message(const char* fmt, ...); +void debug_trace_log_message(const char* fmt, ...); void dump_trace_buffer(int max); #else -#define sched_trace_log_message(fmt, ...) +#define debug_trace_log_message(fmt, ...) #endif @@ -24,7 +24,7 @@ extern atomic_t __log_seq_no; #endif #define TRACE(fmt, args...) \ - sched_trace_log_message(TRACE_PREFIX fmt, \ + debug_trace_log_message(TRACE_PREFIX fmt, \ TRACE_ARGS, ## args) #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 bool "TRACE() debugging" default y help - Include support for sched_trace_log_messages(), which is used to + Include support for debug_trace_log_message(), which is used to implement TRACE(). If disabled, no TRACE() messages will be included in the kernel, and no overheads due to debugging statements will be 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); static DEFINE_PER_CPU(char[MSG_SIZE], fmt_buffer); /* - * sched_trace_log_message - Write to the trace buffer (log_buffer) + * debug_trace_log_message - Write to the trace buffer (log_buffer) * * This is the only function accessing the log_buffer from inside the * kernel for writing. - * Concurrent access to sched_trace_log_message must be serialized using + * Concurrent access to debug_trace_log_message must be serialized using * log_buffer_lock * The maximum length of a formatted message is 255 */ -void sched_trace_log_message(const char* fmt, ...) +void debug_trace_log_message(const char* fmt, ...) { unsigned long flags; va_list args; -- cgit v1.2.2