Re: [PATCH v2 12/14] rv: Add KUnit stubs for current and smp_processor_id()
From: Nam Cao
Date: Tue May 19 2026 - 11:02:29 EST
Gabriele Monaco <gmonaco@xxxxxxxxxx> writes:
> Some monitors do not only rely on tracepoint arguments but also on the
> currently executing task and current processor.
> This makes it more challenging to mock events in KUnit.
>
> Define wrapper functions around current and smp_processor_id(), the
> functionality is stubbed only during KUnit, however the additional
> function call is necessary whenever the KUnit tests are built in.
>
> Signed-off-by: Gabriele Monaco <gmonaco@xxxxxxxxxx>
Reviewed-by: Nam Cao <namcao@xxxxxxxxxxxxx>