aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2011-07-25 15:33:01 -0400
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2011-07-25 15:33:01 -0400
commit5b1c2dd0500195cdd0f0db550547ebdf4c4a8e75 (patch)
treebad1550e98cb1c6e3b7e606f2789b0e06731c493
parent4a7acdab0cb30d07ee1b60283c532ef8f5559a48 (diff)
fixup: override processor id in feather-trace
-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}