RES: stack_checker_report_usage and cpu_usage_report to array
Wendell Pereira da Silva
wendell.silva at compsisnet.com.br
Fri Jan 27 12:19:06 UTC 2012
Hi Phil,
I've created my own "cpu_usage" iterator.
I my application, the number of tasks is constant. So, it generates two structured arrays.
The first array, which is sent to ground once, is composed of records with:
- Task ID
- Task Name (uint32_t)
The second report, which is sent to ground frequently, is composed of records with:
- Task.ran.tv_sec (int32_t), seconds since last statistics reset.
- Task.ran.tv_usec (uint32_t), microseconds of seconds since last statistics reset.
The last record is the total time sampled, so ground has to calculate the percentage of CPU use.
Since each element of the second array is in the same order of the first one, it has worked well.
My own "space packetized" stack usage report is a work in progress.
Maybe it is a good idea to provide RTEMS API of such features.
--
Att.
Wendell P. Silva.
-----Mensagem original-----
De: rtems-users-bounces at rtems.org [mailto:rtems-users-bounces at rtems.org] Em nome de Phil Smith
Enviada em: quinta-feira, 26 de janeiro de 2012 16:17
Para: rtems-users at rtems.org
Assunto: stack_checker_report_usage and cpu_usage_report to array
We're using RTEMS for ESA's Solar Orbiter and one change we need and would be useful in general for space missions is to send the output of
rtems_stack_checker_report_usage
and
rtems_cpu_usage_report
to an array/structure instead of to printk so that the results can be part of regular telemetry.
We could use rtems_stack_checker_report_usage_with_plugin and rtems_cpu_usage_report_with_plugin and have the plugin be a function to intercept the text and extract it ... however it would save precious (space
qualified) memory to just edit the RTEMS code.
Is anyone else interested in this or done it already?
--
Philip J. Smith __o Dept. of Space and Climate Physics,
pjs1 at mssl.ucl.ac.uk _'\<; Mullard Space Science Laboratory,
((( (*)/(*) University College London.
_______________________________________________
rtems-users mailing list
rtems-users at rtems.org
http://www.rtems.org/mailman/listinfo/rtems-users
More information about the users
mailing list