Searched refs:OPTS_GET (Results 1 – 6 of 6) sorted by relevance
/linux-6.6.21/tools/lib/bpf/ |
D | bpf.c | 190 attr.btf_fd = OPTS_GET(opts, btf_fd, 0); in bpf_map_create() 191 attr.btf_key_type_id = OPTS_GET(opts, btf_key_type_id, 0); in bpf_map_create() 192 attr.btf_value_type_id = OPTS_GET(opts, btf_value_type_id, 0); in bpf_map_create() 193 attr.btf_vmlinux_value_type_id = OPTS_GET(opts, btf_vmlinux_value_type_id, 0); in bpf_map_create() 195 attr.inner_map_fd = OPTS_GET(opts, inner_map_fd, 0); in bpf_map_create() 196 attr.map_flags = OPTS_GET(opts, map_flags, 0); in bpf_map_create() 197 attr.map_extra = OPTS_GET(opts, map_extra, 0); in bpf_map_create() 198 attr.numa_node = OPTS_GET(opts, numa_node, 0); in bpf_map_create() 199 attr.map_ifindex = OPTS_GET(opts, map_ifindex, 0); in bpf_map_create() 249 attempts = OPTS_GET(opts, attempts, 0); in bpf_prog_load() [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 | 2673 strict = !OPTS_GET(opts, relaxed_maps, false); in bpf_object__init_maps() 2674 pin_root_path = OPTS_GET(opts, pin_root_path, NULL); in bpf_object__init_maps() 7392 obj_name = OPTS_GET(opts, object_name, NULL); in bpf_object_open() 7404 log_buf = OPTS_GET(opts, kernel_log_buf, NULL); in bpf_object_open() 7405 log_size = OPTS_GET(opts, kernel_log_size, 0); in bpf_object_open() 7406 log_level = OPTS_GET(opts, kernel_log_level, 0); in bpf_object_open() 7420 btf_tmp_path = OPTS_GET(opts, btf_custom_path, NULL); in bpf_object_open() 7433 kconfig = OPTS_GET(opts, kconfig, NULL); in bpf_object_open() 8899 sec_def->cookie = OPTS_GET(opts, cookie, 0); in libbpf_register_prog_handler() 8901 sec_def->prog_setup_fn = OPTS_GET(opts, prog_setup_fn, NULL); 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() 2524 d->typed_dump->indent_lvl = OPTS_GET(opts, indent_level, 0); in btf_dump__dump_type_data() 2527 if (!OPTS_GET(opts, indent_str, NULL)) in btf_dump__dump_type_data() 2533 d->typed_dump->compact = OPTS_GET(opts, compact, false); in btf_dump__dump_type_data() 2534 d->typed_dump->skip_names = OPTS_GET(opts, skip_names, false); in btf_dump__dump_type_data() 2535 d->typed_dump->emit_zeroes = OPTS_GET(opts, emit_zeroes, false); in btf_dump__dump_type_data()
|
D | libbpf_internal.h | 304 #define OPTS_GET(opts, field, fallback_value) \ macro
|
D | btf.c | 3224 if (OPTS_GET(opts, force_collisions, false)) in btf_dedup_new() 3228 d->btf_ext = OPTS_GET(opts, btf_ext, NULL); in btf_dedup_new()
|