RTEMS | cpukit/rtems: Add taskgetcpuusage.c directive (!1347)

Gedare Bloom (@gedare) gitlab at rtems.org
Wed Jul 15 15:36:02 UTC 2026




Gedare Bloom started a new discussion on cpukit/include/rtems/rtems/tasks.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1347#note_154494

 > + * @brief Returns CPU usage time for a specific task.
 > + *
 > + * @param id is the thread identifier.
 > + *
 > + * @param[out] ts is a pointer to a timestamp structure. When the directive
 > + *   call is successful, the CPU usage time used by the specified id will be
 > + *   stored here.
 > + *
 > + * This directive retrieves the cpu usage time under the specified id.
 > + *
 > + * @retval ::RTEMS_SUCCESSFUL The requested operation was successful.
 > + *
 > + * @retval ::RTEMS_INVALID_ID There was no task associated with the identifier
 > + *   specified by ``id``.
 > + *
 > + * @retval ::RTEMS_INVALID_ADDRESS The ``ts`` parameter was NULL.

this is not checked?

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1347#note_154494
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/4-cdrzb3z1c5jz1zkxei1o000ui-1d/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260715/7e98af6f/attachment-0001.htm>


More information about the bugs mailing list