[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1649458366-25288-1-git-send-email-alan.maguire@oracle.com>
Date: Fri, 8 Apr 2022 23:52:44 +0100
From: Alan Maguire <alan.maguire@...cle.com>
To: andrii@...nel.org, iii@...ux.ibm.com, ast@...nel.org,
daniel@...earbox.net
Cc: kafai@...com, songliubraving@...com, yhs@...com,
john.fastabend@...il.com, kpsingh@...nel.org,
netdev@...r.kernel.org, bpf@...r.kernel.org,
Alan Maguire <alan.maguire@...cle.com>
Subject: [PATCH bpf-next 0/2] libbpf: usdt aarch64 support
USDT support [1] requires architecture-specific handling for translating
from argument strings describing each probe argument to appropriate values
that can be made available to the BPF program. Determining value size,
whether it refers to a dereference (and if there is an offset from the
register value), a register value or a constant all has to be parsed
slightly differently for different architectures.
However a common representation is created for use within BPF programs
(via usdt.bpf.h), and patch 1 abstracts out the initialization of
struct usdt_arg_spec associated with the argument, rather than repeating
those steps for each architecture.
Patch 2 then adds aarch64-specific argument parsing.
[1] https://lore.kernel.org/bpf/20220404234202.331384-1-andrii@kernel.org/
Alan Maguire (2):
libbpf: usdt: factor out common USDT arg handling
libbpf: usdt aarch64 arg parsing support
tools/lib/bpf/usdt.c | 134 +++++++++++++++++++++++++++++++++------------------
1 file changed, 87 insertions(+), 47 deletions(-)
--
1.8.3.1
Powered by blists - more mailing lists