RTEMS | Draft: add programmatic interface for data produced by cpuuse (!232)

Kinsey Moore (@opticron) gitlab at rtems.org
Mon Oct 14 17:40:27 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_113104

 > -    name,
 > -    seconds, nanoseconds,
 > -    ival, fval
 > +    cpuuse_data->name,
 > +    cpuuse_data->seconds, cpuuse_data->nanoseconds,
 > +    cpuuse_data->ival, cpuuse_data->fval
 >    );
 > +  return false;
 > +}
 > +
 >  
 > +static bool cpu_usage_visitor( Thread_Control *the_thread, void *arg )
 > +{
 > +  cpu_usage_context *ctx;
 > +  ctx = arg;
 > +  cpuuse_info  * cpuuse_data;

All declarations in a block should be together at the top of the block. Please move this up one line or make the ctx assignment part of the declaration.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/232#note_113104
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/20241014/59f82ea3/attachment-0001.htm>


More information about the bugs mailing list