🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.unix.programmer
2 messages
2 total messages Started by sinbad Thu, 06 Nov 2008 01:30
Instrument specific set of functions
#3439
Author: sinbad
Date: Thu, 06 Nov 2008 01:30
26 lines
1997 bytes
hi,
Is there any way to instrument specific set of functions using gcc -
finstrument_function
option.I see by using this option the whole code will be instrumented.
You can
avoid a function being instrumented by using attribute
'no_instrument_function".

My code is arranged in the following way;

parent_folder\
 - a\
 - b\
 - c\

folders a,b and c has C source and header files. Here i need to
instrument the functions
present only in folder "b", how can i do that; More over the functions
in "b" might call functions
in "a" or "c", they need to be instrumented as well.Is there any good
way of doing this.
Please point some other features of GCC if there are any.
btw, i am using GCC version 3.4.6 on a 2.6 linux kernel.

thanks
sinbad
Re: Instrument specific set of functions
#3440
Author: Boon
Date: Thu, 06 Nov 2008 07:40
7 lines
1377 bytes
sinbad wrote:

> Is there any way to instrument specific set of functions using gcc
> finstrument_function option.

Would it not make sense to use oprofile ?
http://oprofile.sourceforge.net/about/
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads