diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-05-22 12:39:53 -0400 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-05-22 12:39:53 -0400 |
commit | d57acd2d9c2d24b22ed71d57a00e8624687cca31 (patch) | |
tree | cc611725dc365669060c14288f525b4ceaa90e68 | |
parent | 4e94db6f1c0341c5e64f0f1487de63420fb7a163 (diff) |
Fix task-specific tracing on sparc64
The default implementation contained a bug in a macro.
Also, add a cast to silence the compiler.
-rw-r--r-- | include/litmus/feather_trace.h | 2 | ||||
-rw-r--r-- | include/litmus/trace.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/litmus/feather_trace.h b/include/litmus/feather_trace.h index f4e59718a2..f8fb7badeb 100644 --- a/include/litmus/feather_trace.h +++ b/include/litmus/feather_trace.h | |||
@@ -24,7 +24,7 @@ extern int ft_events[MAX_EVENTS]; | |||
24 | if (ft_events[id]) callback(id); | 24 | if (ft_events[id]) callback(id); |
25 | 25 | ||
26 | #define ft_event1(id, callback, param) \ | 26 | #define ft_event1(id, callback, param) \ |
27 | if (ft_events[id]) callback(id), param; | 27 | if (ft_events[id]) callback(id, param); |
28 | 28 | ||
29 | #define ft_event2(id, callback, param, param2) \ | 29 | #define ft_event2(id, callback, param, param2) \ |
30 | if (ft_events[id]) callback(id, param, param2); | 30 | if (ft_events[id]) callback(id, param, param2); |
diff --git a/include/litmus/trace.h b/include/litmus/trace.h index ff670c5a15..5753ceebb0 100644 --- a/include/litmus/trace.h +++ b/include/litmus/trace.h | |||
@@ -36,7 +36,7 @@ feather_callback void save_timestamp_task(unsigned long event, unsigned long t_p | |||
36 | 36 | ||
37 | #define DTIMESTAMP(id, def) ft_event1(id, save_timestamp_def, def) | 37 | #define DTIMESTAMP(id, def) ft_event1(id, save_timestamp_def, def) |
38 | 38 | ||
39 | #define TTIMESTAMP(id, task) ft_event1(id, save_timestamp_task, task) | 39 | #define TTIMESTAMP(id, task) ft_event1(id, save_timestamp_task, (unsigned long) task) |
40 | 40 | ||
41 | #else /* !CONFIG_FEATHER_TRACE */ | 41 | #else /* !CONFIG_FEATHER_TRACE */ |
42 | 42 | ||