Re: [PATCH v2 6/7] x86/power: Sprinkle some noinstr

Ingo Molnar
2023-01-17T11:55:07Z

* Peter Zijlstra <peterz@infradead.org> wrote:

> Nope, they do as they say on the tin.
>
> noinstr void foo(void)
> {
> }
>
> declares the whole function as non-instrumented.
>
> Within such functions, we demark regions where instrumentation is
> allowed by:
>
> noinstr void foo(void)
> {
> instrumentation_begin();
> /* code that calls non-noinstr functions goes here */
> instrumentation_end();

Indeed, you are right - I should have gotten more of my morning tea ... :-/

Thanks,

Ingo