Naveen N. Rao wrote:
This series addresses the crash reported by Qian Cai on ppc64le with
-mprofile-kernel here:
https://lore.kernel.org/r/15AC5B0E-A221-4B8C-9039-FA96B8EF7C88@lca.pw (local)
While fixing patch_instruction() should address the crash, we should
still change the default stub we setup for _mcount() for cases where a
kernel is built without ftrace.
I notice that I didn't write that properly yesterday. I meant that this
is required for cases where ftrace gets disabled for any reason,
resulting in the default calls to _mcount() remaining in the kernel
modules.
- Naveen