[sr-dev] git:master: malloc_test: realloc testing support

Andrei Pelinescu-Onciul andrei at iptel.org
Fri Mar 12 19:43:56 CET 2010


Module: sip-router
Branch: master
Commit: c05afff1bc452d55536c2277f39c52c17cb29ff0
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c05afff1bc452d55536c2277f39c52c17cb29ff0

Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date:   Fri Mar 12 19:38:42 2010 +0100

malloc_test: realloc testing support

Support for stress testing realloc:
 - new config variable realloc_p for enabling realloc() usage
   instead of malloc() for mem tests and mem_rnd_alloc. Its value
   is the percent of realloc()s from the total calls to alloc
   functions (0-90%).
 - new RPC: mt.mem_realloc size [unit]  for manually triggering
   a  realloc.

---

 modules/malloc_test/malloc_test.c |  172 +++++++++++++++++++++++++++++++++----
 1 files changed, 155 insertions(+), 17 deletions(-)

Diff:   http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=c05afff1bc452d55536c2277f39c52c17cb29ff0



More information about the sr-dev mailing list