Commit 5ad0ecb
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.com1 parent 240bf8a commit 5ad0ecb
1 file changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1322 | 1322 | | |
1323 | 1323 | | |
1324 | 1324 | | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
1325 | 1334 | | |
1326 | 1335 | | |
1327 | 1336 | | |
| |||
3685 | 3694 | | |
3686 | 3695 | | |
3687 | 3696 | | |
3688 | | - | |
| 3697 | + | |
| 3698 | + | |
| 3699 | + | |
3689 | 3700 | | |
3690 | 3701 | | |
3691 | 3702 | | |
| |||
3705 | 3716 | | |
3706 | 3717 | | |
3707 | 3718 | | |
| 3719 | + | |
| 3720 | + | |
3708 | 3721 | | |
3709 | 3722 | | |
3710 | 3723 | | |
| |||
0 commit comments