|
From: <rag...@wi...> - 2007-02-15 03:43:26
|
Hi All,
=20
I need to find out memory leak or any such bugs in my code written
for a switch(Layer-2 operated network switches). Its mips architecture,
which uses linux. My doubts are as below.
=20
1. can i cross compile and use the tool directly on the switch shell as
we do in linux machine. I mean in order to know memory leak in some
a.out I use following command in linux.=20
=20
valgrind --tool=3Dmemcheck --time-stamp=3Dyes --leak-check=3Dfull =
./a.out
=20
Since on switch my code runs as a thread, can any one tell me how to
I run valgrind for a thread?
=20
2. Is there any such tool available of eCos?
=20
Thanx in Advance.
=20
---Raghu.
=20
|
|
From: Olly B. <ol...@su...> - 2007-02-15 04:28:54
|
On 2007-02-15, <rag...@wi...> wrote: > I need to find out memory leak or any such bugs in my code written > for a switch(Layer-2 operated network switches). Its mips architecture, > which uses linux. Valgrind doesn't support MIPS: http://valgrind.org/info/platforms.html Perhaps you can compile the code for a supported processor and run it under valgrind on a machine with that architecture, though I suspect that would be a struggle if it's written for an embedded application and expecting particular hardware... Cheers, Olly |