Searched refs:OPTS_GET (Results 1 – 5 of 5) sorted by relevance
/linux/tools/lib/bpf/ |
A D | netlink.c | 229 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() 460 OPTS_GET(hook, ifindex, 0) <= 0) in bpf_tc_hook_create() 474 OPTS_GET(hook, ifindex, 0) <= 0) in bpf_tc_hook_destroy() 570 parent = OPTS_GET(hook, parent, 0); in bpf_tc_attach() 573 handle = OPTS_GET(opts, handle, 0); in bpf_tc_attach() 577 flags = OPTS_GET(opts, flags, 0); in bpf_tc_attach() 643 parent = OPTS_GET(hook, parent, 0); in __bpf_tc_detach() 650 flags = OPTS_GET(opts, flags, 0); in __bpf_tc_detach() [all …]
|
A D | bpf.c | 588 attr.batch.flags = OPTS_GET(opts, flags, 0); in bpf_map_batch_common() 676 attr.attach_flags = OPTS_GET(opts, flags, 0); in bpf_prog_attach_xattr() 721 iter_info_len = OPTS_GET(opts, iter_info_len, 0); in bpf_link_create() 722 target_btf_id = OPTS_GET(opts, target_btf_id, 0); in bpf_link_create() 736 attr.link_create.flags = OPTS_GET(opts, flags, 0); in bpf_link_create() 787 attr.link_update.flags = OPTS_GET(opts, flags, 0); in bpf_link_update() 894 attr.test.cpu = OPTS_GET(opts, cpu, 0); in bpf_prog_test_run_opts() 895 attr.test.flags = OPTS_GET(opts, flags, 0); in bpf_prog_test_run_opts() 896 attr.test.repeat = OPTS_GET(opts, repeat, 0); in bpf_prog_test_run_opts() 897 attr.test.duration = OPTS_GET(opts, duration, 0); in bpf_prog_test_run_opts() [all …]
|
A D | btf_dump.c | 1114 fname = OPTS_GET(opts, field_name, ""); in btf_dump__emit_type_decl() 1115 lvl = OPTS_GET(opts, indent_level, 0); in btf_dump__emit_type_decl() 1116 d->strip_mods = OPTS_GET(opts, strip_mods, false); in btf_dump__emit_type_decl() 2296 d->typed_dump->indent_lvl = OPTS_GET(opts, indent_level, 0); in btf_dump__dump_type_data() 2305 d->typed_dump->compact = OPTS_GET(opts, compact, false); in btf_dump__dump_type_data() 2306 d->typed_dump->skip_names = OPTS_GET(opts, skip_names, false); in btf_dump__dump_type_data() 2307 d->typed_dump->emit_zeroes = OPTS_GET(opts, emit_zeroes, false); in btf_dump__dump_type_data()
|
A D | libbpf_internal.h | 258 #define OPTS_GET(opts, field, fallback_value) \ macro
|
A D | libbpf.c | 2561 strict = !OPTS_GET(opts, relaxed_maps, false); in bpf_object__init_maps() 2562 pin_root_path = OPTS_GET(opts, pin_root_path, NULL); in bpf_object__init_maps() 6765 obj_name = OPTS_GET(opts, object_name, NULL); in __bpf_object__open() 6794 kconfig = OPTS_GET(opts, kconfig, NULL); in __bpf_object__open() 9465 if (OPTS_GET(opts, bpf_cookie, 0)) { in bpf_program__attach_perf_event_opts() 9723 retprobe = OPTS_GET(opts, retprobe, false); in bpf_program__attach_kprobe_opts() 9724 offset = OPTS_GET(opts, offset, 0); in bpf_program__attach_kprobe_opts() 9725 pe_opts.bpf_cookie = OPTS_GET(opts, bpf_cookie, 0); in bpf_program__attach_kprobe_opts() 9916 retprobe = OPTS_GET(opts, retprobe, false); in bpf_program__attach_uprobe_opts() 9917 ref_ctr_off = OPTS_GET(opts, ref_ctr_offset, 0); in bpf_program__attach_uprobe_opts() [all …]
|
Completed in 38 milliseconds