RTEMS | Draft: microblaze/cpukit/cpuuse: add max cpu / bt support (!843)

Joel Sherrill (@joel) gitlab at rtems.org
Mon Dec 1 16:29:32 UTC 2025




Joel Sherrill started a new discussion on cpukit/libmisc/cpuuse/cpuusagefortask.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/843#note_136478

 > +  uint32_t           ival;
 > +  uint32_t           fval;
 > +  Timestamp_Control  uptime;
 > +  Timestamp_Control  uptime_at_last_reset;
 > +  Timestamp_Control  used;
 > +  Timestamp_Control  total;
 > +
 > +  uptime_at_last_reset = CPU_usage_Uptime_at_last_reset;
 > +
 > +  the_thread = _Thread_Get( task_id, &lock_context );
 > +
 > +  if ( the_thread == NULL ) {
 > +    return RTEMS_INVALID_ID;
 > +  }
 > +
 > +  used = _Thread_Get_CPU_time_used_after_last_reset( the_thread );

A comment above this block would be helpful.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/843#note_136478
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/20251201/55c83cea/attachment.htm>


More information about the bugs mailing list