diff options
author | Alexei Starovoitov <[email protected]> | 2024-03-05 19:19:28 -0800 |
---|---|---|
committer | Andrii Nakryiko <[email protected]> | 2024-03-06 15:18:04 -0800 |
commit | 06375801525717173aee790310b7d959bb77879b (patch) | |
tree | 56f571c37744c55fbab9eb4952875c1725e968e7 /tools/perf/scripts/python/Perf-Trace-Util | |
parent | 4f81c16f50baf6d5d8bfa6eef3250dcfa22cbc08 (diff) |
bpf: Add cond_break macro
Use may_goto instruction to implement cond_break macro.
Ideally the macro should be written as:
asm volatile goto(".byte 0xe5;
.byte 0;
.short %l[l_break] ...
.long 0;
but LLVM doesn't recognize fixup of 2 byte PC relative yet.
Hence use
asm volatile goto(".byte 0xe5;
.byte 0;
.long %l[l_break] ...
.short 0;
that produces correct asm on little endian.
Signed-off-by: Alexei Starovoitov <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: Eduard Zingerman <[email protected]>
Acked-by: John Fastabend <[email protected]>
Tested-by: John Fastabend <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util')
0 files changed, 0 insertions, 0 deletions