summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorVineet Gupta <vineet.gupta@linux.dev>2026-08-14 15:02:54 -0700
committerEduard Zingerman <eddyz87@gmail.com>2026-08-14 23:55:32 -0700
commitf61306e8c98ce63021efb3091d422260b6be25bb (patch)
tree68ad670bc8213b0f3ec408f445fef7f8180a231e /tools/perf/scripts/python/stackcollapse.py
parent5bbbce02e500d47d8e259a45be5a7be9741d0533 (diff)
selftests/bpf: Check per-CPU address resolution per register
An ld_imm64 of a per-CPU map value is followed by a mov_percpu_addr that reuses the same register, so which register the address lands in decides how the JIT encodes the add. Getting the REX prefix wrong there is invisible to a functional test unless the address happens to land in an extended register, which is why this went unnoticed. Load a .percpu variable into every register in one program and match the JITed add against the register each one must resolve into. Signed-off-by: Vineet Gupta <vineet.gupta@linux.dev> Link: https://patch.msgid.link/20260814220254.3797467-3-vineet.gupta@linux.dev Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions