|
|
AW: profiling usage of libc
|
|
08/19/2009 11:14 AM
post36279
|
AW: profiling usage of libc
:-/ I should add the answers I don't like to hear to my posts
>-----Ursprüngliche Nachricht-----
>Von: Colin Burgess [mailto:community-noreply@qnx.com]
>Gesendet: Mittwoch, 19. August 2009 17:04
>An: general-ide
>Betreff: Re: profiling usage of libc
>
>You could compile libc with -finstrument-functions, but you
>might have to be careful that any functions that libprofiling
>uses don't cause a recursive loop-o-death!
>
>Hans-Peter Reichert wrote:
>> I want to analize libc usage of a certain binary, but I
>can't find an
>> instrumented libc.so.
>> so is there any other way than writing a LD_PRELOAD libc
>wrapper to get the -finstrument-functions in libc?
>>
>> TIA
>> hp
>>
>>
>>
>> _______________________________________________
>>
>> General
>> http://community.qnx.com/sf/go/post36246
>>
>
>--
>cburgess@qnx.com
>
>
>
>_______________________________________________
>
>General
>http://community.qnx.com/sf/go/post36271
>
>
*******************************************
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.
*******************************************
|
|
|
|
|
|
|
Re: profiling usage of libc
|
|
08/22/2009 4:29 PM
post36471
|
Re: profiling usage of libc
Compiling whole libc with -finstrument-functions would definitely cause
problems but if you are interested in specific function, you can try to
do it yourself
by checking out libc from svn and changing makefile flags to compile
SPECIFIC files
with this option.
Colin Burgess wrote:
> You could compile libc with -finstrument-functions, but you might have to be careful that any functions that
libprofiling uses don't cause a recursive loop-o-death!
>
> Hans-Peter Reichert wrote:
>
>> I want to analize libc usage of a certain binary,
>> but I can't find an instrumented libc.so.
>> so is there any other way than writing a LD_PRELOAD libc wrapper to get the -finstrument-functions in libc?
>>
>> TIA
>> hp
>>
>>
>>
>> _______________________________________________
>>
>> General
>> http://community.qnx.com/sf/go/post36246
>>
>>
>
>
|
|
|
|
|