Re: [RFC,PATCH 2/2] perf, x86: Utilize the LBRs for machine/oopsdebugging
From: Ingo Molnar
Date: Fri Apr 02 2010 - 16:45:11 EST
* Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
> On Mon, 2010-03-29 at 19:02 +0200, Ingo Molnar wrote:
>
> > Plus, it would be nice to have a sysctl entry for this as well - so that
> > production systems can enable this if they want to enrich the output of
> > some difficult-to-analyze kernel crash, without yet another reboot.
>
> Right, could do, but once it crashed it clearly to late to enable anything
> ;-)
No. What i mean is that with your patch, a debugging session would go like
this:
< kernel crashes > # reboot #1
< admin logs in and scratches head >
< admin consults kernel hackers and enables lbr_debug=1 in /etc/grub.conf >
< admin reboots > # reboot #2
< kernel crashes again > # reboot #3
With the sysctl we'd have one reboot less:
< kernel crashes > # reboot #1
< admin logs in and scratches head >
< admin consults kernel hackers and tweaks /proc/sys/kernel/x86/lbr_debug >
< kernel crashes again > # reboot #2
Thanks,
Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/