aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--litmus/trace.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/litmus/trace.c b/litmus/trace.c
index 1288e2e252c2..6e123e6e0170 100644
--- a/litmus/trace.c
+++ b/litmus/trace.c
@@ -37,9 +37,11 @@ static void __add_timestamp_user(struct timestamp *pre_recorded)
37 unsigned int seq_no; 37 unsigned int seq_no;
38 struct timestamp *ts; 38 struct timestamp *ts;
39 seq_no = fetch_and_inc((int *) &ts_seq_no); 39 seq_no = fetch_and_inc((int *) &ts_seq_no);
40
40 if (ft_buffer_start_write(trace_ts_buf, (void**) &ts)) { 41 if (ft_buffer_start_write(trace_ts_buf, (void**) &ts)) {
41 *ts = *pre_recorded; 42 *ts = *pre_recorded;
42 ts->seq_no = seq_no; 43 ts->seq_no = seq_no;
44 ts->cpu = raw_smp_processor_id();
43 ft_buffer_finish_write(trace_ts_buf, ts); 45 ft_buffer_finish_write(trace_ts_buf, ts);
44 } 46 }
45} 47}