aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorStanislav Fomichev <[email protected]>2019-12-10 19:19:33 +0000
committerDaniel Borkmann <[email protected]>2019-12-11 13:52:18 +0000
commitb590cb5f802dc20c72f507f7fbe6737222d0afba (patch)
treedfe609803b0fbe1536d8223c4e021c926ae30315 /tools/bpf/bpftool/prog.c
parentlibbpf: Bump libpf current version to v0.0.7 (diff)
downloadkernel-b590cb5f802dc20c72f507f7fbe6737222d0afba.tar.gz
kernel-b590cb5f802dc20c72f507f7fbe6737222d0afba.zip
bpf: Switch to offsetofend in BPF_PROG_TEST_RUN
Switch existing pattern of "offsetof(..., member) + FIELD_SIZEOF(..., member)' to "offsetofend(..., member)" which does exactly what we need without all the copy-paste. Suggested-by: Andrii Nakryiko <[email protected]> Signed-off-by: Stanislav Fomichev <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions