powerpc/rtas: add tracepoints around RTAS entry
authorNathan Lynch <nathanl@linux.ibm.com>
Fri, 10 Feb 2023 18:41:59 +0000 (12:41 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 13 Feb 2023 11:35:02 +0000 (22:35 +1100)
commit24098f580e2b5ceb2cec4f02833e0a0bb5d46d2e
treea0b678af71374a360b4f25295c63573ac2d7e63d
parent2c81ca7fbaea06c2aed1aec66a88208d67e1e2de
powerpc/rtas: add tracepoints around RTAS entry

Decompose the RTAS entry C code into tracing and non-tracing variants,
calling the just-added tracepoints in the tracing-enabled path. Skip
tracing in contexts known to be unsafe (real mode, CPU offline).

Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20230125-b4-powerpc-rtas-queue-v3-11-26929c8cce78@linux.ibm.com
arch/powerpc/kernel/rtas.c