Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Application Profiler trouble on newly spinned off threads: (6 Items)
   
Application Profiler trouble on newly spinned off threads  
Good morning QNX Momentics crew,

Setup:
I am using 4.6 Momentics on QNX SDK 6.3.2a.  (With all the newest patches and things for 4.6 support).

Problem:
The Application Profiler/Function Instrumentation works great on thread 1/main process.  But when a shared object in 
that process spins a thread, it does not populate with any symbol information, just address mappings.  

The SO/Project I want the symbol information from is compiled in debug with the check box for function instrumentation, 
linker with -lprofilingS and export all symbols and the compiler with -finstrument-functions.

Is there anything else I am missing?

P.S. I get most symbols in the regular debugger, except for the first few in the call stack, could this be related? 

Thanks!
-Mike
AW: Application Profiler trouble on newly spinned off threads  
which type of data recording do you use?
I think automatic SO load address resolution is only available in kernel trace mode.
Have you checked your Prof Session for Project Properties -> Binary Mappings?
You will have to tell Application Profiler which SO is loaded to which address.
You can check that for example using: pidin mem

/hp



-----Ursprüngliche Nachricht-----
Von:	Michael Mathews [mailto:community-noreply@qnx.com]
Gesendet:	Mi 10.06.2009 17:55
An:	general-ide
Cc:	
Betreff:	Application Profiler trouble on newly spinned off threads

Good morning QNX Momentics crew,

Setup:
I am using 4.6 Momentics on QNX SDK 6.3.2a.  (With all the newest patches and things for 4.6 support).

Problem:
The Application Profiler/Function Instrumentation works great on thread 1/main process.  But when a shared object in 
that process spins a thread, it does not populate with any symbol information, just address mappings.  

The SO/Project I want the symbol information from is compiled in debug with the check box for function instrumentation, 
linker with -lprofilingS and export all symbols and the compiler with -finstrument-functions.

Is there anything else I am missing?

P.S. I get most symbols in the regular debugger, except for the first few in the call stack, could this be related? 

Thanks!
-Mike

_______________________________________________
General
http://community.qnx.com/sf/go/post31375 
 
*******************************************
Harman Becker Automotive Systems GmbH
Management Board: Dr. Klaus Blickle (Chairman), Dr. Udo Hüls, Michael Mauser
Chairman of the Supervisory Board: Ansgar Rempp | Domicile: Karlsbad | 
Local Court Mannheim: Register No. 361395

 
*******************************************
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat 
sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und loeschen Sie diese Mail
. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have 
received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, 
disclosure or distribution of the contents in this e-mail is strictly forbidden.
*******************************************
Attachment: Text winmail.dat 4.06 KB
Re: AW: Application Profiler trouble on newly spinned off threads  
Binary Mappings are only for System profiler

Hans-Peter Reichert wrote:
> which type of data recording do you use?
> I think automatic SO load address resolution is only available in kernel 
> trace mode.
> Have you checked your Prof Session for Project Properties -> Binary 
> Mappings?
> You will have to tell Application Profiler which SO is loaded to which 
> address.
> You can check that for example using: pidin mem
> 
> /hp
> 
> 
> 
> -----Ursprüngliche Nachricht-----
> Von:    Michael Mathews [mailto:community-noreply@qnx.com]
> Gesendet:       Mi 10.06.2009 17:55
> An:     general-ide
> Cc:    
> Betreff:        Application Profiler trouble on newly spinned off threads
> 
> Good morning QNX Momentics crew,
> 
> Setup:
> I am using 4.6 Momentics on QNX SDK 6.3.2a.  (With all the newest 
> patches and things for 4.6 support).
> 
> Problem:
> The Application Profiler/Function Instrumentation works great on thread 
> 1/main process.  But when a shared object in that process spins a 
> thread, it does not populate with any symbol information, just address 
> mappings. 
> 
> The SO/Project I want the symbol information from is compiled in debug 
> with the check box for function instrumentation, linker with 
> -lprofilingS and export all symbols and the compiler with 
> -finstrument-functions.
> 
> Is there anything else I am missing?
> 
> P.S. I get most symbols in the regular debugger, except for the first 
> few in the call stack, could this be related?
> 
> Thanks!
> -Mike
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post31375
> 
> *******************************************
> Harman Becker Automotive Systems GmbH
> Management Board: Dr. Klaus Blickle (Chairman), Dr. Udo Hüls, Michael Mauser
> Chairman of the Supervisory Board: Ansgar Rempp | Domicile: Karlsbad |
> Local Court Mannheim: Register No. 361395
> 
> 
> *******************************************
> Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte 
> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese 
> E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den 
> Absender und loeschen Sie diese Mail. Das unerlaubte Kopieren sowie die 
> unbefugte Weitergabe dieser Mail ist nicht gestattet.
> This e-mail may contain confidential and/or privileged information. If 
> you are not the intended recipient (or have received this e-mail in 
> error) please notify the sender immediately and delete this e-mail. Any 
> unauthorized copying, disclosure or distribution of the contents in this 
> e-mail is strictly forbidden.
> *******************************************
> 
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post31379
> 
Re: Application Profiler trouble on newly spinned off threads  
In launch configuration, Tools tab there is extra "tool" called Shared Libraries. This is path for shared libraries on 
the host for use of our tools.
Add path to your .so files in there, see if this helps.


Michael Mathews wrote:
> Good morning QNX Momentics crew,
> 
> Setup:
> I am using 4.6 Momentics on QNX SDK 6.3.2a.  (With all the newest patches and things for 4.6 support).
> 
> Problem:
> The Application Profiler/Function Instrumentation works great on thread 1/main process.  But when a shared object in 
that process spins a thread, it does not populate with any symbol information, just address mappings.  
> 
> The SO/Project I want the symbol information from is compiled in debug with the check box for function instrumentation
, linker with -lprofilingS and export all symbols and the compiler with -finstrument-functions.
> 
> Is there anything else I am missing?
> 
> P.S. I get most symbols in the regular debugger, except for the first few in the call stack, could this be related? 
> 
> Thanks!
> -Mike
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post31375
> 
Re: Application Profiler trouble on newly spinned off threads  
Ah Ha!  I'll give that a try and report back as soon as I get results.

Thank you so much for the quick response time!!
Re: Application Profiler trouble on newly spinned off threads  
Confirmed, everything is working now.
Thank you HP and Elena very much!

-Mike