[lkml]   [2005]   [Aug]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [HELP] How to get address of module
    > > I'm looking for *nice* way to get address of loaded module in 2.6.
    > > I'd like to know the address from driver.
    > Maybe explaining why you need the address of a module would help.

    I'm currently writing a driver to diagnose/monitor the error, such as
    core dump.

    I inserted some hook in kernel, and when segfault occurs, control is
    transfered to my driver to analyze.

    If the cause is in some insmod'ed module, then I would like to get
    info of that module. If I get the address of that module, I can get
    info such as symbol name defined by that module, etc. Then I could say
    in module mmm, at func fff, at addr xxx, there is segfault.

    Core dump could be in userspace app, so, in the driver I'm writting now,
    I'm using same data structure to hold info of ELF file. If it was in app,
    I'm getting address from current->mm->mmap->vm_start.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-08-08 14:13    [W:0.020 / U:225.392 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site