Home
last modified time | relevance | path

Searched refs:xattr (Results 1 – 5 of 5) sorted by relevance

/tools/lib/bpf/
Dlibbpf_probes.c71 struct bpf_load_program_attr xattr = {}; in probe_load() local
76 xattr.expected_attach_type = BPF_CGROUP_INET4_CONNECT; in probe_load()
79 xattr.expected_attach_type = BPF_CGROUP_GETSOCKOPT; in probe_load()
82 xattr.expected_attach_type = BPF_SK_LOOKUP; in probe_load()
85 xattr.kern_version = get_kernel_version(); in probe_load()
118 xattr.prog_type = prog_type; in probe_load()
119 xattr.insns = insns; in probe_load()
120 xattr.insns_cnt = insns_cnt; in probe_load()
121 xattr.license = "GPL"; in probe_load()
122 xattr.prog_ifindex = ifindex; in probe_load()
[all …]
/tools/testing/selftests/bpf/map_tests/
Dsk_storage_map.c22 static struct bpf_create_map_attr xattr = { variable
153 xattr.btf_fd = btf_fd; in create_sk_storage_map()
155 map_fd = bpf_create_map_xattr(&xattr); in create_sk_storage_map()
156 xattr.btf_fd = -1; in create_sk_storage_map()
472 xattr.btf_fd = btf_fd; in test_sk_storage_map_basic()
478 map_fd = bpf_create_map_xattr(&xattr); in test_sk_storage_map_basic()
563 memcpy(&bad_xattr, &xattr, sizeof(xattr)); in test_sk_storage_map_basic()
569 memcpy(&bad_xattr, &xattr, sizeof(xattr)); in test_sk_storage_map_basic()
575 memcpy(&bad_xattr, &xattr, sizeof(xattr)); in test_sk_storage_map_basic()
581 memcpy(&bad_xattr, &xattr, sizeof(xattr)); in test_sk_storage_map_basic()
[all …]
Dlpm_trie_map_batch_ops.c67 struct bpf_create_map_attr xattr = { in test_lpm_trie_map_batch_ops() local
85 xattr.max_entries = max_entries; in test_lpm_trie_map_batch_ops()
86 map_fd = bpf_create_map_xattr(&xattr); in test_lpm_trie_map_batch_ops()
Darray_map_batch_ops.c71 struct bpf_create_map_attr xattr = { in __test_map_lookup_and_update_batch() local
89 xattr.max_entries = max_entries; in __test_map_lookup_and_update_batch()
90 map_fd = bpf_create_map_xattr(&xattr); in __test_map_lookup_and_update_batch()
Dhtab_map_batch_ops.c86 struct bpf_create_map_attr xattr = { in __test_map_lookup_and_delete_batch() local
98 xattr.max_entries = max_entries; in __test_map_lookup_and_delete_batch()
99 map_fd = bpf_create_map_xattr(&xattr); in __test_map_lookup_and_delete_batch()