🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #3439

Instrument specific set of functions

#3439
From: 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
Technical Details
Message-ID: <8c29afec-b48d-4784-827b-e053ab54ebf2@w1g2000prk.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!w1g2000prk.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: fc89c,3247d231c6c3eb7e,start
X-Google-Thread: 11318c,3247d231c6c3eb7e,start
X-Google-Attributes: gidfc89c,gid11318c,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!w1g2000prk.googlegroups.com!not-for-mail
From: sinbad <sinbad.sinbad@gmail.com>
Newsgroups: comp.unix.programmer,gnu.gcc.help
Subject: Instrument specific set of functions
Date: Wed, 5 Nov 2008 17:30:02 -0800 (PST)
Organization: http://groups.google.com
Lines: 26
Message-ID: <8c29afec-b48d-4784-827b-e053ab54ebf2@w1g2000prk.googlegroups.com>
NNTP-Posting-Host: 121.242.28.100
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1225935003 22357 127.0.0.1 (6 Nov 2008 01:30:03 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 6 Nov 2008 01:30:03 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: w1g2000prk.googlegroups.com; posting-host=121.242.28.100; 
 posting-account=YM05VwoAAABfhqQvMhVh5BYqiwLHuZYv
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) 
 Gecko/2008092417 Firefox/3.0.3,gzip(gfe),gzip(gfe)