On Sat, 7 Jul 2007, Christoph Lameter wrote:
>
> What are these functions "malloc" and "free"? Would be good if those
> would be using kmalloc_track_caller() so that we can figure out who called
> them.
There's not a lot of those around. Looks like it's probably one of
init/do_mounts_rd.c:static void __init *malloc(size_t size)
init/initramfs.c:static void __init *malloc(size_t size)
both of which exist just because those things include "lib/inflate.c".
It's probably do_mounts_rd.c, because initramfs.c defines malloc/free
before the #include, and I would have expected gcc to just inline them in
that case.
That's probably the right thign to do in do_mounts_rd.c too, rather than
adding any kmalloc_track_caller() stuff.
Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]