lkml.org 
[lkml]   [2007]   [Jul]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: 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/

    \
     
     \ /
      Last update: 2007-07-08 01:43    [W:0.029 / U:148.256 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site