lkml.org 
[lkml]   [2010]   [Dec]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[Patch 7/21] Define API for reading arch specif Program Headers for Core
    The binfmt ELF defines APIs for the "arch" specific Program headers to be 
    written to the ELF core. Define the "read" (or copy) variants of the APIs, to
    collect it for the application core dump(which is a read based approach).

    Signed-off-by: Suzuki K. Poulose <suzuki@in.ibm.com>
    ---
    include/linux/elfcore.h | 3 +++
    kernel/elfcore.c | 6 ++++++
    2 files changed, 9 insertions(+)

    Index: linux-2.6.36-rc7/include/linux/elfcore.h
    ===================================================================
    --- linux-2.6.36-rc7.orig/include/linux/elfcore.h
    +++ linux-2.6.36-rc7/include/linux/elfcore.h
    @@ -163,6 +163,9 @@ extern int
    elf_core_write_extra_phdrs(struct file *file, loff_t offset, size_t *size,
    unsigned long limit);
    extern int
    +elf_core_copy_extra_phdrs(char *buf, loff_t offset, size_t *size,
    + unsigned long limit);
    +extern int
    elf_core_write_extra_data(struct file *file, size_t *size, unsigned long limit);
    extern size_t elf_core_extra_data_size(void);

    Index: linux-2.6.36-rc7/kernel/elfcore.c
    ===================================================================
    --- linux-2.6.36-rc7.orig/kernel/elfcore.c
    +++ linux-2.6.36-rc7/kernel/elfcore.c
    @@ -16,6 +16,12 @@ int __weak elf_core_write_extra_phdrs(st
    return 1;
    }

    +int __weak elf_core_copy_extra_phdrs(char *buf, loff_t offset, size_t *size,
    + unsigned long limit)
    +{
    + return 1;
    +}
    +
    int __weak elf_core_write_extra_data(struct file *file, size_t *size,
    unsigned long limit)
    {

    \
     
     \ /
      Last update: 2010-12-14 11:07    [W:0.021 / U:29.888 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site