how can i check memeory leaks in io-net ???

Hi,

I suspect that my network driver has memory leaks.
I read about malloc_g, but, it looks like malloc_g can replace the malloc
and not the
->alloc
->alloc_down_npkt

alloc_up_npkt

  1. am i right?
  2. is there any tool to check memory leaks for allocation made from the
    io_net_self_t allocation functions?



    Cheers
    ==============================
    Benzy Gabay

Hi,
May be you have taken care of it but let me confirm.Are you calling the
reg_tx_done() ? You are responsible for deallocating the packet when it is
transmitted out.I had faced this problem once.Make sure you have to have a
reg_tx_done() call for a corresponding alloc_down/up_npkt().In the
rx_done.You might even try to post the code snippet here so that people can
figure out any problems.


Hope it helps

Sreekanth

“Benzy Gabay” <bgabay@everbeewireless.com> wrote in message
news:9vqha8$l7g$1@nntp.qnx.com

Hi,

I suspect that my network driver has memory leaks.
I read about malloc_g, but, it looks like malloc_g can replace the malloc
and not the
->alloc
->alloc_down_npkt
alloc_up_npkt

  1. am i right?
  2. is there any tool to check memory leaks for allocation made from the
    io_net_self_t allocation functions?



    Cheers
    ==============================
    Benzy Gabay

Sreekanth,

I’ve done already reg_tx_done() && tx_done.
Also I’m using the allocation function that you mentioned too.

any more ideas?


Cheers

Benzy Gabay
R&D, IPSec team
Everbee Wireless http://www.everbeewireless.com
Tel: + 972 9 956 01 35 Fax: + 972 9 955 96 54
mailto: bgabay@everbeewireless.com
“Sreekanth” <sreekanth@cambira.com> wrote in message
news:9vqjg6$20u$1@inn.qnx.com

Hi,
May be you have taken care of it but let me confirm.Are you calling
the
reg_tx_done() ? You are responsible for deallocating the packet when it is
transmitted out.I had faced this problem once.Make sure you have to have
a
reg_tx_done() call for a corresponding alloc_down/up_npkt().In the
rx_done.You might even try to post the code snippet here so that people
can
figure out any problems.


Hope it helps

Sreekanth

“Benzy Gabay” <> bgabay@everbeewireless.com> > wrote in message
news:9vqha8$l7g$> 1@nntp.qnx.com> …
Hi,

I suspect that my network driver has memory leaks.
I read about malloc_g, but, it looks like malloc_g can replace the
malloc
and not the
->alloc
->alloc_down_npkt
alloc_up_npkt

  1. am i right?
  2. is there any tool to check memory leaks for allocation made from the
    io_net_self_t allocation functions?



    Cheers
    ==============================
    Benzy Gabay

    \