]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Fix usdt_400 test case
authorAndrii Nakryiko <andrii@kernel.org>
Fri, 13 May 2022 17:37:03 +0000 (10:37 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 13 May 2022 20:07:48 +0000 (22:07 +0200)
commitc253587dceaea7c63742b3bf6d97b9b3607608f2
tree794ec3af364948b2f7e88e0ed82b6d00d62fa564
parent5d008113ebc80601725fb8886f9536c283005109
selftests/bpf: Fix usdt_400 test case

usdt_400 test case relies on compiler using the same arg spec for
usdt_400 USDT. This assumption breaks with Clang (Clang generates
different arg specs with varying offsets relative to %rbp), so simplify
this further and hard-code the constant which will guarantee that arg
spec is the same across all 400 inlinings.

Fixes: 56856d037e1a ("selftests/bpf: Add basic USDT selftests")
Reported-by: Mykola Lysenko <mykolal@fb.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20220513173703.89271-1-andrii@kernel.org
tools/testing/selftests/bpf/prog_tests/usdt.c