CPU_USAGE_REPORT() Problem

Joel Sherrill joel.sherrill at OARcorp.com
Fri Jul 17 12:36:19 UTC 2009


Nasim Zehra wrote:
> Hi,
>   i am having five tasks and i want cpu usage report table.
> just after five tasks creation ,i am having table like that
>  ID        NAME     SECONDS   PERCENT
> 0x09010001   IDLE     0.000000    0.000
> 0x0A010001   UI1      0.001260  100.000
> 0x0A010002   TA1      0.000000    0.000
> 0x0A010003   TA2      0.000000    0.000
> 0x0A010004   TA3      0.000000    0.000
> 0x0A010005   TA4      0.000000    0.000
> 0x0A010006   TA5      0.000000    0.000
>
> ----OK bcz idle is by defaul..rest of having 0 exec time..good......But don't know what UI1 is ??????
>
> ok then after execution of all the tasks i am having table like that
>
> ID        NAME     SECONDS   PERCENT
> 0x09010001   IDLE     0.000000    0.000
> 0x0A010001   UI1      0.000787    0.024
> 0x0A010002   TA1      2.216917   70.157
> 0x0A010004   TA3      0.001027    0.032
> 0x0A010006   TA5      0.000000    0.000
>
> --still made at UI1..what is it? and where TA2 AND TA4 have gone?????
>   
UI1 is the default name of the user initialization task.

Tasks missing indicates that they have exited or
been deleted. 

The percentage doesn't get close to 100% because the
report wasn't reset after they were deleted.

With no source code, this is an educated guess on TA2 and TA4

> although i  tried to solve this problem by defining array of task name and id of size 7 instead of five.I know it is ridiculus to do this...it should have no effect on this problem.any solution?
>
>   
Array is just used by the tests.  Name is stored internal to TCB,
> nasim
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users
>   




More information about the users mailing list