OpenQNX :: The QNX Community Portal

Jul 05, 2008 - 10:53 AM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 41 unlogged users and 1 registered user online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
leonardo-vittorio
Post subject: tracelogger in ringmode forever  PostPosted: Apr 25, 2008 - 06:04 PM
New Member


Joined: Apr 25, 2008
Posts: 1

Hi qnx experts,
we are running a qnx6.2 system with about 200 application threads (!).
We already use tracelogger to analyse race conditions etc.
Now I want to enable our testers in the field to create actual kernel trace images whenever they observe slow system responses etc. Each kernel trace log should cover the last 15 MB of events.

But to alloc the necessary kernel buffers with 15MB of contiguous memory I must start tracelogger before the (greedy) application. Stopping the tracelogger and restarting it again in ring mode is not an option since the contiguous memory seems not to be availble any more Neutral

Is there any configuration available where tracelogger (virtually) runs in ring mode on 15MB buffers and (repeatedly) stores the complete buffer on events/signals emitted by applications ?

Thanks for any hint etc. !

regards, L.-V.
 
 View user's profile Send private message  
Reply with quote Back to top
rgallen
Post subject: Re: tracelogger in ringmode forever  PostPosted: Apr 25, 2008 - 06:30 PM
QNX Master


Joined: Jul 11, 2002
Posts: 600

leonardo-vittorio wrote:
Hi qnx experts,
we are running a qnx6.2 system with about 200 application threads (!).
We already use tracelogger to analyse race conditions etc.
Now I want to enable our testers in the field to create actual kernel trace images whenever they observe slow system responses etc. Each kernel trace log should cover the last 15 MB of events.

But to alloc the necessary kernel buffers with 15MB of contiguous memory I must start tracelogger before the (greedy) application. Stopping the tracelogger and restarting it again in ring mode is not an option since the contiguous memory seems not to be availble any more Neutral

Is there any configuration available where tracelogger (virtually) runs in ring mode on 15MB buffers and (repeatedly) stores the complete buffer on events/signals emitted by applications ?

Thanks for any hint etc. !

regards, L.-V.


I think so. I am not completely clear on what you are asking for, but it sounds like you just want to be able to dump the ring repeatedly.

First thing, tracelogger is just example code. You can write your own "system manager" (using the TraceEvent api) that allocates the memory, then starts and stops the ring as you see fit.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
cburgess
Post subject: RE: Re: tracelogger in ringmode forever  PostPosted: Apr 29, 2008 - 02:01 AM
QNX Master


Joined: Aug 31, 2004
Posts: 178
Location: Ottawa
The source code to tracelogger is part of the CoreOS project over at Foundry27. Make sure you are registered first, and then go to http://community.qnx.com/integration/viewcvs/viewcvs.cgi/trunk/services/tracelogger/?root=coreos_pub&system=exsy1001

Note that you might have to cut out a few newer features to make this compile under 6.2 (that's pretty old - have you considered upgrading?) but the fundamental interfaces haven't changed.
There is also a new option to use a persisten kernel tracebuffer - checkout the usemsg.

Colin
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.