Home
last modified time | relevance | path

Searched refs:OPTS_GET (Results 1 – 5 of 5) sorted by relevance

/kernel/linux/linux-5.10/tools/lib/bpf/
Dbpf.c472 attr.batch.elem_flags = OPTS_GET(opts, elem_flags, 0); in bpf_map_batch_common()
473 attr.batch.flags = OPTS_GET(opts, flags, 0); in bpf_map_batch_common()
556 attr.attach_flags = OPTS_GET(opts, flags, 0); in bpf_prog_attach_xattr()
557 attr.replace_bpf_fd = OPTS_GET(opts, replace_prog_fd, 0); in bpf_prog_attach_xattr()
595 iter_info_len = OPTS_GET(opts, iter_info_len, 0); in bpf_link_create()
596 target_btf_id = OPTS_GET(opts, target_btf_id, 0); in bpf_link_create()
605 attr.link_create.flags = OPTS_GET(opts, flags, 0); in bpf_link_create()
609 ptr_to_u64(OPTS_GET(opts, iter_info, (void *)0)); in bpf_link_create()
639 attr.link_update.flags = OPTS_GET(opts, flags, 0); in bpf_link_update()
640 attr.link_update.old_prog_fd = OPTS_GET(opts, old_prog_fd, 0); in bpf_link_update()
[all …]
Dlibbpf_internal.h141 #define OPTS_GET(opts, field, fallback_value) \ macro
Dbtf_dump.c1093 fname = OPTS_GET(opts, field_name, ""); in btf_dump__emit_type_decl()
1094 lvl = OPTS_GET(opts, indent_level, 0); in btf_dump__emit_type_decl()
1095 d->strip_mods = OPTS_GET(opts, strip_mods, false); in btf_dump__emit_type_decl()
Dnetlink.c211 old_fd = OPTS_GET(opts, old_fd, -1); in bpf_set_link_xdp_fd_opts()
Dlibbpf.c2341 strict = !OPTS_GET(opts, relaxed_maps, false); in bpf_object__init_maps()
2342 pin_root_path = OPTS_GET(opts, pin_root_path, NULL); in bpf_object__init_maps()
6947 obj_name = OPTS_GET(opts, object_name, NULL); in __bpf_object__open()
6963 kconfig = OPTS_GET(opts, kconfig, NULL); in __bpf_object__open()
6997 prog->attach_prog_fd = OPTS_GET(opts, attach_prog_fd, 0); in __bpf_object__open()
9796 link_create_opts.iter_info = OPTS_GET(opts, link_info, (void *)0); in bpf_program__attach_iter()
9797 link_create_opts.iter_info_len = OPTS_GET(opts, link_info_len, 0); in bpf_program__attach_iter()