fixunix
Tags Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

vxWorks: scaning spy output - VxWorks

This is a discussion on vxWorks: scaning spy output - VxWorks ; Hi, I have to prepare a function that delivers the average CPU load for a certain period with C++ in vxWorks. With # include ... spyLibInit(); taskDelay (sysClkRateGet()*20); // Wait 20 s spyReportCommon((FUNCPTR) printf); spyStopCommon(); I get the load printed. ...


Fix Unix > Other OS > VxWorks > vxWorks: scaning spy output

Reply
 
LinkBack Tools
  #1  
Old 06-09-2009, 02:36 PM
Junior Member
 
Join Date: Jun 2009
Posts: 0
Default vxWorks: scaning spy output

Hi,

I have to prepare a function that delivers the average CPU load for a certain period with C++ in vxWorks. With

# include
...
spyLibInit();
taskDelay (sysClkRateGet()*20); // Wait 20 s
spyReportCommon((FUNCPTR) printf);
spyStopCommon();

I get the load printed. To return the load, I think I have to call spyReportCommon with my own written function as a parameter. This function has to scan the spy output and write it into variables which can be returned afterwards.

I.e. is this the right way?
How could the scanning function look like?

Wolfgang
Reply With Quote
Reply

Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
usrMmuInit function difference in vxWorks-5.4 and vxWorks-6.3 unix VxWorks 0 10-17-2008 12:44 PM
Help - VxWorks Launcher not starting (Tornado/Vxworks 5.5.x) unix VxWorks 0 07-18-2008 06:20 AM
VXWORKS 6.0 :From vxworks sending a layer2 packet ( USING ONLY MAC ADDRESS ) unix VxWorks 1 10-02-2007 09:19 AM
Problems related with the compiling of vxWorks Image with Embedded http server in VxWorks 6.2 unix VxWorks 0 10-02-2007 09:06 AM
Build VxWorks image support IPv6 using VxWorks 6.2 & WindRiver Workbench 2.4 unix VxWorks 1 10-02-2007 08:40 AM


All times are GMT. The time now is 10:27 AM.