Home
last modified time | relevance | path

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

/third_party/libbpf/src/
Dbpf.c190 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 …]
Dnetlink.c284 old_prog_fd = OPTS_GET(opts, old_prog_fd, 0); in bpf_xdp_attach()
438 switch (OPTS_GET(hook, attach_point, 0)) { in attach_point_to_config()
442 if (OPTS_GET(hook, parent, 0)) in attach_point_to_config()
490 req.tc.tcm_ifindex = OPTS_GET(hook, ifindex, 0); in tc_qdisc_modify()
514 OPTS_GET(hook, ifindex, 0) <= 0) in bpf_tc_hook_create()
528 OPTS_GET(hook, ifindex, 0) <= 0) in bpf_tc_hook_destroy()
531 switch (OPTS_GET(hook, attach_point, 0)) { in bpf_tc_hook_destroy()
624 ifindex = OPTS_GET(hook, ifindex, 0); in bpf_tc_attach()
625 parent = OPTS_GET(hook, parent, 0); in bpf_tc_attach()
626 attach_point = OPTS_GET(hook, attach_point, 0); in bpf_tc_attach()
[all …]
Dbtf_dump.c1279 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()
2508 d->typed_dump->indent_lvl = OPTS_GET(opts, indent_level, 0); in btf_dump__dump_type_data()
2511 if (!OPTS_GET(opts, indent_str, NULL)) in btf_dump__dump_type_data()
2517 d->typed_dump->compact = OPTS_GET(opts, compact, false); in btf_dump__dump_type_data()
2518 d->typed_dump->skip_names = OPTS_GET(opts, skip_names, false); in btf_dump__dump_type_data()
2519 d->typed_dump->emit_zeroes = OPTS_GET(opts, emit_zeroes, false); in btf_dump__dump_type_data()
Dlibbpf.c2765 strict = !OPTS_GET(opts, relaxed_maps, false);
2766 pin_root_path = OPTS_GET(opts, pin_root_path, NULL);
7586 obj_name = OPTS_GET(opts, object_name, NULL);
7598 log_buf = OPTS_GET(opts, kernel_log_buf, NULL);
7599 log_size = OPTS_GET(opts, kernel_log_size, 0);
7600 log_level = OPTS_GET(opts, kernel_log_level, 0);
7614 btf_tmp_path = OPTS_GET(opts, btf_custom_path, NULL);
7627 kconfig = OPTS_GET(opts, kconfig, NULL);
9006 sec_def->cookie = OPTS_GET(opts, cookie, 0);
9008 sec_def->prog_setup_fn = OPTS_GET(opts, prog_setup_fn, NULL);
[all …]
Dlibbpf_internal.h303 #define OPTS_GET(opts, field, fallback_value) \ macro
Dbtf.c3337 if (OPTS_GET(opts, force_collisions, false))
3341 d->btf_ext = OPTS_GET(opts, btf_ext, NULL);