RTEMS | CPU Usage api (!864)
Sam Price (@TheSamPrice)
gitlab at rtems.org
Sun Feb 15 01:11:46 UTC 2026
Sam Price commented on a discussion on cpukit/include/rtems/cpuuse.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/864#note_142781
> + /**
> + * CPU time this thread has consumed since the last reset. Use together with
> + * @ref cpu_total to derive a percent.
> + */
> + Timestamp_Control task_total;
> + /**
> + * Total system CPU time since the last CPU usage reset (all processors,
> + * denominator for percent calculations).
> + */
> + Timestamp_Control cpu_total;
> +} rtems_cpu_usage_info;
> +
> +/**
> + * @brief Populate CPU usage information for a specific thread.
> + *
> + * @retval ::RTEMS_SUCCESSFUL The CPU usage information was stored in @a info.
The codebase seems a mix of `@retval ::RTEMS_` and @retval RTEMS_`
See
https://gitlab.rtems.org/rtems/rtos/rtems/-/blob/main/cpukit/include/rtems/rtems/intr.h?ref_type=heads#L1186
Documentation states `@retval RTEMS_`
I will update.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/864#note_142781
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/20260215/ec6ee8e8/attachment-0001.htm>
More information about the bugs
mailing list