diff options
Diffstat (limited to 'include/litmus')
-rw-r--r-- | include/litmus/debug_trace.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/litmus/debug_trace.h b/include/litmus/debug_trace.h index b743aa96de79..2e946f147ca7 100644 --- a/include/litmus/debug_trace.h +++ b/include/litmus/debug_trace.h | |||
@@ -12,12 +12,14 @@ void dump_trace_buffer(int max); | |||
12 | 12 | ||
13 | extern atomic_t __log_seq_no; | 13 | extern atomic_t __log_seq_no; |
14 | 14 | ||
15 | #define TRACE(fmt, args...) \ | 15 | #define TRACE(fmt, args...) \ |
16 | sched_trace_log_message("%d P%d: " fmt, atomic_add_return(1, &__log_seq_no), \ | 16 | sched_trace_log_message("%d P%d: " fmt, \ |
17 | atomic_add_return(1, &__log_seq_no), \ | ||
17 | raw_smp_processor_id(), ## args) | 18 | raw_smp_processor_id(), ## args) |
18 | 19 | ||
19 | #define TRACE_TASK(t, fmt, args...) \ | 20 | #define TRACE_TASK(t, fmt, args...) \ |
20 | TRACE("(%s/%d) " fmt, (t)->comm, (t)->pid, ##args) | 21 | TRACE("(%s/%d:%d) " fmt, (t)->comm, (t)->pid, \ |
22 | (t)->rt_param.job_params.job_no, ##args) | ||
21 | 23 | ||
22 | #define TRACE_CUR(fmt, args...) \ | 24 | #define TRACE_CUR(fmt, args...) \ |
23 | TRACE_TASK(current, fmt, ## args) | 25 | TRACE_TASK(current, fmt, ## args) |