diff options
author | Alexei Starovoitov <[email protected]> | 2024-03-07 17:08:09 -0800 |
---|---|---|
committer | Andrii Nakryiko <[email protected]> | 2024-03-11 15:43:42 -0700 |
commit | 204c628730c62de5a0b593008549a9b95aa96b01 (patch) | |
tree | 0b9cd27de01c10719f2b7c49b07660652df3d9d9 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 2e7ba4f8fd1fa879b37db0b738c23ba2af8292ee (diff) |
bpf: Add helper macro bpf_addr_space_cast()
Introduce helper macro bpf_addr_space_cast() that emits:
rX = rX
instruction with off = BPF_ADDR_SPACE_CAST
and encodes dest and src address_space-s into imm32.
It's useful with older LLVM that doesn't emit this insn automatically.
Signed-off-by: Alexei Starovoitov <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: Kumar Kartikeya Dwivedi <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions