tools/bpftool: Generate data section struct with conservative alignment
authorAndrii Nakryiko <andriin@fb.com>
Thu, 13 Aug 2020 20:49:44 +0000 (13:49 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 13 Aug 2020 23:45:41 +0000 (16:45 -0700)
commit0f993845d723c87656552837b412994d6086f086
treebf9c93f669615a61b4dbdcfa2e400fee402bdc73
parent5705d705832f74395c5465ce93192688f543006a
tools/bpftool: Generate data section struct with conservative alignment

The comment in the code describes this in good details. Generate such a memory
layout that would work both on 32-bit and 64-bit architectures for user-space.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200813204945.1020225-9-andriin@fb.com
tools/bpf/bpftool/gen.c