From 5b1c2dd0500195cdd0f0db550547ebdf4c4a8e75 Mon Sep 17 00:00:00 2001 From: "Bjoern B. Brandenburg" Date: Mon, 25 Jul 2011 15:33:01 -0400 Subject: fixup: override processor id in feather-trace --- litmus/trace.c | 2 ++ 1 file changed, 2 insertions(+) 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) unsigned int seq_no; struct timestamp *ts; seq_no = fetch_and_inc((int *) &ts_seq_no); + if (ft_buffer_start_write(trace_ts_buf, (void**) &ts)) { *ts = *pre_recorded; ts->seq_no = seq_no; + ts->cpu = raw_smp_processor_id(); ft_buffer_finish_write(trace_ts_buf, ts); } } -- cgit v1.2.2