Re: memguard monitoring of more than 1 memory_type?

From: Pawel Jakub Dawidek <pjd_at_FreeBSD.org>
Date: Thu, 9 Feb 2006 22:55:14 +0100
On Tue, Feb 07, 2006 at 11:14:08AM -0800, Steve Kargl wrote:
+> On Tue, Feb 07, 2006 at 10:01:21PM +0300, Yar Tikhiy wrote:
+> > On Tue, Feb 07, 2006 at 10:31:52AM -0800, Steve Kargl wrote:
+> > > Can memguard monitor the usage of more that one memory_type?
+> > 
+> > From the memguard(9) manpage:
+> > 
+> >      Currently, MemGuard can only take over malloc(), realloc() and free() for
+> >      a particular malloc type.
+> 
+> Thanks for pointing out the obvious.   I've read that manpage several
+> times and somehow missed the word "particular".   It's unfortunate
+> that it can't monitor more than one type of memory allocation because
+> the new pts code has either uncovered a latent bug in devfs or the
+> pts patch is stomping on memory.

It shouldn't be hard to implement. You need to change function
memguard_cmp() in sys/vm/memguard.c, which decides which memory type
should be monitored.

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd_at_FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

Received on Thu Feb 09 2006 - 20:55:51 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:52 UTC