Searched refs:OPTS_GET (Results 1 – 6 of 6) sorted by relevance
/linux-6.12.1/tools/lib/bpf/ |
D | bpf.c | 193 attr.btf_fd = OPTS_GET(opts, btf_fd, 0); in bpf_map_create() 194 attr.btf_key_type_id = OPTS_GET(opts, btf_key_type_id, 0); in bpf_map_create() 195 attr.btf_value_type_id = OPTS_GET(opts, btf_value_type_id, 0); in bpf_map_create() 196 attr.btf_vmlinux_value_type_id = OPTS_GET(opts, btf_vmlinux_value_type_id, 0); in bpf_map_create() 197 attr.value_type_btf_obj_fd = OPTS_GET(opts, value_type_btf_obj_fd, 0); in bpf_map_create() 199 attr.inner_map_fd = OPTS_GET(opts, inner_map_fd, 0); in bpf_map_create() 200 attr.map_flags = OPTS_GET(opts, map_flags, 0); in bpf_map_create() 201 attr.map_extra = OPTS_GET(opts, map_extra, 0); in bpf_map_create() 202 attr.numa_node = OPTS_GET(opts, numa_node, 0); in bpf_map_create() 203 attr.map_ifindex = OPTS_GET(opts, map_ifindex, 0); in bpf_map_create() [all …]
|
D | netlink.c | 329 old_prog_fd = OPTS_GET(opts, old_prog_fd, 0); in bpf_xdp_attach() 545 switch (OPTS_GET(hook, attach_point, 0)) { in attach_point_to_config() 549 if (OPTS_GET(hook, parent, 0)) in attach_point_to_config() 597 req.tc.tcm_ifindex = OPTS_GET(hook, ifindex, 0); in tc_qdisc_modify() 621 OPTS_GET(hook, ifindex, 0) <= 0) in bpf_tc_hook_create() 635 OPTS_GET(hook, ifindex, 0) <= 0) in bpf_tc_hook_destroy() 638 switch (OPTS_GET(hook, attach_point, 0)) { in bpf_tc_hook_destroy() 731 ifindex = OPTS_GET(hook, ifindex, 0); in bpf_tc_attach() 732 parent = OPTS_GET(hook, parent, 0); in bpf_tc_attach() 733 attach_point = OPTS_GET(hook, attach_point, 0); in bpf_tc_attach() [all …]
|
D | libbpf.c | 3041 strict = !OPTS_GET(opts, relaxed_maps, false); in bpf_object__init_maps() 3042 pin_root_path = OPTS_GET(opts, pin_root_path, NULL); in bpf_object__init_maps() 7930 obj_name = OPTS_GET(opts, object_name, NULL) ?: obj_name; in bpf_object_open() 7938 log_buf = OPTS_GET(opts, kernel_log_buf, NULL); in bpf_object_open() 7939 log_size = OPTS_GET(opts, kernel_log_size, 0); in bpf_object_open() 7940 log_level = OPTS_GET(opts, kernel_log_level, 0); in bpf_object_open() 7946 token_path = OPTS_GET(opts, bpf_token_path, NULL); in bpf_object_open() 7972 btf_tmp_path = OPTS_GET(opts, btf_custom_path, NULL); in bpf_object_open() 7985 kconfig = OPTS_GET(opts, kconfig, NULL); in bpf_object_open() 9496 sec_def->cookie = OPTS_GET(opts, cookie, 0); in libbpf_register_prog_handler() [all …]
|
D | btf_dump.c | 1279 fname = OPTS_GET(opts, field_name, ""); in btf_dump__emit_type_decl() 1280 lvl = OPTS_GET(opts, indent_level, 0); in btf_dump__emit_type_decl() 1281 d->strip_mods = OPTS_GET(opts, strip_mods, false); in btf_dump__emit_type_decl() 2531 d->typed_dump->indent_lvl = OPTS_GET(opts, indent_level, 0); in btf_dump__dump_type_data() 2534 if (!OPTS_GET(opts, indent_str, NULL)) in btf_dump__dump_type_data() 2540 d->typed_dump->compact = OPTS_GET(opts, compact, false); in btf_dump__dump_type_data() 2541 d->typed_dump->skip_names = OPTS_GET(opts, skip_names, false); in btf_dump__dump_type_data() 2542 d->typed_dump->emit_zeroes = OPTS_GET(opts, emit_zeroes, false); in btf_dump__dump_type_data()
|
D | libbpf_internal.h | 322 #define OPTS_GET(opts, field, fallback_value) \ macro
|
D | btf.c | 3469 if (OPTS_GET(opts, force_collisions, false)) in btf_dedup_new() 3473 d->btf_ext = OPTS_GET(opts, btf_ext, NULL); in btf_dedup_new()
|