diff options
author | 2022-09-09 19:52:14 -0700 | |
---|---|---|
committer | 2022-09-21 17:05:31 -0700 | |
commit | 9f2f5d7830ddfeeca147595f473e14eadbeb3db1 (patch) | |
tree | 3611f3ead2bdf30e6565cef12c2efef84fd9e0cc /tools/lib/bpf/btf.c | |
parent | Merge branch 'bpf: Add user-space-publisher ring buffer map type' (diff) | |
download | linux-dev-9f2f5d7830ddfeeca147595f473e14eadbeb3db1.tar.xz linux-dev-9f2f5d7830ddfeeca147595f473e14eadbeb3db1.zip |
libbpf: Improve BPF_PROG2 macro code quality and description
Commit 34586d29f8df ("libbpf: Add new BPF_PROG2 macro") added BPF_PROG2
macro for trampoline based programs with struct arguments. Andrii
made a few suggestions to improve code quality and description.
This patch implemented these suggestions including better internal
macro name, consistent usage pattern for __builtin_choose_expr(),
simpler macro definition for always-inline func arguments and
better macro description.
Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Stanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/bpf/20220910025214.1536510-1-yhs@fb.com
Diffstat (limited to 'tools/lib/bpf/btf.c')
0 files changed, 0 insertions, 0 deletions