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

From: Ingo Molnar
Date: Tue Jan 17 2023 - 06:55:07 EST



* Peter Zijlstra <peterz@xxxxxxxxxxxxx> 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