On Tue, Apr 15, 2008 at 2:37 PM, Antoine Brodin <antoine@freebsd.org> wrote:
> On Mon, Apr 14, 2008 at 9:18 PM, Volker <volker@vwsoft.com> wrote:
> > Hi hackers!
> >
> > I need to hunt kernel memory allocations done by a kld. Unfortunately
> > the kld in question is a blob, no access to source code, so I need to
> > check for kmem_alloc() + kmem_malloc() + kmem_free() and print
> > information from there to the console screen.
>
> Hi Volker,
>
> You could patch your kld (hexadecimal editor or something like that)
> to call wrappers around the interesting functions that print the
> arguments.
"objcopy --redefine-syms" seems to be easier to use than a hexadecimal editor.
Cheers,
Antoine
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"