]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8e7f589ce0ccfdd9709d09c4aca3dd7ae6862739
treebf9c93f669615a61b4dbdcfa2e400fee402bdc73
parentd155923699081f389867505c040378c959a252bd
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