Re: [PATCH 0/8] tracing vs rcu vs nmi

From: Steven Rostedt
Date: Wed Feb 12 2020 - 09:32:39 EST


On Wed, 12 Feb 2020 10:56:46 +0000
Will Deacon <will@xxxxxxxxxx> wrote:

> Hmm, so looks like we need to spinkle some 'notrace' annotations around
> these. Are there are scenarios where you would want NOKPROBE_SYMBOL() but
> *not* 'notrace'? We've already got the former for the debug exception
> handlers and we probably (?) want it for the SDEI stuff too...

Note, function tracing has a lot of recursion detection, and when
something registers with the function tracer it needs to state if it
can be called when rcu is not watching, or it wont be called then.

And yes, there's plenty of places that we have "nokprobe" but allow
tracing.

I've been trying to get rid of notrace around the kernel, not add more.

-- Steve