]> Gentwo Git Trees - linux/.git/commit
selftests/bpf: Enrich subtest_basic_usdt case in selftests to cover SIB handling...
authorJiawei Zhao <phoenix500526@163.com>
Wed, 27 Aug 2025 05:31:28 +0000 (05:31 +0000)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 27 Aug 2025 22:48:05 +0000 (15:48 -0700)
commit69424097ee1061280dce111ca43b7bc17868413c
tree8e7cafa3cbffc48b425be61ff83a07e5fa92dc95
parent758acb9ccfdbf854b55abaceaf1f3f229cde3d19
selftests/bpf: Enrich subtest_basic_usdt case in selftests to cover SIB handling logic

When using GCC on x86-64 to compile an usdt prog with -O1 or higher
optimization, the compiler will generate SIB addressing mode for global
array, e.g. "1@-96(%rbp,%rax,8)".

In this patch:
- enrich subtest_basic_usdt test case to cover SIB addressing usdt argument spec
  handling logic

Signed-off-by: Jiawei Zhao <phoenix500526@163.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20250827053128.1301287-3-phoenix500526@163.com
tools/testing/selftests/bpf/prog_tests/usdt.c
tools/testing/selftests/bpf/progs/test_usdt.c