RTEMS | Draft: Add programmatic interface for data produced by cpuuse (!200)

zack liang (@zakthertemsdev) gitlab at rtems.org
Tue Sep 17 00:32:38 UTC 2024




zack liang commented on a discussion on cpukit/libmisc/cpuuse/cpuusagereport.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/200#note_112128

 >    const rtems_printer *printer;
 >    Timestamp_Control    total;
 >    Timestamp_Control    uptime_at_last_reset;
 > +  bool  (*usage_function_pointer) ( Thread_Control *the_thread, void * arg, char *  name ,  uint32_t   ival, uint32_t  fval , uint32_t  seconds ,uint32_t  nanoseconds);
 > +
 >  } cpu_usage_context;
 >  
 > -static bool cpu_usage_visitor( Thread_Control *the_thread, void *arg )
 > +bool  print_usage_stats( Thread_Control *the_thread, void * arg, char *  name ,  uint32_t   ival, uint32_t  fval , uint32_t  seconds ,uint32_t  nanoseconds
 > +)
 > +{
 > +  cpu_usage_context *ctx;
 > +  ctx = arg;

which two lines?

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/200#note_112128
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/20240917/22acdfca/attachment-0001.htm>


More information about the bugs mailing list