On Fri, Aug 1, 2025 at 9:16 AM Jiawei Zhao <[email protected]> wrote: > > From: Jiawei Zhao <[email protected]> > > On x86-64, USDT arguments can be specified using Scale-Index-Base (SIB) > addressing, e.g. "1@-96(%rbp,%rax,8)". The current USDT implementation > in libbpf cannot parse this format, causing `bpf_program__attach_usdt()` > to fail with -ENOENT (unrecognized register). > > This patch fixes this by implementing the necessary changes: > - add correct handling for SIB-addressed arguments in `bpf_usdt_arg`. > - add adaptive support to `__bpf_usdt_arg_type` and > `__bpf_usdt_arg_spec` to represent SIB addressing parameters. > > Signed-off-by: Jiawei Zhao <[email protected]> > --- > tools/lib/bpf/usdt.bpf.h | 33 +++++++++++++- > tools/lib/bpf/usdt.c | 43 ++++++++++++++++--- > tools/testing/selftests/bpf/Makefile | 5 +++ > tools/testing/selftests/bpf/prog_tests/usdt.c | 18 +++++--- > 4 files changed, 86 insertions(+), 13 deletions(-)
You didn't cc bpf@vger. It cannot land this way. Pls respin and split libbpf vs selftest into separate patches. -- pw-bot: cr

