Searched refs:opts (Results 1 - 25 of 518) sorted by last modified time

1234567891011>>

/linux-master/tools/testing/selftests/net/netfilter/
H A Dnf_queue.c29 static struct options opts; variable in typeref:struct:options
90 if (opts.verbose > 0)
99 if (opts.verbose > 0) {
113 if (opts.count_packets)
227 queue_num = opts.queue_num;
237 flags = opts.gso_enabled ? NFQA_CFG_F_GSO : 0;
248 tv.tv_sec = opts.timeout;
249 if (opts.timeout && setsockopt(mnl_socket_get_fd(nl),
313 if (opts.delay_ms)
314 sleep_ms(opts
[all...]
H A Dconnect_close.c19 } opts = { variable in typeref:struct:__anon3756
37 alarm(opts.timeout);
76 .sin_port = htons(opts.port),
93 .sin_port = htons(opts.port),
113 opts.timeout = atoi(optarg);
116 opts.port = atoi(optarg);
/linux-master/tools/testing/selftests/net/
H A Dgro.c470 tcp_write_options(buf + total_hdr_len + 2 /* two NOP opts */,
1248 static const struct option opts[] = { local
1263 while ((c = getopt_long(argc, argv, "46d:D:i:rs:S:t:v", opts, NULL)) != -1) {
/linux-master/tools/testing/selftests/bpf/
H A Dxskxceiver.c1657 LIBBPF_OPTS(bpf_xdp_query_opts, opts);
2514 LIBBPF_OPTS(bpf_link_create_opts, opts, .flags = flags);
H A Dxdp_hw_metadata.c565 LIBBPF_OPTS(bpf_xdp_attach_opts, opts);
570 opts.old_prog_fd = bpf_program__fd(bpf_obj->progs.rx);
571 if (opts.old_prog_fd >= 0) {
573 ret = bpf_xdp_detach(ifindex, XDP_FLAGS, &opts);
H A Dveristat.c210 static const struct argp_option opts[] = { variable in typeref:struct:argp_option
346 .options = opts,
1062 LIBBPF_OPTS(bpf_object_open_opts, opts);
1082 obj = bpf_object__open_file(filename, &opts);
1112 tobj = bpf_object__open_file(filename, &opts);
H A Dtesting_helpers.c264 LIBBPF_OPTS(bpf_prog_load_opts, opts);
270 opts.prog_flags = prog_flags[i];
272 insns, insn_cnt, &opts);
286 LIBBPF_OPTS(bpf_object_open_opts, opts,
294 obj = bpf_object__open_file(file, &opts);
328 LIBBPF_OPTS(bpf_prog_load_opts, opts,
336 return bpf_prog_load(type, NULL, license, insns, insns_cnt, &opts);
H A Dtest_tcp_check_syncookie_user.c142 static int v6only_true(int fd, const struct post_socket_opts *opts) argument
149 static int v6only_false(int fd, const struct post_socket_opts *opts) argument
158 struct network_helper_opts opts = { 0 }; local
205 opts.post_socket_cb = v6only_true;
207 sizeof(addr6), &opts);
211 opts.post_socket_cb = v6only_false;
213 sizeof(addr6dual), &opts);
H A Dtest_cpp.cpp21 int open(const struct bpf_object_open_opts *opts = nullptr)
28 skel = T::open(opts);
60 LIBBPF_OPTS(bpf_object_open_opts, opts);
62 err = skel.open(&opts);
100 struct btf_dump_opts opts = { }; local
117 btf_dump__new(btf, dump_printf, nullptr, &opts);
H A Dnetwork_helpers.c84 const struct network_helper_opts *opts)
88 fd = socket(addr->sa_family, type, opts->proto);
94 if (settimeo(fd, opts->timeout_ms))
97 if (opts->post_socket_cb && opts->post_socket_cb(fd, NULL)) {
124 struct network_helper_opts opts = { local
133 return __start_server(type, (struct sockaddr *)&addr, addrlen, &opts);
136 static int reuseport_cb(int fd, const struct post_socket_opts *opts) argument
146 struct network_helper_opts opts = { local
165 fds[0] = __start_server(type, (struct sockaddr *)&addr, addrlen, &opts);
83 __start_server(int type, const struct sockaddr *addr, socklen_t addrlen, const struct network_helper_opts *opts) argument
186 start_server_addr(int type, const struct sockaddr_storage *addr, socklen_t len, const struct network_helper_opts *opts) argument
268 connect_to_addr(int type, const struct sockaddr_storage *addr, socklen_t addrlen, const struct network_helper_opts *opts) argument
295 connect_to_fd_opts(int server_fd, const struct network_helper_opts *opts) argument
359 struct network_helper_opts opts = { local
[all...]
H A Dnetwork_helpers.h33 int (*post_socket_cb)(int fd, const struct post_socket_opts *opts);
59 const struct network_helper_opts *opts);
62 const struct network_helper_opts *opts);
64 int connect_to_fd_opts(int server_fd, const struct network_helper_opts *opts);
/linux-master/tools/testing/selftests/bpf/progs/
H A Dtest_tunnel_kern.c34 bpf_xdp_get_xfrm_state(struct xdp_md *ctx, struct bpf_xfrm_state_opts *opts,
969 struct bpf_xfrm_state_opts opts = {}; local
991 opts.netns_id = BPF_F_CURRENT_NETNS;
992 opts.daddr.a4 = iph->daddr;
993 opts.spi = esph->spi;
994 opts.proto = IPPROTO_ESP;
995 opts.family = AF_INET;
997 x = bpf_xdp_get_xfrm_state(xdp, &opts, sizeof(opts));
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dxdp_do_redirect.c43 DECLARE_LIBBPF_OPTS(bpf_tc_opts, opts, .handle = 1, .priority = 1, .prog_fd = fd);
50 ret = bpf_tc_attach(hook, &opts);
72 DECLARE_LIBBPF_OPTS(bpf_test_run_opts, opts,
78 err = bpf_prog_test_run_opts(fd, &opts);
81 opts.data_size_in += 1;
82 err = bpf_prog_test_run_opts(fd, &opts);
97 DECLARE_LIBBPF_OPTS(bpf_test_run_opts, opts,
222 err = bpf_prog_test_run_opts(xdp_prog_fd, &opts);
H A Dtest_tunnel.c633 LIBBPF_OPTS(bpf_xdp_attach_opts, opts);
665 err = bpf_xdp_attach(ifindex, xdp_prog_fd, XDP_FLAGS_REPLACE, &opts);
H A Dsockopt.c968 LIBBPF_OPTS(bpf_prog_load_opts, opts,
982 fd = bpf_prog_load(prog_type, NULL, "GPL", insns, insns_cnt, &opts);
H A Dsockopt_inherit.c73 static int custom_cb(int fd, const struct post_socket_opts *opts) argument
95 struct network_helper_opts opts = { local
125 sizeof(addr), &opts);
H A Dsockmap_basic.c137 DECLARE_LIBBPF_OPTS(bpf_link_update_opts, opts);
177 opts.old_prog_fd = bpf_program__fd(prog_clone2);
178 opts.flags = BPF_F_REPLACE;
179 err = bpf_link_update(bpf_link__fd(link), bpf_program__fd(prog), &opts);
183 opts.old_prog_fd = bpf_program__fd(prog_clone);
184 opts.flags = BPF_F_REPLACE;
185 err = bpf_link_update(bpf_link__fd(link), bpf_program__fd(prog), &opts);
251 DECLARE_LIBBPF_OPTS(bpf_iter_attach_opts, opts);
295 opts.link_info = &linfo;
296 opts
[all...]
H A Dsock_addr.c228 const struct network_helper_opts *opts)
283 const struct network_helper_opts *opts);
227 kernel_connect_to_addr(int type, const struct sockaddr_storage *addr, socklen_t addrlen, const struct network_helper_opts *opts) argument
H A Dmptcp.c88 struct network_helper_opts opts = { local
98 return start_server_addr(SOCK_STREAM, &addr, addrlen, &opts);
H A Dkprobe_multi_test.c63 static void test_link_api(struct bpf_link_create_opts *opts) argument
74 link1_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_KPROBE_MULTI, opts);
78 opts->kprobe_multi.flags = BPF_F_KPROBE_MULTI_RETURN;
80 link2_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_KPROBE_MULTI, opts);
102 LIBBPF_OPTS(bpf_link_create_opts, opts);
114 opts.kprobe_multi.addrs = (const unsigned long*) addrs;
115 opts.kprobe_multi.cnt = ARRAY_SIZE(addrs);
116 test_link_api(&opts);
121 LIBBPF_OPTS(bpf_link_create_opts, opts);
133 opts
139 test_attach_api(const char *pattern, struct bpf_kprobe_multi_opts *opts) argument
613 do_bench_test(struct kprobe_multi_empty *skel, struct bpf_kprobe_multi_opts *opts) argument
[all...]
H A Dip_check_defrag.c83 LIBBPF_OPTS(bpf_netfilter_opts, opts,
94 skel->links.defrag = bpf_program__attach_netfilter(skel->progs.defrag, &opts);
H A Dcrypto_sanity.c86 LIBBPF_OPTS(bpf_test_run_opts, opts);
125 err = bpf_prog_test_run_opts(pfd, &opts);
127 !ASSERT_OK(opts.retval, "skb_crypto_setup retval"))
H A Dbpf_tcp_ca.c174 struct network_helper_opts opts = { local
198 cli_fd = connect_to_fd_opts(lfd, &opts);
407 DECLARE_LIBBPF_OPTS(bpf_link_update_opts, opts);
428 opts.old_map_fd = bpf_map__fd(skel->maps.ca_update_1);
429 opts.flags = BPF_F_REPLACE;
432 &opts);
436 opts.old_map_fd = bpf_map__fd(skel->maps.ca_update_2);
439 &opts);
H A Dbpf_cookie.c24 DECLARE_LIBBPF_OPTS(bpf_kprobe_opts, opts);
29 opts.bpf_cookie = 0x1;
30 opts.retprobe = false;
32 SYS_NANOSLEEP_KPROBE_NAME, &opts);
36 opts.bpf_cookie = 0x2;
37 opts.retprobe = false;
39 SYS_NANOSLEEP_KPROBE_NAME, &opts);
44 opts.bpf_cookie = 0x10;
45 opts.retprobe = true;
47 SYS_NANOSLEEP_KPROBE_NAME, &opts);
[all...]
/linux-master/tools/testing/selftests/bpf/benchs/
H A Dbench_trigger.c23 static const struct argp_option opts[] = { variable in typeref:struct:argp_option
51 .options = opts,

Completed in 199 milliseconds

1234567891011>>