Return to BSD News archive
Newsgroups: comp.unix.bsd.bsdi.misc Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.uwa.edu.au!classic.iinet.com.au!swing.iinet.net.au!news.uoregon.edu!gatech!news.sprintlink.net!cs.utexas.edu!utnut!cannon.ecf!stoddar From: stoddar@ecf.toronto.edu (STODDARD WALTER B) Subject: BSDI free()/malloc() X-Nntp-Posting-Host: skule.ecf Message-ID: <DGnI4w.2rC@ecf.toronto.edu> Sender: news@ecf.toronto.edu (News Administrator) Organization: University of Toronto, Engineering Computing Facility Date: Wed, 18 Oct 1995 15:38:55 GMT Lines: 14 Hi, I'm working on some code that will be running on a BSDI box. Anyway, what I'd like to do is to monitor the use of memory allocated by the malloc/calloc/realloc/strdup/free calls. Is the code for malloc in BSDI the same as in: ftp.cdrom.com:/pub/bsd-sources/4.4BSD-Lite/usr/src/lib/libc/stdlib/malloc.c? is it possible/permissible to access these kernel structures (struct overhead)? is there a system call that will return the amount of memory allocated out to each chunk returned by malloc? thanks, bjl