Re: [PATCH] Adding CPU usage statistics for usage in user code

2014-12-17 Thread Олег Мороз
Thanks for you answer. I will try to implement this. On Thursday 18 of December 2014 08:20:44 Sebastian Huber wrote: > Hello Олег Мороз, > > this duplicates code of the standard report function. I would instead > do the following: > > 1. Add an argument to the visitor function in > rtems_iterat

Re: [PATCH] Adding CPU usage statistics for usage in user code

2014-12-17 Thread Sebastian Huber
Hello Олег Мороз, this duplicates code of the standard report function. I would instead do the following: 1. Add an argument to the visitor function in rtems_iterate_over_all_threads() and rename this function to rtems_task_iterate(). 2. Use rtems_task_iterate() to implement the previous

Re: [PATCH] Adding CPU usage statistics for usage in user code

2014-12-17 Thread Олег Мороз
Sorry, my bad. Briefly description. The patch adding possibility to retrieve CPU usage data as array of typed structs when you have no stdout devices or you need to telemetry this data from you spacecraft or from aircraft or from some other embedded device. On Wednesday 17 of December 2014 17:43