🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #3494

Re: Logging library calls

#3494
From: isvara2005
Date: Wed, 02 Nov 2005 17:30
15 lines
2211 bytes
Again, it's an option I had considered, but there are two problems
there. Firstly, "One problem with gprof under certain kernels (such as
Linux) is that it doesn't behave correctly with multithreaded
applications. It actually only profiles the main thread, which is quite
useless." (http://sam.zoy.org/writings/programming/gprof.html)

There appears to be at least one workaround for that, but the other
problem is that it involves recompiling the program and its shared
libraries (our libraries, that is, not system ones) with profiling
support. I'm trying to work towards a transparent, drop-in solution
that will work on existing executable images that are as close to what
we'd actually release as possible, hence looking for an
LD_PRELOAD-based solution.

Dan.
Technical Details
Message-ID: <1130952604.613248.106300@o13g2000cwo.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!o13g2000cwo.googlegroups.com!not-for-mail
References: <1130933853.496034.275900@g14g2000cwa.googlegroups.com> <1130942377.377091.247860@o13g2000cwo.googlegroups.com> <1130946954.521877.216840@z14g2000cwz.googlegroups.com> <1130951142.204007.45430@g49g2000cwa.googlegroups.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: fc89c,a014a748110dc6d4
X-Google-Thread: 11318c,a014a748110dc6d4
X-Google-Attributes: gidfc89c,gid11318c,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!o13g2000cwo.googlegroups.com!not-for-mail
From: isvara2005@gmail.com
Newsgroups: comp.unix.programmer,gnu.gcc.help
Subject: Re: Logging library calls
Date: 2 Nov 2005 09:30:04 -0800
Organization: http://groups.google.com
Lines: 16
Message-ID: <1130952604.613248.106300@o13g2000cwo.googlegroups.com>
References: <1130933853.496034.275900@g14g2000cwa.googlegroups.com>
   <1130942377.377091.247860@o13g2000cwo.googlegroups.com>
   <1130946954.521877.216840@z14g2000cwz.googlegroups.com>
   <1130951142.204007.45430@g49g2000cwa.googlegroups.com>
NNTP-Posting-Host: 212.188.128.184
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1130952609 15690 127.0.0.1 (2 Nov 2005 17:30:09 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 2 Nov 2005 17:30:09 +0000 (UTC)
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b5) Gecko/20051006 Firefox/1.4.1,gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.1 fw1.ipaccess.com:80 (squid/2.5.STABLE9)
Complaints-To: groups-abuse@google.com
Injection-Info: o13g2000cwo.googlegroups.com; posting-host=212.188.128.184;
   posting-account=IIC6NA0AAACyqo96FkyyiCvwvpkz5r-Y