diff options
| author | Anton Protopopov <a.s.protopopov@gmail.com> | 2026-04-06 16:01:41 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-04-06 18:38:32 -0700 |
| commit | 1c2e217ad349d2af5c09f8e6e1c0561ad912477d (patch) | |
| tree | ea18b9b17eefc24e23249a3061e1e2f36a3d7169 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 43cd9d9520e6622f6b9ffcd4f68e9d99225482b2 (diff) | |
selftests/bpf: Add more tests for loading insn arrays with offsets
A `gotox rX` instruction accepts only values of type PTR_TO_INSN.
The only way to create such a value is to load it from a map of
type insn_array:
rX = *(rY + offset) # rY was read from an insn_array
...
gotox rX
Add instruction-level and C-level selftests to validate loads
with nonzero offsets.
Signed-off-by: Anton Protopopov <a.s.protopopov@gmail.com>
Link: https://lore.kernel.org/r/20260406160141.36943-3-a.s.protopopov@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
