On Thu, Oct 28, 2010 at 02:24, Sankar P <sankar.curiosity@xxxxxxxxx> wrote: > Hi Dave, Rajat, Mulyadi and everyone, > > > Thanks for your pointers. > > Now I removed the "static __init" from the hello_init function and I > got an output of: > > unreferenced object 0xf9042000 (size 512): > comm "insmod", pid 12068, jiffies 13995923 (age 51.096s) > hex dump (first 32 bytes): > 6f 64 75 6c 65 00 00 00 00 00 00 2e 73 79 6d 74 odule.......symt > 61 62 00 2e 73 74 72 74 61 62 00 2e 73 68 73 74 ab..strtab..shst > backtrace: > [<c10b0001>] create_object+0x114/0x1db > [<c148b4d0>] kmemleak_alloc+0x21/0x3f > [<c10a43e9>] __vmalloc_node+0x83/0x90 > [<c10a44b9>] vmalloc+0x1c/0x1e > [<f9036021>] init_module+0x21/0x2f [hello_kernel] Cool! :) So you basically helped yourself already :) OK, so "static" helps? Symbol exports then. You made it static, the name isn't put into symbol table...kmemleak can't spell it out. Thanks for sharing your result too... :) -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ