Searched refs:opts (Results 1 - 25 of 512) sorted by relevance

1234567891011>>

/linux-master/tools/testing/vsock/
H A Dvsock_test_zerocopy.h6 void test_stream_msgzcopy_client(const struct test_opts *opts);
7 void test_stream_msgzcopy_server(const struct test_opts *opts);
9 void test_seqpacket_msgzcopy_client(const struct test_opts *opts);
10 void test_seqpacket_msgzcopy_server(const struct test_opts *opts);
12 void test_stream_msgzcopy_empty_errq_client(const struct test_opts *opts);
13 void test_stream_msgzcopy_empty_errq_server(const struct test_opts *opts);
H A Dvsock_test.c29 static void test_stream_connection_reset(const struct test_opts *opts) argument
37 .svm_port = opts->peer_port,
38 .svm_cid = opts->peer_cid,
65 static void test_stream_bind_only_client(const struct test_opts *opts) argument
73 .svm_port = opts->peer_port,
74 .svm_cid = opts->peer_cid,
107 static void test_stream_bind_only_server(const struct test_opts *opts) argument
115 .svm_port = opts->peer_port,
137 static void test_stream_client_close_client(const struct test_opts *opts) argument
141 fd = vsock_stream_connect(opts
151 test_stream_client_close_server(const struct test_opts *opts) argument
172 test_stream_server_close_client(const struct test_opts *opts) argument
193 test_stream_server_close_server(const struct test_opts *opts) argument
212 test_stream_multiconn_client(const struct test_opts *opts) argument
236 test_stream_multiconn_server(const struct test_opts *opts) argument
262 test_msg_peek_client(const struct test_opts *opts, bool seqpacket) argument
289 test_msg_peek_server(const struct test_opts *opts, bool seqpacket) argument
345 test_stream_msg_peek_client(const struct test_opts *opts) argument
350 test_stream_msg_peek_server(const struct test_opts *opts) argument
358 test_seqpacket_msg_bounds_client(const struct test_opts *opts) argument
428 test_seqpacket_msg_bounds_server(const struct test_opts *opts) argument
503 test_seqpacket_msg_trunc_client(const struct test_opts *opts) argument
520 test_seqpacket_msg_trunc_server(const struct test_opts *opts) argument
570 test_seqpacket_timeout_client(const struct test_opts *opts) argument
619 test_seqpacket_timeout_server(const struct test_opts *opts) argument
633 test_seqpacket_bigmsg_client(const struct test_opts *opts) argument
670 test_seqpacket_bigmsg_server(const struct test_opts *opts) argument
688 test_seqpacket_invalid_rec_buffer_client(const struct test_opts *opts) argument
723 test_seqpacket_invalid_rec_buffer_server(const struct test_opts *opts) argument
806 test_stream_poll_rcvlowat_server(const struct test_opts *opts) argument
834 test_stream_poll_rcvlowat_client(const struct test_opts *opts) argument
902 test_inv_buf_client(const struct test_opts *opts, bool stream) argument
938 test_inv_buf_server(const struct test_opts *opts, bool stream) argument
962 test_stream_inv_buf_client(const struct test_opts *opts) argument
967 test_stream_inv_buf_server(const struct test_opts *opts) argument
972 test_seqpacket_inv_buf_client(const struct test_opts *opts) argument
977 test_seqpacket_inv_buf_server(const struct test_opts *opts) argument
985 test_stream_virtio_skb_merge_client(const struct test_opts *opts) argument
1012 test_stream_virtio_skb_merge_server(const struct test_opts *opts) argument
1053 test_seqpacket_msg_peek_client(const struct test_opts *opts) argument
1058 test_seqpacket_msg_peek_server(const struct test_opts *opts) argument
1101 test_stream_shutwr_client(const struct test_opts *opts) argument
1129 test_stream_shutwr_server(const struct test_opts *opts) argument
1144 test_stream_shutrd_client(const struct test_opts *opts) argument
1169 test_stream_shutrd_server(const struct test_opts *opts) argument
1190 test_double_bind_connect_server(const struct test_opts *opts) argument
1221 test_double_bind_connect_client(const struct test_opts *opts) argument
1249 test_stream_rcvlowat_def_cred_upd_client(const struct test_opts *opts) argument
1282 test_stream_credit_update_test(const struct test_opts *opts, bool low_rx_bytes_test) argument
1396 test_stream_cred_upd_on_low_rx_bytes(const struct test_opts *opts) argument
1401 test_stream_cred_upd_on_set_rcvlowat(const struct test_opts *opts) argument
1614 struct test_opts opts = { local
[all...]
/linux-master/tools/objtool/
H A Dbuiltin-check.c17 struct opts opts; variable in typeref:struct:opts
32 opts.dump_orc = true;
51 opts.hack_jump_label = true;
56 opts.hack_noinstr = true;
61 opts.hack_skylake = true;
71 OPT_BOOLEAN('i', "ibt", &opts.ibt, "validate and annotate IBT"),
72 OPT_BOOLEAN('m', "mcount", &opts.mcount, "annotate mcount/fentry calls for ftrace"),
73 OPT_BOOLEAN('n', "noinstr", &opts.noinstr, "validate noinstr rules"),
74 OPT_BOOLEAN('o', "orc", &opts
[all...]
/linux-master/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) argument
41 "GPL", insns, insn_cnt, opts);
49 LIBBPF_OPTS(bpf_prog_load_opts, opts);
77 opts.log_buf = logs.reference;
78 opts.log_size = sizeof(logs.reference);
79 opts.log_level = log_level | 8 /* BPF_LOG_FIXED */;
80 load_prog(&opts, expect_load_error);
100 opts.log_buf = logs.buf;
101 opts.log_level = log_level | 8; /* fixed-length log */
102 opts
255 load_btf(struct bpf_btf_load_opts *opts, bool expect_err) argument
[all...]
H A Dxdp_context_test_run.c6 void test_xdp_context_error(int prog_fd, struct bpf_test_run_opts opts, argument
21 opts.ctx_in = &ctx;
22 opts.ctx_size_in = sizeof(ctx);
23 err = bpf_prog_test_run_opts(prog_fd, &opts);
34 DECLARE_LIBBPF_OPTS(bpf_test_run_opts, opts,
50 opts.ctx_in = bad_ctx;
51 opts.ctx_size_in = sizeof(bad_ctx);
52 err = bpf_prog_test_run_opts(prog_fd, &opts);
58 opts.ctx_in = &ctx_in;
59 opts
[all...]
H A Draw_tp_test_run.c16 LIBBPF_OPTS(bpf_test_run_opts, opts,
46 opts.ctx_in = args;
47 opts.ctx_size_in = sizeof(__u64);
49 err = bpf_prog_test_run_opts(prog_fd, &opts);
52 opts.ctx_size_in = sizeof(args);
53 err = bpf_prog_test_run_opts(prog_fd, &opts);
55 ASSERT_EQ(opts.retval, expected_retval, "check_retval");
61 opts.cpu = i;
62 opts.retval = 0;
63 err = bpf_prog_test_run_opts(prog_fd, &opts);
[all...]
H A Dlocal_kptr_stash.c11 LIBBPF_OPTS(bpf_test_run_opts, opts,
23 ret = bpf_prog_test_run_opts(bpf_program__fd(skel->progs.stash_rb_nodes), &opts);
25 ASSERT_OK(opts.retval, "local_kptr_stash_add_nodes retval");
32 LIBBPF_OPTS(bpf_test_run_opts, opts,
44 ret = bpf_prog_test_run_opts(bpf_program__fd(skel->progs.stash_plain), &opts);
46 ASSERT_OK(opts.retval, "local_kptr_stash_add_plain retval");
53 LIBBPF_OPTS(bpf_test_run_opts, opts,
65 ret = bpf_prog_test_run_opts(bpf_program__fd(skel->progs.stash_local_with_root), &opts);
67 ASSERT_OK(opts.retval, "local_kptr_stash_add_local_with_root retval");
74 LIBBPF_OPTS(bpf_test_run_opts, opts,
[all...]
H A Drefcounted_kptr.c22 LIBBPF_OPTS(bpf_test_run_opts, opts,
34 ret = bpf_prog_test_run_opts(bpf_program__fd(skel->progs.rbtree_wrong_owner_remove_fail_a1), &opts);
36 ASSERT_OK(opts.retval, "rbtree_wrong_owner_remove_fail_a1 retval");
38 ret = bpf_prog_test_run_opts(bpf_program__fd(skel->progs.rbtree_wrong_owner_remove_fail_b), &opts);
40 ASSERT_OK(opts.retval, "rbtree_wrong_owner_remove_fail_b retval");
42 ret = bpf_prog_test_run_opts(bpf_program__fd(skel->progs.rbtree_wrong_owner_remove_fail_a2), &opts);
44 ASSERT_OK(opts.retval, "rbtree_wrong_owner_remove_fail_a2 retval");
H A Djit_probe_mem.c10 LIBBPF_OPTS(bpf_test_run_opts, opts,
22 ret = bpf_prog_test_run_opts(bpf_program__fd(skel->progs.test_jit_probe_mem), &opts);
24 ASSERT_OK(opts.retval, "jit_probe_mem opts.retval");
H A Dkprobe_multi_testmod_test.c20 static void test_testmod_attach_api(struct bpf_kprobe_multi_opts *opts) argument
32 NULL, opts);
36 opts->retprobe = true;
39 NULL, opts);
52 LIBBPF_OPTS(bpf_kprobe_multi_opts, opts);
62 opts.addrs = (const unsigned long *) addrs;
63 opts.cnt = ARRAY_SIZE(addrs);
65 test_testmod_attach_api(&opts);
70 LIBBPF_OPTS(bpf_kprobe_multi_opts, opts);
77 opts
[all...]
H A Dpe_preserve_elems.c13 DECLARE_LIBBPF_OPTS(bpf_test_run_opts, opts);
30 err = bpf_prog_test_run_opts(bpf_program__fd(prog), &opts);
33 if (CHECK(opts.retval != 0, "bpf_perf_event_read_value",
34 "failed with %d\n", opts.retval))
40 err = bpf_prog_test_run_opts(bpf_program__fd(prog), &opts);
45 CHECK(opts.retval != 0, "bpf_perf_event_read_value",
46 "failed with %d\n", opts.retval);
48 CHECK(opts.retval != -ENOENT, "bpf_perf_event_read_value",
50 opts.retval);
H A Dkprobe_multi_test.c61 static void test_link_api(struct bpf_link_create_opts *opts) argument
72 link1_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_KPROBE_MULTI, opts);
76 opts->kprobe_multi.flags = BPF_F_KPROBE_MULTI_RETURN;
78 link2_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_KPROBE_MULTI, opts);
100 LIBBPF_OPTS(bpf_link_create_opts, opts);
112 opts.kprobe_multi.addrs = (const unsigned long*) addrs;
113 opts.kprobe_multi.cnt = ARRAY_SIZE(addrs);
114 test_link_api(&opts);
119 LIBBPF_OPTS(bpf_link_create_opts, opts);
131 opts
137 test_attach_api(const char *pattern, struct bpf_kprobe_multi_opts *opts) argument
[all...]
H A Dnetfilter_link_attach.c37 LIBBPF_OPTS(bpf_netfilter_opts, opts);
54 #define X(opts, m, i) opts.m = nf_hook_link_tests[(i)].m
55 X(opts, pf, i);
56 X(opts, hooknum, i);
57 X(opts, priority, i);
58 X(opts, flags, i);
60 link = bpf_program__attach_netfilter(prog, &opts);
67 link2 = bpf_program__attach_netfilter(prog, &opts);
73 link2 = bpf_program__attach_netfilter(prog, &opts);
[all...]
/linux-master/drivers/net/ppp/
H A Dppp_mppe.h9 /* unsupported opts */
33 /* Build a CI from mppe opts (see RFC 3078) */
34 #define MPPE_OPTS_TO_CI(opts, ci) \
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) \
60 opts = 0; \
64 opts |= MPPE_OPT_STATEFUL; \
68 opts |
[all...]
/linux-master/tools/perf/util/
H A Ddata-convert.h15 struct perf_data_convert_opts *opts);
19 struct perf_data_convert_opts *opts);
H A Dparse-sublevel-options.h9 int perf_parse_sublevel_options(const char *str, struct sublevel_option *opts);
H A Dclockid.c70 struct record_opts *opts = (struct record_opts *)opt->value; local
75 opts->use_clockid = 0;
84 if (opts->use_clockid)
87 opts->use_clockid = true;
90 if (sscanf(str, "%d", &opts->clockid) == 1)
91 return get_clockid_res(opts->clockid, &opts->clockid_res_ns);
99 opts->clockid = cm->clockid;
100 return get_clockid_res(opts->clockid,
101 &opts
[all...]
H A Drecord.c95 void evlist__config(struct evlist *evlist, struct record_opts *opts, struct callchain_param *callchain) argument
100 bool sample_id = opts->sample_id;
103 opts->no_inherit = true;
108 evsel__config(evsel, opts, callchain);
117 if (opts->full_auxtrace || opts->sample_identifier) {
150 static int record_opts__config_freq(struct record_opts *opts) argument
152 bool user_freq = opts->user_freq != UINT_MAX;
153 bool user_interval = opts->user_interval != ULLONG_MAX;
162 opts
216 record_opts__config(struct record_opts *opts) argument
274 struct record_opts *opts = opt->value; local
[all...]
/linux-master/tools/perf/arch/arm64/util/
H A Dmachine.c13 void arch__add_leaf_frame_record_opts(struct record_opts *opts) argument
17 opts->sample_user_regs |= sample_reg_masks[PERF_REG_ARM64_LR].mask;
H A Darm-spe.c68 arm_spe_snapshot_resolve_auxtrace_defaults(struct record_opts *opts, argument
85 if (!opts->auxtrace_snapshot_size && !opts->auxtrace_mmap_pages) {
87 opts->auxtrace_mmap_pages = MiB(4) / page_size;
89 opts->auxtrace_mmap_pages = KiB(128) / page_size;
90 if (opts->mmap_pages == UINT_MAX)
91 opts->mmap_pages = KiB(256) / page_size;
93 } else if (!opts->auxtrace_mmap_pages && !privileged && opts->mmap_pages == UINT_MAX) {
94 opts
135 arm_spe_recording_options(struct auxtrace_record *itr, struct evlist *evlist, struct record_opts *opts) argument
280 arm_spe_parse_snapshot_options(struct auxtrace_record *itr __maybe_unused, struct record_opts *opts, const char *str) argument
[all...]
/linux-master/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) argument
71 if (!opts || opts__sz < sizeof(opts->error))
75 opts->error = -EINVAL;
79 if (unlikely(opts->netns_id < BPF_F_CURRENT_NETNS)) {
80 opts->error = -EINVAL;
84 if (opts->netns_id >= 0) {
85 net = get_net_ns_by_id(net, opts->netns_id);
87 opts
[all...]
/linux-master/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
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Dtest_bpf_nf_fail.c30 struct bpf_ct_opts___local opts = {}; local
34 ct = bpf_skb_ct_alloc(ctx, &tup, sizeof(tup.ipv4), &opts, sizeof(opts));
44 struct bpf_ct_opts___local opts = {}; local
48 ct = bpf_skb_ct_alloc(ctx, &tup, sizeof(tup.ipv4), &opts, sizeof(opts));
61 struct bpf_ct_opts___local opts = {}; local
65 ct = bpf_skb_ct_lookup(ctx, &tup, sizeof(tup.ipv4), &opts, sizeof(opts));
75 struct bpf_ct_opts___local opts local
89 struct bpf_ct_opts___local opts = {}; local
106 struct bpf_ct_opts___local opts = {}; local
123 struct bpf_ct_opts___local opts = {}; local
137 struct bpf_ct_opts___local opts = {}; local
[all...]
/linux-master/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dxtlv.c14 static int brcmf_xtlv_header_size(u16 opts) argument
18 if (opts & BRCMF_XTLV_OPTION_IDU8)
20 if (opts & BRCMF_XTLV_OPTION_LENU8)
26 int brcmf_xtlv_data_size(int dlen, u16 opts) argument
30 hsz = brcmf_xtlv_header_size(opts);
31 if (opts & BRCMF_XTLV_OPTION_ALIGN32)
38 const u8 *data, u16 opts)
43 if (!(opts & mask)) {
50 } else if ((opts & mask) == mask) { /* u8 id and u8 len */
57 } else if (opts
37 brcmf_xtlv_pack_header(struct brcmf_xtlv *xtlv, u16 id, u16 len, const u8 *data, u16 opts) argument
[all...]
/linux-master/tools/lib/bpf/
H A Dlibbpf_probes.c107 LIBBPF_OPTS(bpf_prog_load_opts, opts,
118 opts.expected_attach_type = BPF_CGROUP_INET4_CONNECT;
121 opts.expected_attach_type = BPF_CGROUP_GETSOCKOPT;
124 opts.expected_attach_type = BPF_SK_LOOKUP;
127 opts.kern_version = get_kernel_version();
130 opts.expected_attach_type = BPF_LIRC_MODE2;
134 opts.log_buf = buf;
135 opts.log_size = sizeof(buf);
136 opts.log_level = 1;
138 opts
205 libbpf_probe_bpf_prog_type(enum bpf_prog_type prog_type, const void *opts) argument
405 libbpf_probe_bpf_map_type(enum bpf_map_type map_type, const void *opts) argument
416 libbpf_probe_bpf_helper(enum bpf_prog_type prog_type, enum bpf_func_id helper_id, const void *opts) argument
[all...]

Completed in 264 milliseconds

1234567891011>>