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

Kinsey Moore (@opticron) gitlab at rtems.org
Mon Sep 9 18:56:57 UTC 2024




Kinsey Moore started a new discussion on cpukit/libmisc/cpuuse/cpuusagereport.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/200#note_111877

 >    uint32_t           nanoseconds;
 >  
 >    ctx = arg;
 > +  ctx->usage_function_pointer = print_usage_stats; 

This should be set in the calling function so that it can be changed out more easily. Once that is done, you'll need a way to pass it in. I'd recommend breaking out the core of the calling function (the section after the header is printed and before the footer is printed) into its own separate function so that usage_function_pointer can be provided.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/200#note_111877
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/20240909/e3c2f85f/attachment.htm>


More information about the bugs mailing list