]> 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)
commitb70b6a21b1e7601be340295104ae6ecf0aa1c39c
treebf9c93f669615a61b4dbdcfa2e400fee402bdc73
parent1b275f99c2392acc5213ed706ff4c9101afecd19
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