public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [QUESTION] Is there a better way to get ftrace dump on guest?
@ 2016-06-28  6:25 Namhyung Kim
  2016-06-28  6:33 ` Namhyung Kim
  0 siblings, 1 reply; 10+ messages in thread
From: Namhyung Kim @ 2016-06-28  6:25 UTC (permalink / raw)
  To: kvm, Steven Rostedt; +Cc: lkml, Minchan Kim

Hello,

I'm running some guest machines for kernel development.  For debugging
purpose, I use lots of trace_printk() since it's faster than normal
printk().  When kernel crash happens the trace buffer is printed on
console (I set ftrace_dump_on_oops) but it takes too much time.  I
don't want to reduce the size of ring buffer as I want to collect the
debug info as much as possible.  And I also want to see trace from all
cpu so 'ftrace_dump_on_oop = 2' is not an option.

I know the kexec/kdump (and the crash tool) can dump and analyze the
trace buffer later.  But it's cumbersome to do it everytime and more
importantly, I don't want to spend the memory for the crashkernel.

So what is the best way to handle this?  I'd like to know how others
setup the debugging environment..

Thanks,
Namhyung

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-07-01  4:27 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-28  6:25 [QUESTION] Is there a better way to get ftrace dump on guest? Namhyung Kim
2016-06-28  6:33 ` Namhyung Kim
2016-06-28 13:57   ` Steven Rostedt
2016-06-29  0:52     ` Namhyung Kim
2016-07-01  4:27       ` Namhyung Kim
2016-06-28 16:46   ` Rabin Vincent
2016-06-29  0:57     ` Minchan Kim
2016-06-29  1:26       ` Steven Rostedt
2016-07-01  4:05         ` Namhyung Kim
2016-06-29  1:49     ` Namhyung Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox