aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Brandenburg <bbb@mpi-sws.org>2016-03-16 06:37:40 -0400
committerBjoern Brandenburg <bbb@mpi-sws.org>2016-03-16 07:08:28 -0400
commit6a09accd64054fd3bfd2c98242c7357d58aa4f5c (patch)
tree5e0cca8b68911dd06929070bfff1151315ff381e
parent14cc73779849021aa199e305933852c7847aa85a (diff)
Feather-Trace: cosmetic change in latency callback
Have symbol for traced delta. This is a purely cosmetic change that makes it easier to stick in a WARN_ON() during debugging...
-rw-r--r--litmus/trace.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/litmus/trace.c b/litmus/trace.c
index 99846039286e..1dcb9a65b480 100644
--- a/litmus/trace.c
+++ b/litmus/trace.c
@@ -263,11 +263,12 @@ feather_callback void save_cpu_task_latency(unsigned long event,
263{ 263{
264 lt_t now = litmus_clock(); 264 lt_t now = litmus_clock();
265 lt_t *when = (lt_t*) when_ptr; 265 lt_t *when = (lt_t*) when_ptr;
266 lt_t delta = now - *when;
266 267
267 write_cpu_timestamp(event, TSK_RT, 268 write_cpu_timestamp(event, TSK_RT,
268 0, 269 0,
269 0, LOCAL_IRQ_COUNT, 0, 270 0, LOCAL_IRQ_COUNT, 0,
270 now - *when, DO_NOT_RECORD_TIMESTAMP); 271 delta, DO_NOT_RECORD_TIMESTAMP);
271} 272}
272 273
273/* Record to remote trace buffer */ 274/* Record to remote trace buffer */