summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorIlya Leoshkevich <iii@linux.ibm.com>2021-08-13 00:48:14 +0200
committerAndrii Nakryiko <andrii@kernel.org>2021-08-13 16:40:40 -0700
commitd164dd9a5c08c16a883b3de97d13948c7be7fa4d (patch)
treece9b46806c3ff1adca32beafc3e3d10773fe52a1 /samples
parent2211c825e7b6b99bbcabab4e0130a2779275dcc3 (diff)
selftests/bpf: Fix test_core_autosize on big-endian machines
The "probed" part of test_core_autosize copies an integer using bpf_core_read() into an integer of a potentially different size. On big-endian machines a destination offset is required for this to produce a sensible result. Fixes: 888d83b961f6 ("selftests/bpf: Validate libbpf's auto-sizing of LD/ST/STX instructions") Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20210812224814.187460-1-iii@linux.ibm.com
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions