Hi mates, I am working on "Creation of Postmortem data logger on Linux platform.". It is nothing but coredump utility creation manually on the basis of user needs.I got the call flow mechanism of core dump file creation in RHEL version: 220.127.116.11-el5. It follows as:
File Function called
1.source/ arch/i386/kernel/signal.c -----> do_signal( )
2.source/kernel/signal.c ----------> get_signal_to_deliver( )
3.source/fs/exec.c -------------> do_coredump( )
4.source/fs/binfmt_elf.c -------------> elf_core_dump( )
Now,as per project requirements, i need to modify the default signal handler definitions with my own user defined signal handler that handles various exceptions (SIGSEGV, SIGFPE, SIGABRT etc) causing coredump. Further, i need to build the kernel for keeping the changes in kernel with my handler replacing default handler.
Can anybody please share the proceedings to do those operations ?
Advance thanks to all repliers