Lines Matching refs:OPTS_GET

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()
258 attr.expected_attach_type = OPTS_GET(opts, expected_attach_type, 0); in bpf_prog_load()
260 attr.prog_btf_fd = OPTS_GET(opts, prog_btf_fd, 0); in bpf_prog_load()
261 attr.prog_flags = OPTS_GET(opts, prog_flags, 0); in bpf_prog_load()
262 attr.prog_ifindex = OPTS_GET(opts, prog_ifindex, 0); in bpf_prog_load()
263 attr.kern_version = OPTS_GET(opts, kern_version, 0); in bpf_prog_load()
275 attach_prog_fd = OPTS_GET(opts, attach_prog_fd, 0); in bpf_prog_load()
276 attach_btf_obj_fd = OPTS_GET(opts, attach_btf_obj_fd, 0); in bpf_prog_load()
281 attr.attach_btf_id = OPTS_GET(opts, attach_btf_id, 0); in bpf_prog_load()
287 log_buf = OPTS_GET(opts, log_buf, NULL); in bpf_prog_load()
288 log_size = OPTS_GET(opts, log_size, 0); in bpf_prog_load()
289 log_level = OPTS_GET(opts, log_level, 0); in bpf_prog_load()
298 func_info_rec_size = OPTS_GET(opts, func_info_rec_size, 0); in bpf_prog_load()
299 func_info = OPTS_GET(opts, func_info, NULL); in bpf_prog_load()
302 attr.func_info_cnt = OPTS_GET(opts, func_info_cnt, 0); in bpf_prog_load()
304 line_info_rec_size = OPTS_GET(opts, line_info_rec_size, 0); in bpf_prog_load()
305 line_info = OPTS_GET(opts, line_info, NULL); in bpf_prog_load()
308 attr.line_info_cnt = OPTS_GET(opts, line_info_cnt, 0); in bpf_prog_load()
310 attr.fd_array = ptr_to_u64(OPTS_GET(opts, fd_array, NULL)); in bpf_prog_load()
536 attr.batch.elem_flags = OPTS_GET(opts, elem_flags, 0); in bpf_map_batch_common()
537 attr.batch.flags = OPTS_GET(opts, flags, 0); in bpf_map_batch_common()
606 attr.file_flags = OPTS_GET(opts, file_flags, 0); in bpf_obj_get_opts()
637 attr.attach_flags = OPTS_GET(opts, flags, 0); in bpf_prog_attach_opts()
638 attr.replace_bpf_fd = OPTS_GET(opts, replace_prog_fd, 0); in bpf_prog_attach_opts()
685 iter_info_len = OPTS_GET(opts, iter_info_len, 0); in bpf_link_create()
686 target_btf_id = OPTS_GET(opts, target_btf_id, 0); in bpf_link_create()
700 attr.link_create.flags = OPTS_GET(opts, flags, 0); in bpf_link_create()
709 attr.link_create.iter_info = ptr_to_u64(OPTS_GET(opts, iter_info, (void *)0)); in bpf_link_create()
713 attr.link_create.perf_event.bpf_cookie = OPTS_GET(opts, perf_event.bpf_cookie, 0); in bpf_link_create()
718 attr.link_create.kprobe_multi.flags = OPTS_GET(opts, kprobe_multi.flags, 0); in bpf_link_create()
719 attr.link_create.kprobe_multi.cnt = OPTS_GET(opts, kprobe_multi.cnt, 0); in bpf_link_create()
720 attr.link_create.kprobe_multi.syms = ptr_to_u64(OPTS_GET(opts, kprobe_multi.syms, 0)); in bpf_link_create()
721 attr.link_create.kprobe_multi.addrs = ptr_to_u64(OPTS_GET(opts, kprobe_multi.addrs, 0)); in bpf_link_create()
722 attr.link_create.kprobe_multi.cookies = ptr_to_u64(OPTS_GET(opts, kprobe_multi.cookies, 0)); in bpf_link_create()
730 attr.link_create.tracing.cookie = OPTS_GET(opts, tracing.cookie, 0); in bpf_link_create()
800 attr.link_update.flags = OPTS_GET(opts, flags, 0); in bpf_link_update()
801 attr.link_update.old_prog_fd = OPTS_GET(opts, old_prog_fd, 0); in bpf_link_update()
835 attr.query.query_flags = OPTS_GET(opts, query_flags, 0); in bpf_prog_query_opts()
836 attr.query.prog_cnt = OPTS_GET(opts, prog_cnt, 0); in bpf_prog_query_opts()
837 attr.query.prog_ids = ptr_to_u64(OPTS_GET(opts, prog_ids, NULL)); in bpf_prog_query_opts()
838 attr.query.prog_attach_flags = ptr_to_u64(OPTS_GET(opts, prog_attach_flags, NULL)); in bpf_prog_query_opts()
878 attr.test.batch_size = OPTS_GET(opts, batch_size, 0); in bpf_prog_test_run_opts()
879 attr.test.cpu = OPTS_GET(opts, cpu, 0); in bpf_prog_test_run_opts()
880 attr.test.flags = OPTS_GET(opts, flags, 0); in bpf_prog_test_run_opts()
881 attr.test.repeat = OPTS_GET(opts, repeat, 0); in bpf_prog_test_run_opts()
882 attr.test.duration = OPTS_GET(opts, duration, 0); in bpf_prog_test_run_opts()
883 attr.test.ctx_size_in = OPTS_GET(opts, ctx_size_in, 0); in bpf_prog_test_run_opts()
884 attr.test.ctx_size_out = OPTS_GET(opts, ctx_size_out, 0); in bpf_prog_test_run_opts()
885 attr.test.data_size_in = OPTS_GET(opts, data_size_in, 0); in bpf_prog_test_run_opts()
886 attr.test.data_size_out = OPTS_GET(opts, data_size_out, 0); in bpf_prog_test_run_opts()
887 attr.test.ctx_in = ptr_to_u64(OPTS_GET(opts, ctx_in, NULL)); in bpf_prog_test_run_opts()
888 attr.test.ctx_out = ptr_to_u64(OPTS_GET(opts, ctx_out, NULL)); in bpf_prog_test_run_opts()
889 attr.test.data_in = ptr_to_u64(OPTS_GET(opts, data_in, NULL)); in bpf_prog_test_run_opts()
890 attr.test.data_out = ptr_to_u64(OPTS_GET(opts, data_out, NULL)); in bpf_prog_test_run_opts()
1037 log_buf = OPTS_GET(opts, log_buf, NULL); in bpf_btf_load()
1038 log_size = OPTS_GET(opts, log_size, 0); in bpf_btf_load()
1039 log_level = OPTS_GET(opts, log_level, 0); in bpf_btf_load()
1121 attr.prog_bind_map.flags = OPTS_GET(opts, flags, 0); in bpf_prog_bind_map()