LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* Memory Profiling Tool
@ 2003-09-02 13:43 mss59
  2003-09-02 20:51 ` Dan Kegel
  2003-09-04  5:58 ` Der Herr Hofrat
  0 siblings, 2 replies; 5+ messages in thread
From: mss59 @ 2003-09-02 13:43 UTC (permalink / raw)
  To: linuxppc-embedded


Is there any memory profiling and leak detection tool available which works
for both PPC and X86??

Thanks.

Ravi.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Memory Profiling Tool
  2003-09-02 13:43 mss59
@ 2003-09-02 20:51 ` Dan Kegel
  2003-09-04  5:58 ` Der Herr Hofrat
  1 sibling, 0 replies; 5+ messages in thread
From: Dan Kegel @ 2003-09-02 20:51 UTC (permalink / raw)
  To: mss59; +Cc: linuxppc-embedded


mss59@att.net wrote:
> Is there any memory profiling and leak detection tool available which
> works for both PPC and X86??

Here's what I know about.
1. There's a utility built into glibc which may be of some help:
http://www.gnu.org/manual/glibc-2.2.5/html_node/Allocation-Debugging.html#Allocation%20Debugging
but it's a bit minimal.

2. x86 only - valgrind, of course.  God's gift to x86 programmers.  Shame
it's not been ported to ppc.

3. libmudflap.  This is very promising; see
http://people.redhat.com/dnovillo/Papers/nordu2003-slides.pdf
http://www.linux.org.uk/~ajh/gcc/gccsummit-2003-proceedings.pdf
However, it's part of the SSA branch of gcc-3.4, so you'll need to use
something like http://kegel.com/crosstool to build it.
I am hoping to try this out on ppc sometime, but haven't yet.
FWIW, it's provided with Red Hat's taroon beta, so it must
be getting close to usable.

If you're debugging c++, you should also read
http://gcc.gnu.org/onlinedocs/libstdc++/debug.html
- Dan

--
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Memory Profiling Tool
@ 2003-09-03 15:00 Keith Pickens
  0 siblings, 0 replies; 5+ messages in thread
From: Keith Pickens @ 2003-09-03 15:00 UTC (permalink / raw)
  To: mss59; +Cc: linuxppc-embedded


Parasoft Insure++ supports both x86 and PPC.

	-keith


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Memory Profiling Tool
  2003-09-02 13:43 mss59
  2003-09-02 20:51 ` Dan Kegel
@ 2003-09-04  5:58 ` Der Herr Hofrat
  2003-09-04 14:42   ` Dan Kegel
  1 sibling, 1 reply; 5+ messages in thread
From: Der Herr Hofrat @ 2003-09-04  5:58 UTC (permalink / raw)
  To: mss59; +Cc: linuxppc-embedded


>
> Is there any memory profiling and leak detection tool available which works
> for both PPC and X86??

bgcc - bounds checking gcc - its a patch to gcc

the output will look something like this but can be tuned with compile time options:

Bounds Checking GCC v gcc-3.2.2-3.1 Copyright (C) 1995 Richard W.M. Jones
Bounds Checking comes with ABSOLUTELY NO WARRANTY. For details see file
`COPYING' that should have come with the source to this program.
Bounds Checking is free software, and you are welcome to redistribute it
under certain conditions. See the file `COPYING' for details.
For more information, set GCC_BOUNDS_OPTS to `-help'
Bounds library call frequency statistics:
  Calls to push, pop, param function:        1, 1, 0
  Calls to add, delete stack:                1, 1
  Calls to add, delete heap:                 1, 0
                                             ^^^^
                                       malloc but no free..

  Calls to check pointer +/- integer:        0
  Calls to check array references:           0
  Calls to check pointer differences:        0
  Calls to check object references:          0
  Calls to check component references:       0
  Calls to check truth, falsity of pointers: 0, 0
  Calls to check <, >, <=, >= of pointers:   0
  Calls to check ==, != of pointers:         0
  Calls to check p++, ++p, p--, --p:         0, 0, 0, 0
  References to unchecked static, stack:     0, 0

hofrat

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Memory Profiling Tool
  2003-09-04  5:58 ` Der Herr Hofrat
@ 2003-09-04 14:42   ` Dan Kegel
  0 siblings, 0 replies; 5+ messages in thread
From: Dan Kegel @ 2003-09-04 14:42 UTC (permalink / raw)
  To: Der Herr Hofrat; +Cc: mss59, linuxppc-embedded


Der Herr Hofrat wrote:
>>Is there any memory profiling and leak detection tool available which works
>>for both PPC and X86??
>
> bgcc - bounds checking gcc - its a patch to gcc
>
> the output will look something like this but can be tuned with compile time options:
>
> Bounds Checking GCC v gcc-3.2.2-3.1 Copyright (C) 1995 Richard W.M. Jones ...

Hey!  I didn't know that was still alive!  Thanks for the tip!
There's even a version for gcc-3.3.1 at
http://web.inter.nl.net/hcc/Haj.Ten.Brugge/

- Dan

--
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-09-04 14:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-03 15:00 Memory Profiling Tool Keith Pickens
  -- strict thread matches above, loose matches on Subject: below --
2003-09-02 13:43 mss59
2003-09-02 20:51 ` Dan Kegel
2003-09-04  5:58 ` Der Herr Hofrat
2003-09-04 14:42   ` Dan Kegel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox