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/
From: Der Herr Hofrat <hidden> Date: 2003-09-04 05:58:32
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/
From: John Zhou <hidden> Date: 2003-09-04 11:02:49
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/
From: Dan Kegel <hidden> Date: 2003-09-04 14:42:16
Der Herr Hofrat wrote:
quoted
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 ...
From: John Zhou <hidden> Date: 2003-09-05 08:26:02
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/
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
From: John Zhou <hidden> Date: 2003-09-05 09:23:24
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
From: Mark Hatle <hidden> Date: 2003-09-05 16:39:38
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:
quoted
Jaap-Jan wrote:
quoted
On vrijdag, sep 5, 2003, at 10:26 Europe/Amsterdam, John Zhou wrote:
quoted
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 ?