Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - System Profiler Problems: (7 Items)
   
System Profiler Problems  
Hello,
I'm trying to use System Profiler according the instructions here :
http://www.qnx.co.jp/developers/docs/6.3.2/ide_en/user_guide/sysprof.html

The operation get stuck in the step of : Uploading the log file into workspace this when i configure the Trace file as :
Save on target then upload

When i configure the Trace file to :Stream
I'm asked for opening file in the workspace dir and than when approving the operation i receive the  attached errors .

What am i doing wrong ?

IDE 4.0.1
QNX 6.3.2
HOST - Linux.
Attachment: Image snapshot1.png 136.42 KB
Re: System Profiler Problems  
This is some sort of bug. Please don't use streaming use Save on target then upload.
If this one is not working can you please attach .kev file (the one it tries to open).

Vadim Malenboim wrote:
> Hello,
> I'm trying to use System Profiler according the instructions here :
> http://www.qnx.co.jp/developers/docs/6.3.2/ide_en/user_guide/sysprof.html
> 
> The operation get stuck in the step of : Uploading the log file into workspace this when i configure the Trace file as
 :Save on target then upload
> 
> When i configure the Trace file to :Stream
> I'm asked for opening file in the workspace dir and than when approving the operation i receive the  attached errors .

> 
> What am i doing wrong ?
> 
> IDE 4.0.1
> QNX 6.3.2
> HOST - Linux.
> 
> 
> _______________________________________________
> QNX Momentics Community Support
> http://community.qnx.com/sf/go/post19931
> 
> 
> ------------------------------------------------------------------------
> 
Re: System Profiler Problems  
Elena Hello,
Now when using save on target than upload the application hangs at the upload stage.

If i stop it close the ide and reopen it , than upload the .kev file created on the target into the workspace and open 
it i can see all the relevant results .

But every time i want to do it i need to repeat all the steps again including stopping the upload and restarting the IDE
.

What might be the problem in this process ?
Re: System Profiler Problems  
How big is the file? Maybe it is just processing it?
Re: System Profiler Problems  
The file is 559,199 bytes and i left it for about half an hour to process.

Another question about the results i receive :
I run the following code :

ThreadCtl( _NTO_TCTL_IO, 0 );
while(1)
{
	TraceEvent(_NTO_TRACE_INSERTUSRSTREVENT,event_start, str_start);
	InterruptLock( &spinner );
	/* ... critical section */
	c = pow(a,b);
	InterruptUnlock( &spinner );
	TraceEvent(_NTO_TRACE_INSERTUSRSTREVENT,event_end, str_end);  
}
and check the time between the two events
i receive time that is changing in every loop and not constant (image attached).
the time varies from 5 to 12 mSec how is this possible why the results aren't constant 
I'm running on ppc405 implemented in Virtex4 fpga.
When I run the same code on x86 with vxWorks running and check the results in windView it gives me constant result of 10
.5 mSec each time.
Attachment: Image global_processes2.png 34.06 KB
Re: System Profiler Problems  
Another check that i have done with the following code gave me the attached results.
 ThreadCtl( _NTO_TCTL_IO, 0 );
while(1)
{
	TraceEvent(_NTO_TRACE_INSERTUSRSTREVENT,event_start, str_start);
	InterruptLock( &spinner );
	/* ... critical section */
	/*c = pow(a,b);*/
	c = a*b;
	InterruptUnlock( &spinner );
	TraceEvent(_NTO_TRACE_INSERTUSRSTREVENT,event_end, str_end);  
}
again there are different time for the same operation that is done .
It varies from 121 uSec to 250 uSec.

And another question is about the signal that i receive : _KER_SIGNAL_FAULT
what is it and why do i receive it ?
why the InterruptLock doesn't work -- there are interrupts in the middle of excecution (see image)
Attachment: Image global_processes3.png 159.05 KB
Re: System Profiler Problems  
You're trigger kernel FPU emulation.  The KER_SIGNAL_FAULT is the emulator reporting it's context
back to the kernel.

Vadim Malenboim wrote:
> Another check that i have done with the following code gave me the attached results.
>  ThreadCtl( _NTO_TCTL_IO, 0 );
> while(1)
> {
> 	TraceEvent(_NTO_TRACE_INSERTUSRSTREVENT,event_start, str_start);
> 	InterruptLock( &spinner );
> 	/* ... critical section */
> 	/*c = pow(a,b);*/
> 	c = a*b;
> 	InterruptUnlock( &spinner );
> 	TraceEvent(_NTO_TRACE_INSERTUSRSTREVENT,event_end, str_end);  
> }
> again there are different time for the same operation that is done .
> It varies from 121 uSec to 250 uSec.
> 
> And another question is about the signal that i receive : _KER_SIGNAL_FAULT
> what is it and why do i receive it ?
> why the InterruptLock doesn't work -- there are interrupts in the middle of excecution (see image)
> 
> 
> _______________________________________________
> QNX Momentics Community Support
> http://community.qnx.com/sf/go/post20973
> 
> 
> ------------------------------------------------------------------------
> 

-- 
cburgess@qnx.com