Re: [PATCH perf/core 17/22] selftests/bpf: Add optimized usdt variant for basic usdt test

Andrii Nakryiko
2025-04-23T17:44:20Z

On Mon, Apr 21, 2025 at 2:47 PM Jiri Olsa <jolsa@kernel.org> wrote:
>
> Adding optimized usdt variant for basic usdt test to check that
> usdt arguments are properly passed in optimized code path.
>
> Signed-off-by: Jiri Olsa <jolsa@kernel.org>
> ---
> tools/testing/selftests/bpf/prog_tests/usdt.c | 38 ++++++++++++-------
> 1 file changed, 25 insertions(+), 13 deletions(-)
>

LGTM

Acked-by: Andrii Nakryiko <andrii@kernel.org>

> diff --git a/tools/testing/selftests/bpf/prog_tests/usdt.c b/tools/testing/selftests/bpf/prog_tests/usdt.c
> index 495d66414b57..3a5b5230bfa0 100644
> --- a/tools/testing/selftests/bpf/prog_tests/usdt.c
> +++ b/tools/testing/selftests/bpf/prog_tests/usdt.c
> @@ -40,12 +40,19 @@ static void __always_inline trigger_func(int x) {
> }
> }
> …