lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <499CC43C.3000406@gmail.com>
Date:	Wed, 18 Feb 2009 20:30:20 -0600
From:	Robert Hancock <hancockrwd@...il.com>
To:	Scott Simpson <simpson100@...il.com>
CC:	linux-kernel@...r.kernel.org
Subject: Re: How do you profile an executable that loads shared libraries?

Scott Simpson wrote:
> I have an executable that loads shared libraries. I compiled with "-g
> -pg" and then I ran gprof on the gmon.out file. I don't see any of the
> shared libraries that the program loaded in my gprof output. How do
> you profile shared libraries?
> 
> Also, I saw on the ld.so man page the LD_PROFILE variable but I found
> information on the net that says variable should not be used when
> using -pg.
> 
> Can someone help me out? I can't find information *anywhere* on
> profiling shared libraries using gprof or the LD_PROFILE variable.
> 
> Sorry to post here. I don't know where else to post.

Can't really help you with gprof, but in most cases it's likely much 
easier to use oprofile instead, then you don't have to recompile your app..
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ