Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Tracelogger Question: (8 Items)
   
Tracelogger Question  
We are using the tracelogger tool and would like to know if there are any know issue with the tool.

What we are seeing is, once you process the trace data we get inconsistant outputs in the data columb.  Sometimes the 
data comes out as an integer, sometimes it comes out as a string.

here is the code fragment in question.

int count;    

TraceEvent(_NTO_TRACE_INSERTSUSEREVENT, 81, count, 0);
Re: Tracelogger Question  
Re: Tracelogger Question  
In our mian we setup tracelogger with the following:
TraceEvent(_NTO_TRACE_ADDALLCLASSES);
TraceEvent(_NTO_TRACE_SETEVENTWIDE, _NTO_TRACE_KERCALL, __KER_SYNC_MUTEX_LOCK);
TraceEvent(_NTO_TRACE_SETEVENTWIDE, _NTO_TRACE_KERCALL, __KER_SYNC_MUTEX_REVIVE);
TraceEvent(_NTO_TRACE_SETEVENTWIDE, _NTO_TRACE_KERCALL, __KER_SYNC_MUTEX_UNLOCK );

TraceEvent(_NTO_TRACE_SETRINGMODE);   // use a ring buffer to overwrite old data with new
TraceEvent(_NTO_TRACE_START);         // begin tracing

Then we start the tracelogger with the following command line:
tracelogger -d2 -r -f
 
and yes we assign a value to the variable "count" before calling TraceEvent().
Re: Tracelogger Question  
> Then we start the tracelogger with the following command line:
> tracelogger -d2 -r -f
try -> tracelogger -d1. And what is version of qnx you use?????????????

Re: Tracelogger Question  
Sorry we are using tracelogger -d1 - r -f, the d2 was a typo.
Re: Tracelogger Question  
Check the link that I mentioned above (in the openqnx.com site). 
Re: Tracelogger Question  
> int count;    
> TraceEvent(_NTO_TRACE_INSERTSUSEREVENT, 81, count, 0);

And I hope You assign value to the COUNT var before TraceEvent call.

Re: Tracelogger Question  
The IDE will use a heuristic in the absence of a user event xml file, 
based on whether it considers the user event data to be 'printable'.

Checkout the description in the ide docs on using an xml file to 
describe the user event formats...

Cheers,

Colin

On 13-01-09 3:50 PM, Mark Bangert wrote:
> We are using the tracelogger tool and would like to know if there are any know issue with the tool.
>
> What we are seeing is, once you process the trace data we get inconsistant outputs in the data columb.  Sometimes the 
data comes out as an integer, sometimes it comes out as a string.
>
> here is the code fragment in question.
>
> int count;
>
> TraceEvent(_NTO_TRACE_INSERTSUSEREVENT, 81, count, 0);
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post98465
> To cancel your subscription to this discussion, please e-mail general-toolchain-unsubscribe@community.qnx.com

-- 
cburgess@qnx.com