Searched refs:xattr (Results 1 – 2 of 2) sorted by relevance
/tools/lib/bpf/ |
D | libbpf_probes.c | 71 struct bpf_load_program_attr xattr = {}; in probe_load() local 76 xattr.expected_attach_type = BPF_CGROUP_INET4_CONNECT; in probe_load() 79 xattr.kern_version = get_kernel_version(); in probe_load() 109 xattr.prog_type = prog_type; in probe_load() 110 xattr.insns = insns; in probe_load() 111 xattr.insns_cnt = insns_cnt; in probe_load() 112 xattr.license = "GPL"; in probe_load() 113 xattr.prog_ifindex = ifindex; in probe_load() 115 fd = bpf_load_program_xattr(&xattr, buf, buf_len); in probe_load()
|
/tools/testing/selftests/bpf/map_tests/ |
D | sk_storage_map.c | 22 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 …]
|