On Thu, 2018-04-19 at 07:04:00 UTC, "Naveen N. Rao" wrote: > We have some C code that we call into from real mode where we cannot > take any exceptions. Though the C functions themselves are mostly safe, > if these functions are traced, there is a possibility that we may take > an exception. For instance, in certain conditions, the ftrace code uses > WARN(), which uses a 'trap' to do its job. > > For such scenarios, introduce a new field in paca 'ftrace_enabled', > which is checked on ftrace entry before continuing. This field can then > be set to zero to disable/pause ftrace, and set to a non-zero value to > resume ftrace. > > Signed-off-by: Naveen N. Rao <naveen.n....@linux.vnet.ibm.com>
Series applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/ea678ac627e01daf5b4f1da24bf1d0 cheers