<p>Kex module updated to also give some details about memory used by each module.<br>
Changed f_<em>, q_</em> and tlsf_* memory stubs to also include the module name.<br>
Added 2 new memory API functions(for each of the memory algos) which will<br>
iterate throughout the memory fragments and agregate the memory size used by<br>
each function in order to print it.<br>
Tested with MEMMNG=0,1,2 and MEMDBG=0,1. Use "kamcmd mem.stat mod_name pkg/shm/all" to test<br>
Updated doku.</p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/kamailio/kamailio/pull/225'>https://github.com/kamailio/kamailio/pull/225</a></p>
<h4>Commit Summary</h4>
<ul>
<li>kex: per module memory debugging</li>
</ul>
<h4>File Changes</h4>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/kamailio/kamailio/pull/225/files#diff-0">events.c</a>
(25)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/kamailio/kamailio/pull/225/files#diff-1">events.h</a>
(4)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/kamailio/kamailio/pull/225/files#diff-2">mem/f_malloc.c</a>
(135)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/kamailio/kamailio/pull/225/files#diff-3">mem/f_malloc.h</a>
(47)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/kamailio/kamailio/pull/225/files#diff-4">mem/mem.h</a>
(32)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/kamailio/kamailio/pull/225/files#diff-5">mem/q_malloc.c</a>
(113)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/kamailio/kamailio/pull/225/files#diff-6">mem/q_malloc.h</a>
(40)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/kamailio/kamailio/pull/225/files#diff-7">mem/shm_mem.c</a>
(4)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/kamailio/kamailio/pull/225/files#diff-8">mem/shm_mem.h</a>
(32)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/kamailio/kamailio/pull/225/files#diff-9">mem/src_loc.h</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/kamailio/kamailio/pull/225/files#diff-10">mem/tlsf.c</a>
(105)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/kamailio/kamailio/pull/225/files#diff-11">mem/tlsf.h</a>
(32)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/kamailio/kamailio/pull/225/files#diff-12">modules/ctl/binrpc_run.c</a>
(12)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/kamailio/kamailio/pull/225/files#diff-13">modules/kex/doc/kex_admin.xml</a>
(76)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/kamailio/kamailio/pull/225/files#diff-14">modules/kex/kex_mod.c</a>
(7)
</li>
<li>
<strong>A</strong>
<a href="https://github.com/kamailio/kamailio/pull/225/files#diff-15">modules/kex/mod_stats.c</a>
(288)
</li>
<li>
<strong>A</strong>
<a href="https://github.com/kamailio/kamailio/pull/225/files#diff-16">modules/kex/mod_stats.h</a>
(37)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/kamailio/kamailio/pull/225.patch'>https://github.com/kamailio/kamailio/pull/225.patch</a></li>
<li><a href='https://github.com/kamailio/kamailio/pull/225.diff'>https://github.com/kamailio/kamailio/pull/225.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/pull/225">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZT0GtjL4T3h9LtemznsxWFwSFvzoks5oYVKpgaJpZM4FOLp0.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/kamailio/kamailio/pull/225"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>