I am trying to use trace-cmd
to gather more information about a kernel crash that I am seeing. Unfortunately, kernel crashes with "kernel panic - not syncing" message (i.e. socket and file buffers are not flushed so whatever was in the buffers at the time of crash is inevitably lost).
Is there a way to:
- force
trace-cmd
process to flush its buffers to filesystem or sockets? OR - make trace-cmd/ftrace to avoid buffering (ie call printk() behind scenes and use netconsole)?
Since I am running that trace-cmd
command in virtualized environment then I don't care that hard drive may occasionally get corrupted, because I can simply revert to last good snapshot or redeploy the VM.