aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/gecko.py
diff options
context:
space:
mode:
authorPuranjay Mohan <[email protected]>2023-09-07 23:05:43 +0000
committerAlexei Starovoitov <[email protected]>2023-09-15 17:16:56 -0700
commitf9e6981b1f1ce5e954e4e9b82e6d3e564d4a3254 (patch)
tree5e125b516330bfc497d3b6a44d2246dd507b32b6 /tools/perf/scripts/python/gecko.py
parent471f3d4ee4a6db5c8621bb1c186a1d20a0639630 (diff)
arm32, bpf: add support for sign-extension load instruction
The cpuv4 added the support of an instruction that is similar to load but also sign-extends the result after the load. BPF_MEMSX | <size> | BPF_LDX means dst = *(signed size *) (src + offset) here <size> can be one of BPF_B, BPF_H, BPF_W. ARM32 has instructions to load a byte or a half word with sign extension into a 32bit register. As the JIT uses two 32 bit registers to simulate a 64-bit BPF register, an extra instruction is emitted to sign-extent the result up to the second register. Signed-off-by: Puranjay Mohan <[email protected]> Reviewed-by: Russell King (Oracle) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions