<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 27, 2020 at 1:10 AM Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello Carmen,<br>
<br>
On 24/04/2020 10:10, Carmen Pastor wrote:<br>
> Hi All,<br>
><br>
> I've a question for RTEMS 4.10. I'm using the function <br>
> rtems_cpu_usage_report() to get the CPU usage, and it is working well<br>
> but now I need to process the data of the output report, so I would <br>
> like to get the report data in some kind of structure. I see the function<br>
> rtems_cpu_usage_report_with_plugin() but I don't know how use it, <br>
> could someone of you give me an example?<br>
unfortunately, the CPU usage report is not available in a structure. You <br>
could refactor the rtems_cpu_usage_report_with_plugin() function and add <br>
a variant which passes a structure with the CPU usage to a visitor <br>
function.<br></blockquote><div><br></div><div>FWIW the stack usage information is in the same situation. These are both</div><div>desirable features but no one has stepped up to see that they got implemented.</div><div><br></div><div>I know of at least one application that actually wrote the reports to a file and then</div><div>parsed it to get their structure. Why they didn't invest the effort in refactoring the</div><div>code, I don't know.</div><div><br></div><div>--joel</div><div><br></div><div>--joel </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org" target="_blank">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a><br>
</blockquote></div></div>