diff options
author | 2023-12-26 11:11:47 -0800 | |
---|---|---|
committer | 2024-01-03 11:08:23 -0800 | |
commit | 0bcc62aa9813f519db58df14ddf1d523fa971e62 (patch) | |
tree | 884e35b466cf0bda2af66675bc3379dae60d37e1 /tools/perf/scripts/python/stackcollapse.py | |
parent | selftests/bpf: Remove bpf_assert_eq-like macros. (diff) | |
download | wireguard-linux-0bcc62aa9813f519db58df14ddf1d523fa971e62.tar.xz wireguard-linux-0bcc62aa9813f519db58df14ddf1d523fa971e62.zip |
bpf: Add bpf_nop_mov() asm macro.
bpf_nop_mov(var) asm macro emits nop register move: rX = rX.
If 'var' is a scalar and not a fixed constant the verifier will assign ID to it.
If it's later spilled the stack slot will carry that ID as well.
Hence the range refining comparison "if rX < const" will update all copies
including spilled slot.
This macro is a temporary workaround until the verifier gets smarter.
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20231226191148.48536-6-alexei.starovoitov@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions