Home
last modified time | relevance | path

Searched refs:create_opts (Results 1 – 6 of 6) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
H A Dksock_lsm.c21 struct bpf_ksock_create_opts create_opts = {}; in ksock_setup() local
26 create_opts.family = AF_INET; in ksock_setup()
27 create_opts.type = SOCK_DGRAM; in ksock_setup()
28 create_opts.protocol = IPPROTO_UDP; in ksock_setup()
30 ks = bpf_ksock_create(&create_opts, sizeof(create_opts), &err); in ksock_setup()
/linux/tools/testing/selftests/bpf/benchs/
H A Dbench_local_storage.c120 LIBBPF_OPTS(bpf_map_create_opts, create_opts); in __setup()
123 create_opts.map_flags = BPF_F_NO_PREALLOC; in __setup()
128 create_opts.btf_key_type_id = bpf_map__btf_key_type_id(inner_map); in __setup()
129 create_opts.btf_value_type_id = bpf_map__btf_value_type_id(inner_map); in __setup()
137 create_opts.btf_fd = bpf_object__btf_fd(ctx.skel->obj); in __setup()
148 sizeof(int), HASHMAP_SZ, &create_opts); in __setup()
151 sizeof(int), 0, &create_opts); in __setup()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dflow_dissector_reattach.c260 DECLARE_LIBBPF_OPTS(bpf_link_create_opts, create_opts); in test_link_update_no_old_prog()
264 link = bpf_link_create(prog1, netns, BPF_FLOW_DISSECTOR, &create_opts); in test_link_update_no_old_prog()
285 DECLARE_LIBBPF_OPTS(bpf_link_create_opts, create_opts); in test_link_update_replace_old_prog()
289 link = bpf_link_create(prog1, netns, BPF_FLOW_DISSECTOR, &create_opts); in test_link_update_replace_old_prog()
310 DECLARE_LIBBPF_OPTS(bpf_link_create_opts, create_opts); in test_link_update_same_prog()
314 link = bpf_link_create(prog1, netns, BPF_FLOW_DISSECTOR, &create_opts); in test_link_update_same_prog()
335 DECLARE_LIBBPF_OPTS(bpf_link_create_opts, create_opts); in test_link_update_invalid_opts()
339 link = bpf_link_create(prog1, netns, BPF_FLOW_DISSECTOR, &create_opts); in test_link_update_invalid_opts()
395 DECLARE_LIBBPF_OPTS(bpf_link_create_opts, create_opts); in test_link_update_invalid_prog()
399 link = bpf_link_create(prog1, netns, BPF_FLOW_DISSECTOR, &create_opts); in test_link_update_invalid_prog()
[all …]
H A Dcgroup_preorder.c117 LIBBPF_OPTS(bpf_link_create_opts, create_opts); in run_link_replace_test()
134 create_opts.flags = 0; in run_link_replace_test()
136 cgroup_fd, atype, &create_opts); in run_link_replace_test()
142 create_opts.flags = BPF_F_PREORDER; in run_link_replace_test()
144 cgroup_fd, atype, &create_opts); in run_link_replace_test()
/linux/tools/testing/selftests/bpf/map_tests/
H A Dlpm_trie_map_get_next_key.c63 LIBBPF_OPTS(bpf_map_create_opts, create_opts, in test_lpm_trie_map_get_next_key()
77 max_entries, &create_opts); in test_lpm_trie_map_get_next_key()
H A Dlpm_trie_map_batch_ops.c68 LIBBPF_OPTS(bpf_map_create_opts, create_opts, .map_flags = BPF_F_NO_PREALLOC); in test_lpm_trie_map_batch_ops()
82 max_entries, &create_opts); in test_lpm_trie_map_batch_ops()