From mboxrd@z Thu Jan 1 00:00:00 1970 From: Namhyung Kim Subject: [QUESTION] Is there a better way to get ftrace dump on guest? Date: Tue, 28 Jun 2016 15:25:14 +0900 Message-ID: <20160628062514.GA4674@danjae.aot.lge.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: lkml@vger.kernel.org, Minchan Kim To: kvm@vger.kernel.org, Steven Rostedt Return-path: Received: from mail-pa0-f54.google.com ([209.85.220.54]:34115 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750710AbcF1G0A (ORCPT ); Tue, 28 Jun 2016 02:26:00 -0400 Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: 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