From: Alan Maguire <alan.maguire@oracle.com>
To: andrii@kernel.org, ast@kernel.org, daniel@iogearbox.net
Cc: iii@linux.ibm.com, kafai@fb.com, songliubraving@fb.com,
yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org,
netdev@vger.kernel.org, bpf@vger.kernel.org,
Alan Maguire <alan.maguire@oracle.com>
Subject: [PATCH v2 bpf-next 0/1] libbpf: usdt aarch64 support
Date: Mon, 11 Apr 2022 16:21:35 +0100 [thread overview]
Message-ID: <1649690496-1902-1-git-send-email-alan.maguire@oracle.com> (raw)
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 have to be parsed
slightly differently for different architectures. Details of format
handling for the aarch64 case are in patch 1.
Changes since v1:
- dropped patch refactoring all arch-specific parsing (Andrii)
- reworked sscanf()s to separate the two register dereference cases,
made register parsing match [a-z0-9] in all cases (Andrii)
[1] https://lore.kernel.org/bpf/20220404234202.331384-1-andrii@kernel.org/
Alan Maguire (1):
libbpf: usdt aarch64 arg parsing support
tools/lib/bpf/usdt.c | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 76 insertions(+)
--
1.8.3.1
next reply other threads:[~2022-04-11 15:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-11 15:21 Alan Maguire [this message]
2022-04-11 15:21 ` [PATCH v2 bpf-next] libbpf: usdt aarch64 arg parsing support Alan Maguire
2022-04-11 22:40 ` patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1649690496-1902-1-git-send-email-alan.maguire@oracle.com \
--to=alan.maguire@oracle.com \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=iii@linux.ibm.com \
--cc=john.fastabend@gmail.com \
--cc=kafai@fb.com \
--cc=kpsingh@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=songliubraving@fb.com \
--cc=yhs@fb.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).