aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/perf_buffer.c
diff options
context:
space:
mode:
authorIlya Leoshkevich <[email protected]>2021-10-21 10:46:58 +0000
committerAndrii Nakryiko <[email protected]>2021-10-21 22:50:04 +0000
commit632f96d2652e0d4188de837f88a977eedb55aee1 (patch)
treeb5fa2fd6b0bde0c5dfa561194a57cb799f4196b9 /tools/testing/selftests/bpf/prog_tests/perf_buffer.c
parentMerge branch 'Add bpf_skc_to_unix_sock() helper' (diff)
downloadkernel-632f96d2652e0d4188de837f88a977eedb55aee1.tar.gz
kernel-632f96d2652e0d4188de837f88a977eedb55aee1.zip
libbpf: Fix ptr_is_aligned() usages
Currently ptr_is_aligned() takes size, and not alignment, as a parameter, which may be overly pessimistic e.g. for __i128 on s390, which must be only 8-byte aligned. Fix by using btf__align_of(). Signed-off-by: Ilya Leoshkevich <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/perf_buffer.c')
0 files changed, 0 insertions, 0 deletions