Home
last modified time | relevance | path

Searched refs:opts (Results 1 – 25 of 490) sorted by relevance

12345678910>>...20

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dverifier_log.c36 static int load_prog(struct bpf_prog_load_opts *opts, bool expect_load_error) in load_prog() argument
41 "GPL", insns, insn_cnt, opts); in load_prog()
49 LIBBPF_OPTS(bpf_prog_load_opts, opts); in verif_log_subtest()
77 opts.log_buf = logs.reference; in verif_log_subtest()
78 opts.log_size = sizeof(logs.reference); in verif_log_subtest()
79 opts.log_level = log_level | 8 /* BPF_LOG_FIXED */; in verif_log_subtest()
80 load_prog(&opts, expect_load_error); in verif_log_subtest()
100 opts.log_buf = logs.buf; in verif_log_subtest()
101 opts.log_level = log_level | 8; /* fixed-length log */ in verif_log_subtest()
102 opts in verif_log_subtest()
255 load_btf(struct bpf_btf_load_opts * opts,bool expect_err) load_btf() argument
[all...]
H A Dkprobe_multi_test.c68 static void test_link_api(struct bpf_link_create_opts *opts) in test_link_api() argument
79 link1_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_KPROBE_MULTI, opts); in test_link_api()
83 opts->kprobe_multi.flags = BPF_F_KPROBE_MULTI_RETURN; in test_link_api()
85 link2_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_KPROBE_MULTI, opts); in test_link_api()
107 LIBBPF_OPTS(bpf_link_create_opts, opts); in test_link_api_addrs()
119 opts.kprobe_multi.addrs = (const unsigned long*) addrs; in test_link_api_addrs()
120 opts.kprobe_multi.cnt = ARRAY_SIZE(addrs); in test_link_api_addrs()
121 test_link_api(&opts); in test_link_api_addrs()
126 LIBBPF_OPTS(bpf_link_create_opts, opts); in test_link_api_syms()
138 opts in test_link_api_syms()
144 test_attach_api(const char * pattern,struct bpf_kprobe_multi_opts * opts) test_attach_api() argument
490 do_bench_test(struct kprobe_multi_empty * skel,struct bpf_kprobe_multi_opts * opts) do_bench_test() argument
[all...]
H A Dlocal_kptr_stash.c11 LIBBPF_OPTS(bpf_test_run_opts, opts, in test_local_kptr_stash_simple()
23 ret = bpf_prog_test_run_opts(bpf_program__fd(skel->progs.stash_rb_nodes), &opts); in test_local_kptr_stash_simple()
25 ASSERT_OK(opts.retval, "local_kptr_stash_add_nodes retval"); in test_local_kptr_stash_simple()
32 LIBBPF_OPTS(bpf_test_run_opts, opts, in test_local_kptr_stash_plain()
44 ret = bpf_prog_test_run_opts(bpf_program__fd(skel->progs.stash_plain), &opts); in test_local_kptr_stash_plain()
46 ASSERT_OK(opts.retval, "local_kptr_stash_add_plain retval"); in test_local_kptr_stash_plain()
53 LIBBPF_OPTS(bpf_test_run_opts, opts, in test_local_kptr_stash_local_with_root()
65 ret = bpf_prog_test_run_opts(bpf_program__fd(skel->progs.stash_local_with_root), &opts); in test_local_kptr_stash_local_with_root()
67 ASSERT_OK(opts.retval, "local_kptr_stash_add_local_with_root retval"); in test_local_kptr_stash_local_with_root()
74 LIBBPF_OPTS(bpf_test_run_opts, opts, in test_local_kptr_stash_unstash()
[all …]
H A Dbpf_cookie.c25 DECLARE_LIBBPF_OPTS(bpf_kprobe_opts, opts); in kprobe_subtest()
30 opts.bpf_cookie = 0x1; in kprobe_subtest()
31 opts.retprobe = false; in kprobe_subtest()
33 SYS_NANOSLEEP_KPROBE_NAME, &opts); in kprobe_subtest()
37 opts.bpf_cookie = 0x2; in kprobe_subtest()
38 opts.retprobe = false; in kprobe_subtest()
40 SYS_NANOSLEEP_KPROBE_NAME, &opts); in kprobe_subtest()
45 opts.bpf_cookie = 0x10; in kprobe_subtest()
46 opts.retprobe = true; in kprobe_subtest()
48 SYS_NANOSLEEP_KPROBE_NAME, &opts); in kprobe_subtest()
[all...]
H A Dlog_buf.c38 LIBBPF_OPTS(bpf_object_open_opts, opts); in obj_load_log_buf()
52 opts.kernel_log_buf = obj_log_buf; in obj_load_log_buf()
53 opts.kernel_log_size = log_buf_sz; in obj_load_log_buf()
54 opts.kernel_log_level = 4; /* for BTF this will turn into 1 */ in obj_load_log_buf()
59 skel = test_log_buf__open_opts(&opts); in obj_load_log_buf()
106 opts.kernel_log_buf = NULL; /* let everything through into print callback */ in obj_load_log_buf()
107 opts.kernel_log_size = 0; in obj_load_log_buf()
108 opts.kernel_log_level = 1; in obj_load_log_buf()
110 skel = test_log_buf__open_opts(&opts); in obj_load_log_buf()
156 LIBBPF_OPTS(bpf_prog_load_opts, opts); in bpf_prog_load_log_buf()
[all …]
H A Draw_tp_test_run.c16 LIBBPF_OPTS(bpf_test_run_opts, opts, in test_raw_tp_test_run()
46 opts.ctx_in = args; in test_raw_tp_test_run()
47 opts.ctx_size_in = sizeof(__u64); in test_raw_tp_test_run()
49 err = bpf_prog_test_run_opts(prog_fd, &opts); in test_raw_tp_test_run()
52 opts.ctx_size_in = sizeof(args); in test_raw_tp_test_run()
53 err = bpf_prog_test_run_opts(prog_fd, &opts); in test_raw_tp_test_run()
55 ASSERT_EQ(opts.retval, expected_retval, "check_retval"); in test_raw_tp_test_run()
61 opts.cpu = i; in test_raw_tp_test_run()
62 opts.retval = 0; in test_raw_tp_test_run()
63 err = bpf_prog_test_run_opts(prog_fd, &opts); in test_raw_tp_test_run()
[all …]
H A Duprobe_multi_test.c270 __test_attach_api(const char *binary, const char *pattern, struct bpf_uprobe_multi_opts *opts, in __test_attach_api()
280 opts->retprobe = false; in __test_attach_api()
282 binary, pattern, opts); in __test_attach_api()
286 opts->retprobe = true; in __test_attach_api()
288 binary, pattern, opts); in __test_attach_api()
292 opts->retprobe = false; in __test_attach_api()
294 binary, pattern, opts); in __test_attach_api()
298 opts->retprobe = true; in __test_attach_api()
300 pid, binary, pattern, opts); in __test_attach_api()
304 opts in __test_attach_api()
269 __test_attach_api(const char * binary,const char * pattern,struct bpf_uprobe_multi_opts * opts,struct child * child) __test_attach_api() argument
332 test_attach_api(const char * binary,const char * pattern,struct bpf_uprobe_multi_opts * opts) test_attach_api() argument
[all...]
/linux/tools/objtool/
H A Dbuiltin-check.c23 struct opts opts; variable
38 opts.dump_orc = true; in parse_dump()
57 opts.hack_jump_label = true; in parse_hacks()
62 opts.hack_noinstr = true; in parse_hacks()
67 opts.hack_skylake = true; in parse_hacks()
76 OPT_STRING_OPTARG('d', "disas", &opts.disas, "function-pattern", "disassemble functions", "*"),
78 OPT_BOOLEAN('i', "ibt", &opts.ibt, "validate and annotate IBT"),
79 OPT_BOOLEAN(0, "klp-symids", &opts.klp_symids, "generate .klp.symids for duplicate symbol disambiguation"),
80 OPT_BOOLEAN('m', "mcount", &opts
[all...]
/linux/drivers/usb/gadget/function/
H A Du_ether_configfs.h19 struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \
21 usb_put_function_instance(&opts->func_inst); \
32 struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \
35 mutex_lock(&opts->lock); \
36 result = gether_get_dev_addr(opts->net, page, PAGE_SIZE); \
37 mutex_unlock(&opts->lock); \
45 struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \
48 mutex_lock(&opts->lock); \
49 if (opts->refcnt) { \
50 mutex_unlock(&opts->lock); \
[all …]
H A Duvc_configfs.c192 struct f_uvc_opts *opts; \
200 opts = to_f_uvc_opts(opts_item); \
202 mutex_lock(&opts->lock); \
204 mutex_unlock(&opts->lock); \
215 struct f_uvc_opts *opts; \
224 opts = to_f_uvc_opts(opts_item); \
226 mutex_lock(&opts->lock); \
227 if (ch->linked || opts->refcnt) { \
243 mutex_unlock(&opts->lock); \
310 struct f_uvc_opts *opts; \
346 struct f_uvc_opts *opts; uvcg_default_processing_bm_controls_store() local
401 struct f_uvc_opts *opts; uvcg_default_processing_bm_controls_show() local
515 struct f_uvc_opts *opts; uvcg_default_camera_bm_controls_store() local
571 struct f_uvc_opts *opts; uvcg_default_camera_bm_controls_show() local
679 struct f_uvc_opts *opts; uvcg_default_output_b_source_id_show() local
705 struct f_uvc_opts *opts; uvcg_default_output_b_source_id_store() local
825 struct f_uvc_opts *opts; uvcg_extension_b_num_controls_store() local
859 struct f_uvc_opts *opts; uvcg_extension_b_nr_in_pins_store() local
912 struct f_uvc_opts *opts; uvcg_extension_b_control_size_store() local
962 struct f_uvc_opts *opts; uvcg_extension_guid_extension_code_show() local
985 struct f_uvc_opts *opts; uvcg_extension_guid_extension_code_store() local
1014 struct f_uvc_opts *opts; uvcg_extension_ba_source_id_show() local
1042 struct f_uvc_opts *opts; uvcg_extension_ba_source_id_store() local
1093 struct f_uvc_opts *opts; uvcg_extension_bm_controls_show() local
1121 struct f_uvc_opts *opts; uvcg_extension_bm_controls_store() local
1220 struct f_uvc_opts *opts; uvcg_extension_drop_link() local
1252 struct f_uvc_opts *opts; uvcg_extension_drop() local
1271 struct f_uvc_opts *opts; uvcg_extension_make() local
1344 struct f_uvc_opts *opts; uvcg_control_class_allow_link() local
1386 struct f_uvc_opts *opts; uvcg_control_class_drop_link() local
1473 struct f_uvc_opts *opts; uvcg_default_control_b_interface_number_show() local
1498 struct f_uvc_opts *opts; uvcg_default_control_enable_interrupt_ep_show() local
1521 struct f_uvc_opts *opts; uvcg_default_control_enable_interrupt_ep_store() local
1675 struct f_uvc_opts *opts; uvcg_format_bma_controls_show() local
1702 struct f_uvc_opts *opts; uvcg_format_bma_controls_store() local
1743 struct f_uvc_opts *opts; uvcg_streaming_header_allow_link() local
1810 struct f_uvc_opts *opts; uvcg_streaming_header_drop_link() local
1998 struct f_uvc_opts *opts; uvcg_frame_b_frame_index_show() local
2043 struct f_uvc_opts *opts; uvcg_frame_dw_frame_interval_show() local
2069 struct f_uvc_opts *opts; uvcg_frame_dw_frame_interval_store() local
2162 struct f_uvc_opts *opts; uvcg_frame_make() local
2223 struct f_uvc_opts *opts; uvcg_frame_drop() local
2273 struct f_uvc_opts *opts; uvcg_uncompressed_guid_format_show() local
2295 struct f_uvc_opts *opts; uvcg_uncompressed_guid_format_store() local
2825 struct f_uvc_opts *opts; uvcg_framebased_guid_format_show() local
2847 struct f_uvc_opts *opts; uvcg_framebased_guid_format_store() local
3424 struct f_uvc_opts *opts; uvcg_streaming_class_allow_link() local
3497 struct f_uvc_opts *opts; uvcg_streaming_class_drop_link() local
3589 struct f_uvc_opts *opts; uvcg_default_streaming_b_interface_number_show() local
3637 struct f_uvc_opts *opts = to_f_uvc_opts(item); uvc_func_item_release() local
3648 struct f_uvc_opts *opts; uvc_func_allow_link() local
3686 struct f_uvc_opts *opts; uvc_func_drop_link() local
3822 uvcg_attach_configfs(struct f_uvc_opts * opts) uvcg_attach_configfs() argument
[all...]
H A Df_sourcesink.c456 struct f_ss_opts *opts; in sourcesink_free_func() local
458 opts = container_of(f->fi, struct f_ss_opts, func_inst); in sourcesink_free_func()
460 mutex_lock(&opts->lock); in sourcesink_free_func()
461 opts->refcnt--; in sourcesink_free_func()
462 mutex_unlock(&opts->lock); in sourcesink_free_func()
899 struct f_ss_opts *opts = to_f_ss_opts(item); in f_ss_opts_pattern_show() local
902 mutex_lock(&opts->lock); in f_ss_opts_pattern_show()
903 result = sprintf(page, "%u\n", opts->pattern); in f_ss_opts_pattern_show()
904 mutex_unlock(&opts->lock); in f_ss_opts_pattern_show()
912 struct f_ss_opts *opts = to_f_ss_opts(item); in f_ss_opts_pattern_store() local
[all …]
H A Df_subset.c411 struct f_gether_opts *opts; in geth_free_inst() local
413 opts = container_of(f, struct f_gether_opts, func_inst); in geth_free_inst()
414 if (device_is_registered(&opts->net->dev)) in geth_free_inst()
415 gether_cleanup(netdev_priv(opts->net)); in geth_free_inst()
417 free_netdev(opts->net); in geth_free_inst()
418 kfree(opts); in geth_free_inst()
423 struct f_gether_opts *opts; in geth_alloc_inst() local
425 opts = kzalloc_obj(*opts); in geth_alloc_inst()
426 if (!opts) in geth_alloc_inst()
428 mutex_init(&opts->lock); in geth_alloc_inst()
[all …]
/linux/drivers/nvme/host/
H A Dfabrics.c134 if (ctrl->opts->mask & NVMF_OPT_TRADDR) in nvmf_get_address()
135 len += scnprintf(buf, size, "traddr=%s", ctrl->opts->traddr); in nvmf_get_address()
136 if (ctrl->opts->mask & NVMF_OPT_TRSVCID) in nvmf_get_address()
138 (len) ? "," : "", ctrl->opts->trsvcid); in nvmf_get_address()
139 if (ctrl->opts->mask & NVMF_OPT_HOST_TRADDR) in nvmf_get_address()
141 (len) ? "," : "", ctrl->opts->host_traddr); in nvmf_get_address()
142 if (ctrl->opts->mask & NVMF_OPT_HOST_IFACE) in nvmf_get_address()
144 (len) ? "," : "", ctrl->opts->host_iface); in nvmf_get_address()
403 uuid_copy(&data->hostid, &ctrl->opts->host->id); in nvmf_connect_data_prep()
405 strscpy(data->subsysnqn, ctrl->opts in nvmf_connect_data_prep()
646 nvmf_lookup_transport(struct nvmf_ctrl_options * opts) nvmf_lookup_transport() argument
715 nvmf_parse_options(struct nvmf_ctrl_options * opts,const char * buf) nvmf_parse_options() argument
1125 nvmf_set_io_queues(struct nvmf_ctrl_options * opts,u32 nr_io_queues,u32 io_queues[HCTX_MAX_TYPES]) nvmf_set_io_queues() argument
1161 struct nvmf_ctrl_options *opts = ctrl->opts; nvmf_map_queues() local
1201 nvmf_check_required_opts(struct nvmf_ctrl_options * opts,unsigned int required_opts) nvmf_check_required_opts() argument
1222 nvmf_ip_options_match(struct nvme_ctrl * ctrl,struct nvmf_ctrl_options * opts) nvmf_ip_options_match() argument
1264 nvmf_check_allowed_opts(struct nvmf_ctrl_options * opts,unsigned int allowed_opts) nvmf_check_allowed_opts() argument
1284 nvmf_free_options(struct nvmf_ctrl_options * opts) nvmf_free_options() argument
1312 struct nvmf_ctrl_options *opts; nvmf_create_ctrl() local
[all...]
/linux/tools/testing/vsock/
H A Dvsock_test.c38 static void test_stream_connection_reset(const struct test_opts *opts) in test_stream_connection_reset() argument
46 .svm_port = opts->peer_port, in test_stream_connection_reset()
47 .svm_cid = opts->peer_cid, in test_stream_connection_reset()
74 static void test_stream_bind_only_client(const struct test_opts *opts) in test_stream_bind_only_client() argument
82 .svm_port = opts->peer_port, in test_stream_bind_only_client()
83 .svm_cid = opts->peer_cid, in test_stream_bind_only_client()
116 static void test_stream_bind_only_server(const struct test_opts *opts) in test_stream_bind_only_server() argument
120 fd = vsock_bind(VMADDR_CID_ANY, opts->peer_port, SOCK_STREAM); in test_stream_bind_only_server()
131 static void test_stream_client_close_client(const struct test_opts *opts) in test_stream_client_close_client() argument
135 fd = vsock_stream_connect(opts in test_stream_client_close_client()
145 test_stream_client_close_server(const struct test_opts * opts) test_stream_client_close_server() argument
166 test_stream_server_close_client(const struct test_opts * opts) test_stream_server_close_client() argument
187 test_stream_server_close_server(const struct test_opts * opts) test_stream_server_close_server() argument
206 test_stream_multiconn_client(const struct test_opts * opts) test_stream_multiconn_client() argument
230 test_stream_multiconn_server(const struct test_opts * opts) test_stream_multiconn_server() argument
256 test_msg_peek_client(const struct test_opts * opts,bool seqpacket) test_msg_peek_client() argument
283 test_msg_peek_server(const struct test_opts * opts,bool seqpacket) test_msg_peek_server() argument
339 test_stream_msg_peek_client(const struct test_opts * opts) test_stream_msg_peek_client() argument
344 test_stream_msg_peek_server(const struct test_opts * opts) test_stream_msg_peek_server() argument
349 test_stream_peek_after_recv_server(const struct test_opts * opts) test_stream_peek_after_recv_server() argument
385 test_seqpacket_msg_bounds_client(const struct test_opts * opts) test_seqpacket_msg_bounds_client() argument
466 test_seqpacket_msg_bounds_server(const struct test_opts * opts) test_seqpacket_msg_bounds_server() argument
537 test_seqpacket_msg_trunc_client(const struct test_opts * opts) test_seqpacket_msg_trunc_client() argument
554 test_seqpacket_msg_trunc_server(const struct test_opts * opts) test_seqpacket_msg_trunc_server() argument
604 test_seqpacket_timeout_client(const struct test_opts * opts) test_seqpacket_timeout_client() argument
651 test_seqpacket_timeout_server(const struct test_opts * opts) test_seqpacket_timeout_server() argument
665 test_seqpacket_bigmsg_client(const struct test_opts * opts) test_seqpacket_bigmsg_client() argument
710 test_seqpacket_bigmsg_server(const struct test_opts * opts) test_seqpacket_bigmsg_server() argument
728 test_seqpacket_invalid_rec_buffer_client(const struct test_opts * opts) test_seqpacket_invalid_rec_buffer_client() argument
763 test_seqpacket_invalid_rec_buffer_server(const struct test_opts * opts) test_seqpacket_invalid_rec_buffer_server() argument
846 test_stream_poll_rcvlowat_server(const struct test_opts * opts) test_stream_poll_rcvlowat_server() argument
874 test_stream_poll_rcvlowat_client(const struct test_opts * opts) test_stream_poll_rcvlowat_client() argument
939 test_inv_buf_client(const struct test_opts * opts,bool stream) test_inv_buf_client() argument
975 test_inv_buf_server(const struct test_opts * opts,bool stream) test_inv_buf_server() argument
999 test_stream_inv_buf_client(const struct test_opts * opts) test_stream_inv_buf_client() argument
1004 test_stream_inv_buf_server(const struct test_opts * opts) test_stream_inv_buf_server() argument
1009 test_seqpacket_inv_buf_client(const struct test_opts * opts) test_seqpacket_inv_buf_client() argument
1014 test_seqpacket_inv_buf_server(const struct test_opts * opts) test_seqpacket_inv_buf_server() argument
1022 test_stream_virtio_skb_merge_client(const struct test_opts * opts) test_stream_virtio_skb_merge_client() argument
1049 test_stream_virtio_skb_merge_server(const struct test_opts * opts) test_stream_virtio_skb_merge_server() argument
1090 test_seqpacket_msg_peek_client(const struct test_opts * opts) test_seqpacket_msg_peek_client() argument
1095 test_seqpacket_msg_peek_server(const struct test_opts * opts) test_seqpacket_msg_peek_server() argument
1168 test_stream_shutwr_client(const struct test_opts * opts) test_stream_shutwr_client() argument
1196 test_stream_shutwr_server(const struct test_opts * opts) test_stream_shutwr_server() argument
1211 test_stream_shutrd_client(const struct test_opts * opts) test_stream_shutrd_client() argument
1236 test_stream_shutrd_server(const struct test_opts * opts) test_stream_shutrd_server() argument
1257 test_double_bind_connect_server(const struct test_opts * opts) test_double_bind_connect_server() argument
1288 test_double_bind_connect_client(const struct test_opts * opts) test_double_bind_connect_client() argument
1309 test_unsent_bytes_server(const struct test_opts * opts,int type) test_unsent_bytes_server() argument
1326 test_unsent_bytes_client(const struct test_opts * opts,int type) test_unsent_bytes_client() argument
1355 test_unread_bytes_server(const struct test_opts * opts,int type) test_unread_bytes_server() argument
1375 test_unread_bytes_client(const struct test_opts * opts,int type) test_unread_bytes_client() argument
1403 test_stream_unsent_bytes_client(const struct test_opts * opts) test_stream_unsent_bytes_client() argument
1408 test_stream_unsent_bytes_server(const struct test_opts * opts) test_stream_unsent_bytes_server() argument
1413 test_seqpacket_unsent_bytes_client(const struct test_opts * opts) test_seqpacket_unsent_bytes_client() argument
1418 test_seqpacket_unsent_bytes_server(const struct test_opts * opts) test_seqpacket_unsent_bytes_server() argument
1423 test_stream_unread_bytes_client(const struct test_opts * opts) test_stream_unread_bytes_client() argument
1428 test_stream_unread_bytes_server(const struct test_opts * opts) test_stream_unread_bytes_server() argument
1433 test_seqpacket_unread_bytes_client(const struct test_opts * opts) test_seqpacket_unread_bytes_client() argument
1438 test_seqpacket_unread_bytes_server(const struct test_opts * opts) test_seqpacket_unread_bytes_server() argument
1451 test_stream_rcvlowat_def_cred_upd_client(const struct test_opts * opts) test_stream_rcvlowat_def_cred_upd_client() argument
1484 test_stream_credit_update_test(const struct test_opts * opts,bool low_rx_bytes_test) test_stream_credit_update_test() argument
1583 test_stream_cred_upd_on_low_rx_bytes(const struct test_opts * opts) test_stream_cred_upd_on_low_rx_bytes() argument
1588 test_stream_cred_upd_on_set_rcvlowat(const struct test_opts * opts) test_stream_cred_upd_on_set_rcvlowat() argument
1607 test_stream_leak_acceptq_client(const struct test_opts * opts) test_stream_leak_acceptq_client() argument
1625 test_stream_leak_acceptq_server(const struct test_opts * opts) test_stream_leak_acceptq_server() argument
1637 test_stream_msgzcopy_leak_errq_client(const struct test_opts * opts) test_stream_msgzcopy_leak_errq_client() argument
1661 test_stream_msgzcopy_leak_errq_server(const struct test_opts * opts) test_stream_msgzcopy_leak_errq_server() argument
1746 test_stream_msgzcopy_leak_zcskb_client(const struct test_opts * opts) test_stream_msgzcopy_leak_zcskb_client() argument
1809 test_stream_msgzcopy_leak_zcskb_server(const struct test_opts * opts) test_stream_msgzcopy_leak_zcskb_server() argument
1915 test_stream_transport_uaf_client(const struct test_opts * opts) test_stream_transport_uaf_client() argument
1932 test_stream_connect_retry_client(const struct test_opts * opts) test_stream_connect_retry_client() argument
1958 test_stream_connect_retry_server(const struct test_opts * opts) test_stream_connect_retry_server() argument
2001 test_stream_transport_change_client(const struct test_opts * opts) test_stream_transport_change_client() argument
2114 test_stream_transport_change_server(const struct test_opts * opts) test_stream_transport_change_server() argument
2153 test_stream_linger_client(const struct test_opts * opts) test_stream_linger_client() argument
2167 test_stream_linger_server(const struct test_opts * opts) test_stream_linger_server() argument
2184 test_stream_nolinger_client(const struct test_opts * opts) test_stream_nolinger_client() argument
2214 test_stream_nolinger_server(const struct test_opts * opts) test_stream_nolinger_server() argument
2228 test_stream_accepted_setsockopt_client(const struct test_opts * opts) test_stream_accepted_setsockopt_client() argument
2241 test_stream_accepted_setsockopt_server(const struct test_opts * opts) test_stream_accepted_setsockopt_server() argument
2255 test_stream_tx_credit_bounds_client(const struct test_opts * opts) test_stream_tx_credit_bounds_client() argument
2323 test_stream_tx_credit_bounds_server(const struct test_opts * opts) test_stream_tx_credit_bounds_server() argument
2361 test_stream_collapse_client(const struct test_opts * opts) test_stream_collapse_client() argument
2400 test_stream_collapse_server(const struct test_opts * opts) test_stream_collapse_server() argument
2731 struct test_opts opts = { main() local
[all...]
/linux/net/mptcp/
H A Doptions.c469 unsigned int *size, struct mptcp_out_options *opts) in mptcp_syn_options()
488 opts->suboptions = OPTION_MPTCP_MPC_SYN; in mptcp_syn_options()
489 opts->csum_reqd = mptcp_is_checksum_enabled(sock_net(sk)); in mptcp_syn_options()
490 opts->allow_join_id0 = mptcp_allow_join_id0(sock_net(sk)); in mptcp_syn_options()
496 opts->suboptions = OPTION_MPTCP_MPJ_SYN; in mptcp_syn_options()
497 opts->join_id = subflow->local_id; in mptcp_syn_options()
498 opts->token = subflow->remote_token; in mptcp_syn_options()
499 opts->nonce = subflow->local_nonce; in mptcp_syn_options()
500 opts->backup = subflow->request_bkup; in mptcp_syn_options()
518 struct mptcp_out_options *opts) in mptcp_established_options_mp()
466 mptcp_syn_options(struct sock * sk,const struct sk_buff * skb,unsigned int * size,struct mptcp_out_options * opts) mptcp_syn_options() argument
515 mptcp_established_options_mp(struct sock * sk,struct sk_buff * skb,bool snd_data_fin_enable,int * size,struct mptcp_out_options * opts) mptcp_established_options_mp() argument
628 mptcp_established_options_dss(struct sock * sk,struct sk_buff * skb,bool snd_data_fin_enable,int * size,struct mptcp_out_options * opts) mptcp_established_options_dss() argument
725 mptcp_established_options_add_addr(struct sock * sk,struct sk_buff * skb,int * size,unsigned int remaining,bool has_ts,struct mptcp_out_options * opts) mptcp_established_options_add_addr() argument
764 mptcp_established_options_rm_addr(struct sock * sk,int * size,unsigned int remaining,struct mptcp_out_options * opts) mptcp_established_options_rm_addr() argument
786 mptcp_established_options_mp_prio(struct sock * sk,int * size,unsigned int remaining,struct mptcp_out_options * opts) mptcp_established_options_mp_prio() argument
812 mptcp_established_options_rst(struct sock * sk,int * size,unsigned int remaining,struct mptcp_out_options * opts) mptcp_established_options_rst() argument
830 mptcp_established_options_fastclose(struct sock * sk,int * size,unsigned int remaining,struct mptcp_out_options * opts) mptcp_established_options_fastclose() argument
852 mptcp_established_options_mp_fail(struct sock * sk,int * size,unsigned int remaining,struct mptcp_out_options * opts) mptcp_established_options_mp_fail() argument
874 mptcp_established_options(struct sock * sk,struct sk_buff * skb,unsigned int remaining,bool has_ts,struct mptcp_out_options * opts) mptcp_established_options() argument
949 mptcp_synack_options(const struct request_sock * req,unsigned int * size,struct mptcp_out_options * opts) mptcp_synack_options() argument
1473 mptcp_write_options(struct tcphdr * th,__be32 * ptr,struct tcp_sock * tp,struct mptcp_out_options * opts) mptcp_write_options() argument
[all...]
/linux/tools/lib/bpf/
H A Dlibbpf_probes.c110 LIBBPF_OPTS(bpf_prog_load_opts, opts, in probe_prog_load()
121 opts.expected_attach_type = BPF_CGROUP_INET4_CONNECT; in probe_prog_load()
124 opts.expected_attach_type = BPF_CGROUP_GETSOCKOPT; in probe_prog_load()
127 opts.expected_attach_type = BPF_SK_LOOKUP; in probe_prog_load()
130 opts.kern_version = get_kernel_version(); in probe_prog_load()
133 opts.expected_attach_type = BPF_LIRC_MODE2; in probe_prog_load()
137 opts.log_buf = buf; in probe_prog_load()
138 opts.log_size = sizeof(buf); in probe_prog_load()
139 opts.log_level = 1; in probe_prog_load()
141 opts in probe_prog_load()
205 libbpf_probe_bpf_prog_type(enum bpf_prog_type prog_type,const void * opts) libbpf_probe_bpf_prog_type() argument
405 libbpf_probe_bpf_map_type(enum bpf_map_type map_type,const void * opts) libbpf_probe_bpf_map_type() argument
417 libbpf_probe_bpf_helper(enum bpf_prog_type prog_type,enum bpf_func_id helper_id,const void * opts) libbpf_probe_bpf_helper() argument
[all...]
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_bpf_nf_fail.c36 struct bpf_ct_opts___local opts = {}; in alloc_release()
40 ct = bpf_skb_ct_alloc(ctx, &tup, sizeof(tup.ipv4), &opts, sizeof(opts)); in alloc_release()
50 struct bpf_ct_opts___local opts = {}; in insert_insert()
54 ct = bpf_skb_ct_alloc(ctx, &tup, sizeof(tup.ipv4), &opts, sizeof(opts)); in insert_insert()
67 struct bpf_ct_opts___local opts = {}; in lookup_insert()
71 ct = bpf_skb_ct_lookup(ctx, &tup, sizeof(tup.ipv4), &opts, sizeof(opts)); in lookup_insert()
81 struct bpf_ct_opts___local opts in write_not_allowlisted_field()
31 struct bpf_ct_opts___local opts = {}; alloc_release() local
45 struct bpf_ct_opts___local opts = {}; insert_insert() local
62 struct bpf_ct_opts___local opts = {}; lookup_insert() local
76 struct bpf_ct_opts___local opts = {}; write_not_allowlisted_field() local
90 struct bpf_ct_opts___local opts = {}; set_timeout_after_insert() local
107 struct bpf_ct_opts___local opts = {}; set_status_after_insert() local
124 struct bpf_ct_opts___local opts = {}; change_timeout_after_alloc() local
138 struct bpf_ct_opts___local opts = {}; change_status_after_alloc() local
[all...]
/linux/tools/testing/selftests/net/netfilter/
H A Dnf_queue.c34 static struct options opts; in help()
96 if (opts.verbose > 0) in queue_cb()
105 if (opts.verbose > 0) { in queue_cb()
119 if (opts.count_packets) in queue_cb()
233 queue_num = opts.queue_num; in open_queue()
243 flags = opts.gso_enabled ? NFQA_CFG_F_GSO : 0; in open_queue()
245 if (opts.failopen) in open_queue()
256 tv.tv_sec = opts.timeout; in open_queue()
257 if (opts.timeout && setsockopt(mnl_socket_get_fd(nl), in open_queue()
299 if (opts in mainloop()
32 static struct options opts; global() variable
[all...]
/linux/tools/perf/util/
H A Drecord.c95 void evlist__config(struct evlist *evlist, struct record_opts *opts, struct callchain_param *callchain) in evlist__config() argument
100 bool sample_id = opts->sample_id; in evlist__config()
103 opts->no_inherit = true; in evlist__config()
108 evsel__config(evsel, opts, callchain); in evlist__config()
117 if (opts->full_auxtrace || opts->sample_identifier) { in evlist__config()
150 static int record_opts__config_freq(struct record_opts *opts) in record_opts__config_freq() argument
152 bool user_freq = opts->user_freq != UINT_MAX; in record_opts__config_freq()
153 bool user_interval = opts->user_interval != ULLONG_MAX; in record_opts__config_freq()
162 opts in record_opts__config_freq()
216 record_opts__config(struct record_opts * opts) record_opts__config() argument
274 struct record_opts *opts = opt->value; record__parse_freq() local
[all...]
/linux/tools/perf/arch/x86/util/
H A Dintel-bts.c111 struct record_opts *opts) in intel_bts_recording_options()
120 if (opts->auxtrace_sample_mode) { in intel_bts_recording_options()
126 btsr->snapshot_mode = opts->auxtrace_snapshot_mode; in intel_bts_recording_options()
138 opts->full_auxtrace = true; in intel_bts_recording_options()
142 if (opts->auxtrace_snapshot_mode && !opts->full_auxtrace) { in intel_bts_recording_options()
147 if (!opts->full_auxtrace) in intel_bts_recording_options()
150 if (opts->full_auxtrace && !perf_cpu_map__is_any_cpu_or_is_empty(cpus)) { in intel_bts_recording_options()
156 if (opts->auxtrace_snapshot_mode) { in intel_bts_recording_options()
157 if (!opts in intel_bts_recording_options()
107 intel_bts_recording_options(struct auxtrace_record * itr,struct evlist * evlist,struct record_opts * opts) intel_bts_recording_options() argument
252 intel_bts_parse_snapshot_options(struct auxtrace_record * itr,struct record_opts * opts,const char * str) intel_bts_parse_snapshot_options() argument
[all...]
/linux/tools/testing/selftests/bpf/libarena/include/libarena/
H A Duserspace.h15 LIBBPF_OPTS(bpf_test_run_opts, opts); in libarena_run_prog()
18 ret = bpf_prog_test_run_opts(prog_fd, &opts); in libarena_run_prog()
22 return opts.retval; in libarena_run_prog()
43 LIBBPF_OPTS(bpf_test_run_opts, opts); in libarena_run_prog_args()
46 opts.ctx_in = args; in libarena_run_prog_args()
47 opts.ctx_size_in = argsize; in libarena_run_prog_args()
49 ret = bpf_prog_test_run_opts(prog_fd, &opts); in libarena_run_prog_args()
51 return ret ?: opts.retval; in libarena_run_prog_args()
57 LIBBPF_OPTS(bpf_test_run_opts, opts); in libarena_get_arena_base()
61 opts.ctx_in = &args; in libarena_get_arena_base()
[all …]
/linux/drivers/net/ppp/
H A Dppp_mppe.h34 #define MPPE_OPTS_TO_CI(opts, ci) \ argument
39 if (opts & MPPE_OPT_STATEFUL) \
48 if (opts & MPPE_OPT_128) \
50 if (opts & MPPE_OPT_40) \
56 #define MPPE_CI_TO_OPTS(ci, opts) \ argument
60 opts = 0; \
64 opts |= MPPE_OPT_STATEFUL; \
68 opts |= MPPE_OPT_128; \
70 opts |= MPPE_OPT_40; \
74 opts |= MPPE_OPT_56; \
[all …]
/linux/net/xfrm/
H A Dxfrm_state_bpf.c59 * @opts - Options for lookup (documented above)
65 bpf_xdp_get_xfrm_state(struct xdp_md *ctx, struct bpf_xfrm_state_opts *opts, u32 opts__sz) in bpf_xdp_get_xfrm_state() argument
71 if (opts__sz < sizeof(opts->error)) in bpf_xdp_get_xfrm_state()
75 opts->error = -EINVAL; in bpf_xdp_get_xfrm_state()
79 if (unlikely(opts->netns_id < BPF_F_CURRENT_NETNS)) { in bpf_xdp_get_xfrm_state()
80 opts->error = -EINVAL; in bpf_xdp_get_xfrm_state()
84 if (opts->netns_id >= 0) { in bpf_xdp_get_xfrm_state()
85 net = get_net_ns_by_id(net, opts->netns_id); in bpf_xdp_get_xfrm_state()
87 opts->error = -ENONET; in bpf_xdp_get_xfrm_state()
92 x = xfrm_state_lookup(net, opts in bpf_xdp_get_xfrm_state()
[all...]
/linux/tools/perf/arch/arm64/util/
H A Darm-spe.c191 arm_spe_snapshot_resolve_auxtrace_defaults(struct record_opts *opts, in arm_spe_snapshot_resolve_auxtrace_defaults()
208 if (!opts->auxtrace_snapshot_size && !opts->auxtrace_mmap_pages) { in arm_spe_snapshot_resolve_auxtrace_defaults()
210 opts->auxtrace_mmap_pages = MiB(4) / page_size; in arm_spe_snapshot_resolve_auxtrace_defaults()
212 opts->auxtrace_mmap_pages = KiB(128) / page_size; in arm_spe_snapshot_resolve_auxtrace_defaults()
213 if (opts->mmap_pages == UINT_MAX) in arm_spe_snapshot_resolve_auxtrace_defaults()
214 opts->mmap_pages = KiB(256) / page_size; in arm_spe_snapshot_resolve_auxtrace_defaults()
216 } else if (!opts->auxtrace_mmap_pages && !privileged && opts->mmap_pages == UINT_MAX) { in arm_spe_snapshot_resolve_auxtrace_defaults()
217 opts in arm_spe_snapshot_resolve_auxtrace_defaults()
190 arm_spe_snapshot_resolve_auxtrace_defaults(struct record_opts * opts,bool privileged) arm_spe_snapshot_resolve_auxtrace_defaults() argument
297 arm_spe_setup_aux_buffer(struct record_opts * opts) arm_spe_setup_aux_buffer() argument
361 arm_spe_setup_tracking_event(struct evlist * evlist,struct record_opts * opts) arm_spe_setup_tracking_event() argument
393 arm_spe_recording_options(struct auxtrace_record * itr,struct evlist * evlist,struct record_opts * opts) arm_spe_recording_options() argument
446 arm_spe_parse_snapshot_options(struct auxtrace_record * itr __maybe_unused,struct record_opts * opts,const char * str) arm_spe_parse_snapshot_options() argument
[all...]
/linux/tools/perf/
H A Dbuiltin-record.c158 struct record_opts opts;
222 return rec->opts.threads_spec;
526 struct record_opts *opts = (struct record_opts *)opt->value; in record__aio_parse()
529 opts->nr_cblocks = 0; in record__aio_parse()
532 opts->nr_cblocks = strtol(str, NULL, 0); in record__aio_parse()
533 if (!opts->nr_cblocks) in record__aio_parse()
534 opts->nr_cblocks = nr_cblocks_default; in record__aio_parse()
564 return rec->opts.nr_cblocks > 0;
573 struct record_opts *opts = (struct record_opts *)opt->value; in record__mmap_flush_parse()
586 opts in record__mmap_flush_parse()
156 struct record_opts opts; global() member
524 struct record_opts *opts = (struct record_opts *)opt->value; record__aio_parse() local
571 struct record_opts *opts = (struct record_opts *)opt->value; record__mmap_flush_parse() local
605 struct record_opts *opts = opt->value; record__parse_comp_level() local
938 struct record_opts *opts = &rec->opts; record__config_tracking_events() local
1286 struct record_opts *opts = &rec->opts; record__mmap_evlist() local
1351 struct record_opts *opts = &rec->opts; record__open() local
2088 struct record_opts *opts = &rec->opts; record__synthesize() local
2222 struct record_opts *opts = &rec->opts; record__setup_sb_evlist() local
2431 struct record_opts *opts = &rec->opts; __cmd_record() local
3087 struct record_opts *opts = (struct record_opts *)opt->value; record__parse_affinity() local
3144 struct record_opts *opts = opt->value; record__parse_threads() local
3203 struct record_opts *opts = opt->value; record__parse_mmap_pages() local
3246 struct record_opts *opts = opt->value; record__parse_off_cpu_thresh() local
3272 struct record_opts *opts = opt->value; parse_control_option() local
3415 struct record_opts *opts = opt->value; parse_record_synth_option() local
[all...]

12345678910>>...20