diff options
author | Bryan Ward <bcw@cs.unc.edu> | 2013-04-16 14:22:45 -0400 |
---|---|---|
committer | Bryan Ward <bcw@cs.unc.edu> | 2013-04-16 14:40:24 -0400 |
commit | d6ba4603c299657235ce49bbfb9542d3e4511c26 (patch) | |
tree | 5422ac51c75c88b7e6b83f65e07c51d8ae3c8a72 /include/litmus | |
parent | 89fd339cb393a0b4f6d8923d7468cf87dcd85de8 (diff) |
Fixed a boosting bug.
Diffstat (limited to 'include/litmus')
-rw-r--r-- | include/litmus/debug_trace.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/litmus/debug_trace.h b/include/litmus/debug_trace.h index 1266ac6a760c..928b1dfd1dbf 100644 --- a/include/litmus/debug_trace.h +++ b/include/litmus/debug_trace.h | |||
@@ -17,10 +17,22 @@ extern atomic_t __log_seq_no; | |||
17 | #define TRACE_ARGS atomic_add_return(1, &__log_seq_no), \ | 17 | #define TRACE_ARGS atomic_add_return(1, &__log_seq_no), \ |
18 | raw_smp_processor_id(), \ | 18 | raw_smp_processor_id(), \ |
19 | __FUNCTION__, __FILE__, __LINE__ | 19 | __FUNCTION__, __FILE__, __LINE__ |
20 | #define STRACE(fmt, args...) \ | ||
21 | sched_trace_log_message("%d P%d [%s@%s:%d]: " fmt, \ | ||
22 | TRACE_ARGS, ## args) | ||
23 | #define STRACE2(fmt, args...) \ | ||
24 | sched_trace_log_message("%d P%d [%s@%s:%d]: " fmt, \ | ||
25 | TRACE_ARGS, ## args) | ||
20 | #else | 26 | #else |
21 | #define TRACE_PREFIX "%d P%d: " | 27 | #define TRACE_PREFIX "%d P%d: " |
22 | #define TRACE_ARGS atomic_add_return(1, &__log_seq_no), \ | 28 | #define TRACE_ARGS atomic_add_return(1, &__log_seq_no), \ |
23 | raw_smp_processor_id() | 29 | raw_smp_processor_id() |
30 | #define STRACE(fmt, args...) \ | ||
31 | sched_trace_log_message("%d P%d : " fmt, \ | ||
32 | TRACE_ARGS, ## args) | ||
33 | #define STRACE2(fmt, args...) \ | ||
34 | sched_trace_log_message("%d P%d : " fmt, \ | ||
35 | TRACE_ARGS, ## args) | ||
24 | #endif | 36 | #endif |
25 | 37 | ||
26 | #define TRACE(fmt, args...) \ | 38 | #define TRACE(fmt, args...) \ |
@@ -34,7 +46,13 @@ extern atomic_t __log_seq_no; | |||
34 | t ? (t)->rt_param.job_params.job_no : 0, \ | 46 | t ? (t)->rt_param.job_params.job_no : 0, \ |
35 | ##args) | 47 | ##args) |
36 | 48 | ||
49 | #define STRACE_TASK(t, fmt, args...) \ | ||
50 | STRACE("(%s/%d:%d) " fmt, (t)->comm, (t)->pid, \ | ||
51 | (t)->rt_param.job_params.job_no, ##args) | ||
52 | |||
37 | #define TRACE_CUR(fmt, args...) \ | 53 | #define TRACE_CUR(fmt, args...) \ |
38 | TRACE_TASK(current, fmt, ## args) | 54 | TRACE_TASK(current, fmt, ## args) |
39 | 55 | ||
56 | |||
57 | |||
40 | #endif | 58 | #endif |