libbpf: Struct_ops in SEC("?.struct_ops") / SEC("?.struct_ops.link")
authorEduard Zingerman <eddyz87@gmail.com>
Wed, 6 Mar 2024 10:45:25 +0000 (12:45 +0200)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 6 Mar 2024 23:18:16 +0000 (15:18 -0800)
commit5ad0ecbe056a4ea5ffaa73e58503a2f87b119a59
tree0ec07c636e02a90443c866021c0ebfa1e457c9ef
parent240bf8a5162e8c43cf368909582a01082d494d79
libbpf: Struct_ops in SEC("?.struct_ops") / SEC("?.struct_ops.link")

Allow using two new section names for struct_ops maps:
- SEC("?.struct_ops")
- SEC("?.struct_ops.link")

To specify maps that have bpf_map->autocreate == false after open.

Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20240306104529.6453-12-eddyz87@gmail.com
tools/lib/bpf/libbpf.c