summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cpukit/libmisc/capture/capture.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/libmisc/capture/capture.c b/cpukit/libmisc/capture/capture.c
index 19a90c5954..4d40b8f630 100644
--- a/cpukit/libmisc/capture/capture.c
+++ b/cpukit/libmisc/capture/capture.c
@@ -387,6 +387,7 @@ rtems_capture_record_open (rtems_tcb* tcb,
if (ptr != NULL)
{
rtems_capture_record in;
+ rtems_capture_time time;
++cpu->count;
@@ -402,7 +403,8 @@ rtems_capture_record_open (rtems_tcb* tcb,
rtems_capture_task_real_priority (tcb) |
(rtems_capture_task_curr_priority (tcb) << 8));
- rtems_capture_get_time (&in.time);
+ rtems_capture_get_time (&time);
+ in.time = time; /* need this since in is a packed struct */
ptr = rtems_capture_record_append(ptr, &in, sizeof(in));
}