aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/progs/recvmsg_unix_prog.c
diff options
context:
space:
mode:
authorIan Rogers <[email protected]>2023-10-07 04:44:39 +0000
committerAndrii Nakryiko <[email protected]>2023-10-09 16:36:51 +0000
commit1be84ca53ca0421c781f9ec007cd8bccbb58f763 (patch)
treed0d080976441f94c1d82d6e376e46a53653ef1db /tools/testing/selftests/bpf/progs/recvmsg_unix_prog.c
parentbpftool: Align output skeleton ELF code (diff)
downloadkernel-1be84ca53ca0421c781f9ec007cd8bccbb58f763.tar.gz
kernel-1be84ca53ca0421c781f9ec007cd8bccbb58f763.zip
bpftool: Align bpf_load_and_run_opts insns and data
A C string lacks alignment so use aligned arrays to avoid potential alignment problems. Switch to using sizeof (less 1 for the \0 terminator) rather than a hardcode size constant. Signed-off-by: Ian Rogers <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Acked-by: Quentin Monnet <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/progs/recvmsg_unix_prog.c')
0 files changed, 0 insertions, 0 deletions