diff options
| author | Vineet Gupta <vineet.gupta@linux.dev> | 2026-08-14 15:02:54 -0700 |
|---|---|---|
| committer | Eduard Zingerman <eddyz87@gmail.com> | 2026-08-14 23:55:32 -0700 |
| commit | f61306e8c98ce63021efb3091d422260b6be25bb (patch) | |
| tree | 68ad670bc8213b0f3ec408f445fef7f8180a231e /tools/perf/scripts/python | |
| parent | 5bbbce02e500d47d8e259a45be5a7be9741d0533 (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')
0 files changed, 0 insertions, 0 deletions
