On 29 December 2016 at 02:38, Ante Vojvodic <[email protected]> wrote:
> Start kernel with debugger
> Once we hit kmdb enter: 'moddebug/W 0xf0000001' and then just keep going with
> ':c' until "apix" module is loaded.
> Now we need to disable panic on nmi and enable kmdb on nmi event. Enter
> following command in debugger: 'apic_panic_on_nmi/w0' and
> 'apic_kmdb_on_nmi/w1'.
> And keep going with ':c' until kernel hangs.
Perhaps a bit less fiddly, for the future:
::bp apix`_init
:c
This will set a breakpoint on the entrypoint for the "apix" module,
stopping the system before the module is able to do anything. You can
adjust any globals (such as "apic_kmdb_on_nmi") at this point, and
then continue with ":c".
Cheers.
--
Joshua M. Clulow
UNIX Admin/Developer
http://blog.sysmgr.org
-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription:
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com