[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RES: stack_checker_report_usage and cpu_usage_report to array
- Date: Fri, 27 Jan 2012 10:19:06 -0200
- From: wendell.silva at compsisnet.com.br (Wendell Pereira da Silva)
- Subject: RES: stack_checker_report_usage and cpu_usage_report to array
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.
Wendell P. Silva.
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
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