RTEMS | Draft: add programmatic interface for data produced by cpuuse (!232)
Kinsey Moore (@opticron)
gitlab at rtems.org
Sat Sep 28 21:00:38 UTC 2024
Kinsey Moore started a new discussion on cpukit/libmisc/cpuuse/cpuusagereport.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/232#note_112678
> - _Timestamp_Subtract( &ctx->uptime_at_last_reset, &uptime, &ctx->total );
> - _Timestamp_Divide( &used, &ctx->total, &ival, &fval );
> - seconds = _Timestamp_Get_seconds( &used );
> - nanoseconds = _Timestamp_Get_nanoseconds( &used ) /
> - TOD_NANOSECONDS_PER_MICROSECOND;
>
> rtems_printf(
> ctx->printer,
> " 0x%08" PRIx32 " | %-38s |"
> "%7" PRIu32 ".%06" PRIu32 " |%4" PRIu32 ".%03" PRIu32 "\n",
> the_thread->Object.id,
> - name,
> - seconds, nanoseconds,
> - ival, fval
> + cpuuse_data.name,
> + cpuuse_data.seconds, cpuuse_data.nanoseconds,
Please remove trailing whitespace.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/232#note_112678
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20240928/e162aead/attachment-0001.htm>
More information about the bugs
mailing list