BPF List
 help / color / mirror / Atom feed
* [PATCH v2 bpf-next 0/1] libbpf: usdt aarch64 support
@ 2022-04-11 15:21 Alan Maguire
  2022-04-11 15:21 ` [PATCH v2 bpf-next] libbpf: usdt aarch64 arg parsing support Alan Maguire
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Maguire @ 2022-04-11 15:21 UTC (permalink / raw)
  To: andrii, ast, daniel
  Cc: iii, kafai, songliubraving, yhs, john.fastabend, kpsingh, netdev,
	bpf, Alan Maguire

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-04-11 22:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-11 15:21 [PATCH v2 bpf-next 0/1] libbpf: usdt aarch64 support Alan Maguire
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox