Home
last modified time | relevance | path

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

/Linux-v5.15/tools/lib/bpf/
Dnetlink.c229 old_fd = OPTS_GET(opts, old_fd, -1); in bpf_set_link_xdp_fd_opts()
384 switch (OPTS_GET(hook, attach_point, 0)) { in attach_point_to_config()
388 if (OPTS_GET(hook, parent, 0)) in attach_point_to_config()
436 req.tc.tcm_ifindex = OPTS_GET(hook, ifindex, 0); in tc_qdisc_modify()
460 OPTS_GET(hook, ifindex, 0) <= 0) in bpf_tc_hook_create()
474 OPTS_GET(hook, ifindex, 0) <= 0) in bpf_tc_hook_destroy()
477 switch (OPTS_GET(hook, attach_point, 0)) { in bpf_tc_hook_destroy()
569 ifindex = OPTS_GET(hook, ifindex, 0); in bpf_tc_attach()
570 parent = OPTS_GET(hook, parent, 0); in bpf_tc_attach()
571 attach_point = OPTS_GET(hook, attach_point, 0); in bpf_tc_attach()
[all …]
Dbpf.c550 attr.batch.elem_flags = OPTS_GET(opts, elem_flags, 0); in bpf_map_batch_common()
551 attr.batch.flags = OPTS_GET(opts, flags, 0); in bpf_map_batch_common()
639 attr.attach_flags = OPTS_GET(opts, flags, 0); in bpf_prog_attach_xattr()
640 attr.replace_bpf_fd = OPTS_GET(opts, replace_prog_fd, 0); in bpf_prog_attach_xattr()
684 iter_info_len = OPTS_GET(opts, iter_info_len, 0); in bpf_link_create()
685 target_btf_id = OPTS_GET(opts, target_btf_id, 0); in bpf_link_create()
699 attr.link_create.flags = OPTS_GET(opts, flags, 0); in bpf_link_create()
708 attr.link_create.iter_info = ptr_to_u64(OPTS_GET(opts, iter_info, (void *)0)); in bpf_link_create()
712 attr.link_create.perf_event.bpf_cookie = OPTS_GET(opts, perf_event.bpf_cookie, 0); in bpf_link_create()
750 attr.link_update.flags = OPTS_GET(opts, flags, 0); in bpf_link_update()
[all …]
Dbtf_dump.c1112 fname = OPTS_GET(opts, field_name, ""); in btf_dump__emit_type_decl()
1113 lvl = OPTS_GET(opts, indent_level, 0); in btf_dump__emit_type_decl()
1114 d->strip_mods = OPTS_GET(opts, strip_mods, false); in btf_dump__emit_type_decl()
2287 d->typed_dump->indent_lvl = OPTS_GET(opts, indent_level, 0); in btf_dump__dump_type_data()
2296 d->typed_dump->compact = OPTS_GET(opts, compact, false); in btf_dump__dump_type_data()
2297 d->typed_dump->skip_names = OPTS_GET(opts, skip_names, false); in btf_dump__dump_type_data()
2298 d->typed_dump->emit_zeroes = OPTS_GET(opts, emit_zeroes, false); in btf_dump__dump_type_data()
Dlibbpf_internal.h232 #define OPTS_GET(opts, field, fallback_value) \ macro
Dlibbpf.c2461 strict = !OPTS_GET(opts, relaxed_maps, false); in bpf_object__init_maps()
2462 pin_root_path = OPTS_GET(opts, pin_root_path, NULL); in bpf_object__init_maps()
6389 obj_name = OPTS_GET(opts, object_name, NULL); in __bpf_object__open()
6405 btf_tmp_path = OPTS_GET(opts, btf_custom_path, NULL); in __bpf_object__open()
6418 kconfig = OPTS_GET(opts, kconfig, NULL); in __bpf_object__open()
6455 prog->attach_prog_fd = OPTS_GET(opts, attach_prog_fd, 0); in __bpf_object__open()
9049 .perf_event.bpf_cookie = OPTS_GET(opts, bpf_cookie, 0)); in bpf_program__attach_perf_event_opts()
9061 if (OPTS_GET(opts, bpf_cookie, 0)) { in bpf_program__attach_perf_event_opts()
9225 retprobe = OPTS_GET(opts, retprobe, false); in bpf_program__attach_kprobe_opts()
9226 offset = OPTS_GET(opts, offset, 0); in bpf_program__attach_kprobe_opts()
[all …]