diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-12-17 06:40:05 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-12-17 06:40:05 +0100 |
commit | 614466e7f4ba7116cf55955e2b2e5d556f896068 (patch) | |
tree | f24e969060df0a63520c3342f56d0a9b786bea5b /cpukit/libmisc/capture/record-static.c | |
parent | 4880ce13bf981dac4b61e806d976217c6731e80b (diff) |
recordtrace
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 ) ); |