summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorKumar Kartikeya Dwivedi <memxor@gmail.com>2026-09-18 01:32:15 +0200
committerEduard Zingerman <eddyz87@gmail.com>2026-09-17 18:01:43 -0700
commit3440505aca926e726a26c0fd30356454334322bd (patch)
tree421500888e42942ee2bf5f779434a7c4c03ac248 /tools/perf/scripts/python/flamegraph.py
parent394ae398337c5f87e567f6cd63b937fc2b2f6ddc (diff)
downloadlinux-next-3440505aca926e726a26c0fd30356454334322bd.tar.gz
linux-next-3440505aca926e726a26c0fd30356454334322bd.zip
selftests/bpf: Test CO-RE instruction poisoning restrictions
Add raw CO-RE relocations that fail to resolve their target enum value. Place each supported and unsupported instruction form in dead code. Unsupported targets must fail relocation with a diagnostic even when they are unreachable. Supported ALU immediates, memory accesses, and ldimm64 instructions must still be poisoned and removed as dead code, allowing the program to load. Check that both halves of ldimm64 are poisoned. Load every instruction stream without relocations first to ensure that rejection is caused by the relocation rather than the original program. Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com> Acked-by: Eduard Zingerman <eddyz87@gmail.com> Link: https://patch.msgid.link/20260917233222.2542500-8-memxor@gmail.com Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions