I wrote this patch around '93 just after my malloc made it into the
kernel. I've redone it twice to match current kernels.
> Might I suggest adding a 'magic sequence' bracketing your tags as well?
> Then a user-mode binary grep through /dev/kmem could identify potential
> trouble areas. Not 100% accurate, of course, but should grab any
> significant growing leaks due to a single source.
My patch simply has a /proc/debug-kmalloc file. It contains all
"currently in use" memory blobs, including the number of bytes requested,
the file name where the alloc was done, the line number and the first 10
bytes of the allocated region......
Roger.
-- ** R.E.Wolff@BitWizard.nl ** +31-15-2137555 ** http://www.BitWizard.nl/ ** Florida -- A 39 year old construction worker woke up this morning when a 109-car freight train drove over him. According to the police the man was drunk. The man himself claims he slipped while walking the dog. 080897