diff options
author | Florent Revest <[email protected]> | 2023-05-11 16:05:07 +0200 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2023-05-15 21:17:22 +0200 |
commit | 90564f1e3dd66052af29e2c29cba3dc98b6604d0 (patch) | |
tree | 1c952f79198d21afeda507ad774cf76a4e647a40 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf | |
parent | 04cb8453a91c7c22f60ddadb6cef0d19abb33bb5 (diff) |
bpf, arm64: Support struct arguments in the BPF trampoline
This extends the BPF trampoline JIT to support attachment to functions
that take small structures (up to 128bit) as argument. This is trivially
achieved by saving/restoring a number of "argument registers" rather
than a number of arguments.
The AAPCS64 section 6.8.2 describes the parameter passing ABI.
"Composite types" (like C structs) below 16 bytes (as enforced by the
BPF verifier) are provided as part of the 8 argument registers as
explained in the section C.12.
Signed-off-by: Florent Revest <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Acked-by: Xu Kuohai <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf')
0 files changed, 0 insertions, 0 deletions