libbpf: Add s390-specific USDT arg spec parsing logic
authorIlya Leoshkevich <iii@linux.ibm.com>
Thu, 7 Apr 2022 21:44:11 +0000 (23:44 +0200)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 8 Apr 2022 14:04:20 +0000 (07:04 -0700)
commitbd022685bd441056365e9a44a6bf940f45054250
tree4ea35d324c650f1091e50871886c81d7b5247fa3
parent6f403d9d530635f533577d37929c61474d6c5d7f
libbpf: Add s390-specific USDT arg spec parsing logic

The logic is superficially similar to that of x86, but the small
differences (no need for register table and dynamic allocation of
register names, no $ sign before constants) make maintaining a common
implementation too burdensome. Therefore simply add a s390x-specific
version of parse_usdt_arg().

Note that while bcc supports index registers, this patch does not. This
should not be a problem in most cases, since s390 uses a default value
"nor" for STAP_SDT_ARG_CONSTRAINT.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220407214411.257260-4-iii@linux.ibm.com
tools/lib/bpf/usdt.c