• Home
  • Raw
  • Download

Lines Matching refs:opts

457 				const struct bpf_map_batch_opts *opts)  in bpf_map_batch_common()  argument
462 if (!OPTS_VALID(opts, bpf_map_batch_opts)) in bpf_map_batch_common()
472 attr.batch.elem_flags = OPTS_GET(opts, elem_flags, 0); in bpf_map_batch_common()
473 attr.batch.flags = OPTS_GET(opts, flags, 0); in bpf_map_batch_common()
482 const struct bpf_map_batch_opts *opts) in bpf_map_delete_batch() argument
485 NULL, keys, NULL, count, opts); in bpf_map_delete_batch()
490 const struct bpf_map_batch_opts *opts) in bpf_map_lookup_batch() argument
493 out_batch, keys, values, count, opts); in bpf_map_lookup_batch()
498 const struct bpf_map_batch_opts *opts) in bpf_map_lookup_and_delete_batch() argument
502 count, opts); in bpf_map_lookup_and_delete_batch()
506 const struct bpf_map_batch_opts *opts) in bpf_map_update_batch() argument
509 keys, values, count, opts); in bpf_map_update_batch()
536 DECLARE_LIBBPF_OPTS(bpf_prog_attach_opts, opts, in bpf_prog_attach()
540 return bpf_prog_attach_xattr(prog_fd, target_fd, type, &opts); in bpf_prog_attach()
545 const struct bpf_prog_attach_opts *opts) in bpf_prog_attach_xattr() argument
549 if (!OPTS_VALID(opts, bpf_prog_attach_opts)) in bpf_prog_attach_xattr()
556 attr.attach_flags = OPTS_GET(opts, flags, 0); in bpf_prog_attach_xattr()
557 attr.replace_bpf_fd = OPTS_GET(opts, replace_prog_fd, 0); in bpf_prog_attach_xattr()
587 const struct bpf_link_create_opts *opts) in bpf_link_create() argument
592 if (!OPTS_VALID(opts, bpf_link_create_opts)) in bpf_link_create()
595 iter_info_len = OPTS_GET(opts, iter_info_len, 0); in bpf_link_create()
596 target_btf_id = OPTS_GET(opts, target_btf_id, 0); in bpf_link_create()
605 attr.link_create.flags = OPTS_GET(opts, flags, 0); in bpf_link_create()
609 ptr_to_u64(OPTS_GET(opts, iter_info, (void *)0)); in bpf_link_create()
629 const struct bpf_link_update_opts *opts) in bpf_link_update() argument
633 if (!OPTS_VALID(opts, bpf_link_update_opts)) in bpf_link_update()
639 attr.link_update.flags = OPTS_GET(opts, flags, 0); in bpf_link_update()
640 attr.link_update.old_prog_fd = OPTS_GET(opts, old_prog_fd, 0); in bpf_link_update()
727 int bpf_prog_test_run_opts(int prog_fd, struct bpf_test_run_opts *opts) in bpf_prog_test_run_opts() argument
732 if (!OPTS_VALID(opts, bpf_test_run_opts)) in bpf_prog_test_run_opts()
737 attr.test.cpu = OPTS_GET(opts, cpu, 0); in bpf_prog_test_run_opts()
738 attr.test.flags = OPTS_GET(opts, flags, 0); in bpf_prog_test_run_opts()
739 attr.test.repeat = OPTS_GET(opts, repeat, 0); in bpf_prog_test_run_opts()
740 attr.test.duration = OPTS_GET(opts, duration, 0); in bpf_prog_test_run_opts()
741 attr.test.ctx_size_in = OPTS_GET(opts, ctx_size_in, 0); in bpf_prog_test_run_opts()
742 attr.test.ctx_size_out = OPTS_GET(opts, ctx_size_out, 0); in bpf_prog_test_run_opts()
743 attr.test.data_size_in = OPTS_GET(opts, data_size_in, 0); in bpf_prog_test_run_opts()
744 attr.test.data_size_out = OPTS_GET(opts, data_size_out, 0); in bpf_prog_test_run_opts()
745 attr.test.ctx_in = ptr_to_u64(OPTS_GET(opts, ctx_in, NULL)); in bpf_prog_test_run_opts()
746 attr.test.ctx_out = ptr_to_u64(OPTS_GET(opts, ctx_out, NULL)); in bpf_prog_test_run_opts()
747 attr.test.data_in = ptr_to_u64(OPTS_GET(opts, data_in, NULL)); in bpf_prog_test_run_opts()
748 attr.test.data_out = ptr_to_u64(OPTS_GET(opts, data_out, NULL)); in bpf_prog_test_run_opts()
751 OPTS_SET(opts, data_size_out, attr.test.data_size_out); in bpf_prog_test_run_opts()
752 OPTS_SET(opts, ctx_size_out, attr.test.ctx_size_out); in bpf_prog_test_run_opts()
753 OPTS_SET(opts, duration, attr.test.duration); in bpf_prog_test_run_opts()
754 OPTS_SET(opts, retval, attr.test.retval); in bpf_prog_test_run_opts()
920 const struct bpf_prog_bind_opts *opts) in bpf_prog_bind_map() argument
924 if (!OPTS_VALID(opts, bpf_prog_bind_opts)) in bpf_prog_bind_map()
930 attr.prog_bind_map.flags = OPTS_GET(opts, flags, 0); in bpf_prog_bind_map()