BUG() shortcomings
Having run into BUG()s a number of times recently, I realized that other than on Linux under Xen the register state dumped in this case is mostly unrelated to the actual registers that were in effect when the macro was invoked. This is rather unfortunate, as without the register state it usually requires being able to reproduce the problem after having added extra debug code. Would it therefore be acceptable to make BUG() work more Linux-like?
Thanks, Jan
Quoted 6 lines · Jan Beulich
Having run into BUG()s a number of times recently, I realized that other than on Linux under Xen the register state dumped in this case is mostly unrelated to the actual registers that were in effect when the macro was invoked. This is rather unfortunate, as without the register state it usually requires being able to reproduce the problem after having added extra debug code. Would it therefore be acceptable to make
BUG()work more Linux-like?
Yes, could be handy.
-- Keir