> panic() is the only place where kdump gets a chance to run first and
To be fully clear panic() that is called outside oops/exception context
s/panic/die notifiers/
Yes a kernel debugger should be able to hook into panic()
In fact it can do that already by just setting a break point,
but clearly having a real notifier is preferable.
The use case would be then that the kernel debugger would
have some command to trigger a dump.
kgdb is already merged. Also the x86 notifiers are general
enough that there are a couple of debuggers floating around
that are just using existing interfaces (as in need very little in terms
of core patching)
Yes it would, but right now there is no such hook. Also if there
was such a hook kdump could use it like everyone else.
There's a priority scheme in notifiers so you can still run usually last.
-Andi
--