Messages in this thread | | | Date | Sat, 7 Jul 2007 16:38:43 -0700 (PDT) | From | Linus Torvalds <> | Subject | Re: 2.6.22-rc7: known regressions with patches v2 |
| |
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 majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |