Skip to content

melintea/kpcdumper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kpcdumper - a mechanism to dump core files from within an application without killing it

It consist of a kernel module which will run gdb gcore on demand from the application.

Usage:

  • build
  • insert the kernel module
  • create the dump device
  • link the app with the static library
  • call dump_core()

Build

  • Needs a C11 compiler
  • Change the makefile and the header as needed
  • make

Caveats

  • The thread calling dump_core will wait until the dump completes. Other threads in the application will continue running for a few jiffies after that call is entered, until the module SIGSTOPs the program.
  • YMMV with different kernel versions.
  • Secure Boot, selinux and such might interfere with.

Similar tools & various links

About

Let processes dump core and survive it.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors