diff options
Diffstat (limited to 'cpukit/libmisc/capture/record-static.c')
-rw-r--r-- | cpukit/libmisc/capture/record-static.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/cpukit/libmisc/capture/record-static.c b/cpukit/libmisc/capture/record-static.c index f6dfd8b000..825c4412b5 100644 --- a/cpukit/libmisc/capture/record-static.c +++ b/cpukit/libmisc/capture/record-static.c @@ -56,9 +56,7 @@ static void _Record_Watchdog( Per_CPU_Control *cpu ) { - rtems_record_context context_storage; - rtems_record_context *context; - sbintime_t now; + sbintime_t now; _Watchdog_Per_CPU_reinsert_ticks( watchdog, @@ -66,15 +64,10 @@ static void _Record_Watchdog( _Watchdog_Ticks_per_second ); - context = rtems_record_prepare( &context_storage, 2 ); now = _Timecounter_Sbinuptime(); - context = rtems_record_add( - context, + rtems_record_produce_2( RTEMS_RECORD_EVENT_UPTIME_LOW, - (uint32_t) ( now >> 0 ) - ); - rtems_record_commit( - context, + (uint32_t) ( now >> 0 ), RTEMS_RECORD_EVENT_UPTIME_HIGH, (uint32_t) ( now >> 32 ) ); |