All of 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 ` Memory Profiling Tool Der Herr Hofrat
  0 siblings, 2 replies; 11+ 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] 11+ messages in thread

* Re: Memory Profiling Tool
  2003-09-02 13:43 Memory Profiling Tool mss59
@ 2003-09-02 20:51 ` Dan Kegel
  2003-09-04 11:02   ` Is there any tool like purify(memory leak check tool) for Embedded Linux/ELDK environment John Zhou
  2003-09-04  5:58 ` Memory Profiling Tool Der Herr Hofrat
  1 sibling, 1 reply; 11+ 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] 11+ messages in thread

* RE: Memory Profiling Tool
@ 2003-09-03 15:00 Keith Pickens
  0 siblings, 0 replies; 11+ 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] 11+ messages in thread

* Re: Memory Profiling Tool
  2003-09-02 13:43 Memory Profiling Tool 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; 11+ 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] 11+ messages in thread

* Is there any tool like purify(memory leak check tool) for Embedded Linux/ELDK environment
  2003-09-02 20:51 ` Dan Kegel
@ 2003-09-04 11:02   ` John Zhou
  0 siblings, 0 replies; 11+ messages in thread
From: John Zhou @ 2003-09-04 11:02 UTC (permalink / raw)
  To: linuxppc-embedded


Dear all,

Is there any tool like purify(memory leak check tool) for Embedded Linux/ELDK environment?

Best Regards,
John Zhou

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

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

* Re: Memory Profiling Tool
  2003-09-04  5:58 ` Memory Profiling Tool Der Herr Hofrat
@ 2003-09-04 14:42   ` Dan Kegel
  2003-09-05  8:26     ` display top CPU processes top tool John Zhou
  0 siblings, 1 reply; 11+ 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] 11+ messages in thread

* display top CPU processes top tool
  2003-09-04 14:42   ` Dan Kegel
@ 2003-09-05  8:26     ` John Zhou
  2003-09-05  9:02       ` Jaap-Jan Boor
  0 siblings, 1 reply; 11+ messages in thread
From: John Zhou @ 2003-09-05  8:26 UTC (permalink / raw)
  To: linuxppc-embedded


Hi, all

I'm using "top" tool to display top CPU processes and system running information in my Embedded Linux based on PowerPC. But, when I run "top" command in prompt #, it's coming on:

# set
PS2=>
PS1=#
IFS=
USER=root
SHELL=/bin/sh
PATH=/usr/bin:/bin:/usr/sbin:/sbin
HOME=/
TERM=ansi
#
# top
top: Unknown terminal "ansi" in $TERM
#

I changed to :

# export TERM=VT100
# set
PS2=>
PS1=#
IFS=
USER=root
SHELL=/bin/sh
PATH=/usr/bin:/bin:/usr/sbin:/sbin
HOME=/
TERM=VT100
# top
top: Unknown terminal "VT100" in $TERM
#

Another question:

How to use "top" with option to save cpu information to a log file?

Thanks for any help.

John Zhou

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

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

* Re: display top CPU processes top tool
  2003-09-05  8:26     ` display top CPU processes top tool John Zhou
@ 2003-09-05  9:02       ` Jaap-Jan Boor
  2003-09-05  9:23         ` John Zhou
  0 siblings, 1 reply; 11+ messages in thread
From: Jaap-Jan Boor @ 2003-09-05  9:02 UTC (permalink / raw)
  To: zjzhou; +Cc: linuxppc-embedded


Do you have a /etc/TERMCAP ?

On vrijdag, sep 5, 2003, at 10:26 Europe/Amsterdam, John Zhou wrote:

>
> Hi, all
>
> I'm using "top" tool to display top CPU processes and system running
> information in my Embedded Linux based on PowerPC. But, when I run
> "top" command in prompt #, it's coming on:
>
> # set
> PS2=>
> PS1=#
> IFS=
> USER=root
> SHELL=/bin/sh
> PATH=/usr/bin:/bin:/usr/sbin:/sbin
> HOME=/
> TERM=ansi
> #
> # top
> top: Unknown terminal "ansi" in $TERM
> #
>
> I changed to :
>
> # export TERM=VT100
> # set
> PS2=>
> PS1=#
> IFS=
> USER=root
> SHELL=/bin/sh
> PATH=/usr/bin:/bin:/usr/sbin:/sbin
> HOME=/
> TERM=VT100
> # top
> top: Unknown terminal "VT100" in $TERM
> #
>
> Another question:
>
> How to use "top" with option to save cpu information to a log file?
>
> Thanks for any help.
>
> John Zhou
>


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

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

* RE: display top CPU processes top tool
  2003-09-05  9:02       ` Jaap-Jan Boor
@ 2003-09-05  9:23         ` John Zhou
  2003-09-05 16:00           ` Dan Kegel
  0 siblings, 1 reply; 11+ messages in thread
From: John Zhou @ 2003-09-05  9:23 UTC (permalink / raw)
  To: 'Jaap-Jan Boor'; +Cc: linuxppc-embedded


Yes. I have a /etc/TERMCAP. But it's still failed. need other changes ?

Thanks for your email.

-----Original Message-----
From: owner-linuxppc-embedded@lists.linuxppc.org
[mailto:owner-linuxppc-embedded@lists.linuxppc.org]On Behalf Of Jaap-Jan
Boor
Sent: Friday, September 05, 2003 5:02 PM
To: zjzhou@newrocktech.com
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: display top CPU processes top tool



Do you have a /etc/TERMCAP ?

On vrijdag, sep 5, 2003, at 10:26 Europe/Amsterdam, John Zhou wrote:

>
> Hi, all
>
> I'm using "top" tool to display top CPU processes and system running
> information in my Embedded Linux based on PowerPC. But, when I run
> "top" command in prompt #, it's coming on:
>
> # set
> PS2=>
> PS1=#
> IFS=
> USER=root
> SHELL=/bin/sh
> PATH=/usr/bin:/bin:/usr/sbin:/sbin
> HOME=/
> TERM=ansi
> #
> # top
> top: Unknown terminal "ansi" in $TERM
> #
>
> I changed to :
>
> # export TERM=VT100
> # set
> PS2=>
> PS1=#
> IFS=
> USER=root
> SHELL=/bin/sh
> PATH=/usr/bin:/bin:/usr/sbin:/sbin
> HOME=/
> TERM=VT100
> # top
> top: Unknown terminal "VT100" in $TERM
> #
>
> Another question:
>
> How to use "top" with option to save cpu information to a log file?
>
> Thanks for any help.
>
> John Zhou
>


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

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

* Re: display top CPU processes top tool
  2003-09-05  9:23         ` John Zhou
@ 2003-09-05 16:00           ` Dan Kegel
  2003-09-05 16:39             ` Mark Hatle
  0 siblings, 1 reply; 11+ messages in thread
From: Dan Kegel @ 2003-09-05 16:00 UTC (permalink / raw)
  To: zjzhou; +Cc: 'Jaap-Jan Boor', linuxppc-embedded


John Zhou wrote:
> Jaap-Jan wrote:
>> On vrijdag, sep 5, 2003, at 10:26 Europe/Amsterdam, John Zhou wrote:
>>>top: Unknown terminal "ansi" in $TERM
>>>top: Unknown terminal "VT100" in $TERM
>>
>> Do you have a /etc/TERMCAP ?
>
> Yes. I have a /etc/TERMCAP. But it's still failed. need other changes ?

Use strace to see what it's looking for.
- 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] 11+ messages in thread

* Re: display top CPU processes top tool
  2003-09-05 16:00           ` Dan Kegel
@ 2003-09-05 16:39             ` Mark Hatle
  0 siblings, 0 replies; 11+ messages in thread
From: Mark Hatle @ 2003-09-05 16:39 UTC (permalink / raw)
  To: Dan Kegel; +Cc: zjzhou, 'Jaap-Jan Boor', linuxppc-embedded


I bet that top is linked with ncurses instead of termcap.  As such look
at /usr/share/terminfo on the target and make sure the appropriate
directories and terminal emulations are there.

--Mark

Dan Kegel wrote:
>
> John Zhou wrote:
>
>> Jaap-Jan wrote:
>>
>>> On vrijdag, sep 5, 2003, at 10:26 Europe/Amsterdam, John Zhou wrote:
>>>
>>>> top: Unknown terminal "ansi" in $TERM
>>>> top: Unknown terminal "VT100" in $TERM
>>>
>>>
>>> Do you have a /etc/TERMCAP ?
>>
>>
>> Yes. I have a /etc/TERMCAP. But it's still failed. need other changes ?
>
>
> Use strace to see what it's looking for.
> - 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] 11+ messages in thread

end of thread, other threads:[~2003-09-05 16:39 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-02 13:43 Memory Profiling Tool mss59
2003-09-02 20:51 ` Dan Kegel
2003-09-04 11:02   ` Is there any tool like purify(memory leak check tool) for Embedded Linux/ELDK environment John Zhou
2003-09-04  5:58 ` Memory Profiling Tool Der Herr Hofrat
2003-09-04 14:42   ` Dan Kegel
2003-09-05  8:26     ` display top CPU processes top tool John Zhou
2003-09-05  9:02       ` Jaap-Jan Boor
2003-09-05  9:23         ` John Zhou
2003-09-05 16:00           ` Dan Kegel
2003-09-05 16:39             ` Mark Hatle
  -- strict thread matches above, loose matches on Subject: below --
2003-09-03 15:00 Memory Profiling Tool Keith Pickens

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.