CPU_USAGE_REPORT() Problem
Joel Sherrill
joel.sherrill at OARcorp.com
Fri Jul 17 12:37:29 UTC 2009
Nasim Zehra wrote:
> moreover it does not give info. like
>
> Ticks since last reset = 1600
> Total Units = 1608
> mentioned in c user guide of rtem.
> I am using rtems 4.8. rtems newer than 4.7 use seconds approach instead of ticks ?in rtems 4.8 ,using cpu_usage_report(),can i get ticks info instead of seconds?
>
>
Are you running on a sparc on sis or tsim?
I have noticed that the last few lines of output do not always get flushed
through RTEMS and the simulator as you are shutting down on those.
--joel
> nasim
> ________________________________________
> From: rtems-users-bounces at rtems.org [rtems-users-bounces at rtems.org] On Behalf Of Nasim Zehra [nasimz at lums.edu.pk]
> Sent: Friday, July 17, 2009 1:03 PM
> To: rtems-users at rtems.org
> Subject: CPU_USAGE_REPORT() Problem
>
> 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?????
> 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?
>
>
> nasim
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users
>
More information about the users
mailing list