Home
last modified time | relevance | path

Searched defs:map_fd (Results 1 – 25 of 148) sorted by relevance

123456

/aosp_15_r20/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
H A Dtailcalls.c11 int err, map_fd, prog_fd, main_fd, i, j; in test_tailcall_1() local
147 int err, map_fd, prog_fd, main_fd, i; in test_tailcall_2() local
223 int err, map_fd, prog_fd, main_fd, data_fd, i, val; in test_tailcall_count() local
319 int err, map_fd, prog_fd, main_fd, data_fd, i; in test_tailcall_4() local
409 int err, map_fd, prog_fd, main_fd, data_fd, i, key[] = { 1111, 1234, 5678 }; in test_tailcall_5() local
499 int err, map_fd, prog_fd, main_fd, i; in test_tailcall_bpf2bpf_1() local
583 int err, map_fd, prog_fd, main_fd, data_fd, i, val; in test_tailcall_bpf2bpf_2() local
663 int err, map_fd, prog_fd, main_fd, i; in test_tailcall_bpf2bpf_3() local
757 int err, map_fd, prog_fd, main_fd, data_fd, i; in test_tailcall_bpf2bpf_4() local
842 int err, map_fd, prog_fd, main_fd, data_fd, i, val; in test_tailcall_bpf2bpf_6() local
H A Dlookup_and_delete.c13 static int fill_values(int map_fd) in fill_values()
27 static int fill_values_percpu(int map_fd) in fill_values_percpu()
45 int *map_fd) in setup_prog()
102 int map_fd, err; in test_lookup_and_delete_hash() local
138 int map_fd, err, i; in test_lookup_and_delete_percpu_hash() local
178 int map_fd, err; in test_lookup_and_delete_lru_hash() local
224 int map_fd, err, i, cpucnt = 0; in test_lookup_and_delete_lru_percpu_hash() local
H A Dmap_init.c20 static int map_populate(int map_fd, int num) in map_populate()
39 int *map_fd, int populate) in setup()
133 int map_fd, err; in test_pcpu_map_init() local
173 int map_fd, err; in test_pcpu_lru_map_init() local
H A Dglobal_data.c7 int i, err, map_fd; in test_global_data_number() local
42 int i, err, map_fd; in test_global_data_string() local
77 int i, err, map_fd; in test_global_data_struct() local
105 int err = -ENOMEM, map_fd, zero = 0; in test_global_data_rdonly() local
H A Dbpf_iter.c774 int err, i, len, map_fd, iter_fd; in test_bpf_hash_map() local
867 int err, i, j, len, map_fd, iter_fd; in test_bpf_percpu_hash_map() local
951 int err, i, map_fd, iter_fd; in test_bpf_array_map() local
1044 int err, i, j, map_fd, iter_fd; in test_bpf_percpu_array_map() local
1115 int err, len, map_fd, iter_fd; in test_bpf_sk_storage_delete() local
1178 int err, map_fd, val = -1; in test_bpf_sk_storage_get() local
1237 int err, i, len, map_fd, iter_fd, num_sockets; in test_bpf_sk_storage_map() local
H A Dmptcp.c23 static int verify_tsk(int map_fd, int client_fd) in verify_tsk()
61 static int verify_msk(int map_fd, int client_fd, __u32 token) in verify_msk()
96 int client_fd, prog_fd, map_fd, err; in run_test() local
H A Dtest_bprm_opts.c16 static int update_storage(int map_fd, int secureexec) in update_storage()
32 static int run_set_secureexec(int map_fd, int secureexec) in run_set_secureexec()
H A Dxdp_cpumap_attach.c19 int err, prog_fd, map_fd; in test_xdp_with_cpumap_helpers() local
79 int err, frags_prog_fd, map_fd; in test_xdp_with_cpumap_frags_helpers() local
H A Dmap_lock.c23 int err, map_fd = *(u32 *) arg; in parallel_map_access() local
53 int prog_fd, map_fd[2], vars[17] = {}; in test_map_lock() local
H A Dxdp_devmap_attach.c20 int err, dm_fd, map_fd; in test_xdp_with_devmap_helpers() local
92 int err, dm_fd_frags, map_fd; in test_xdp_with_devmap_frags_helpers() local
/aosp_15_r20/hardware/google/graphics/common/libion/test/
Dmap_test.cpp38 int map_fd = -1; in TEST_F() local
63 int map_fd = -1; in TEST_F() local
99 int map_fd = -1; in TEST_F() local
125 int map_fd = -1; in TEST_F() local
148 int map_fd = -1; in TEST_F() local
167 int map_fd = -1; in TEST_F() local
/aosp_15_r20/external/linux-kselftest/tools/testing/selftests/bpf/map_tests/
H A Dsk_storage_map.c144 int btf_fd, map_fd; in create_sk_storage_map() local
166 int i, map_fd, err, *sk_fds; in insert_close_thread() local
225 int i, map_fd = -1, err = 0, nr_threads_created = 0; in do_sk_storage_map_stress_free() local
283 int map_fd = READ_ONCE(sk_storage_map); in update_thread() local
307 int map_fd = READ_ONCE(sk_storage_map); in delete_thread() local
331 int i, sk_fd, map_fd = -1, err = 0, nr_threads_created = 0; in do_sk_storage_map_stress_change() local
463 int btf_fd, map_fd, sk_fd, err; in test_sk_storage_map_basic() local
H A Dlpm_trie_map_batch_ops.c22 static void map_batch_update(int map_fd, __u32 max_entries, in map_batch_update()
70 int map_fd, *values, *visited; in test_lpm_trie_map_batch_ops() local
H A Darray_map_batch_ops.c15 static void map_batch_update(int map_fd, __u32 max_entries, int *keys, in map_batch_update()
72 int map_fd, *keys, *visited; in __test_map_lookup_and_update_batch() local
/aosp_15_r20/packages/modules/Connectivity/bpf/syscall_wrappers/include/
DBpfSyscallWrappers.h80 inline int writeToMapEntry(const borrowed_fd& map_fd, const void* key, const void* value, in writeToMapEntry()
90 inline int findMapEntry(const borrowed_fd& map_fd, const void* key, void* value) { in findMapEntry()
98 inline int deleteMapEntry(const borrowed_fd& map_fd, const void* key) { in deleteMapEntry()
105 inline int getNextMapKey(const borrowed_fd& map_fd, const void* key, void* next_key) { in getNextMapKey()
113 inline int getFirstMapKey(const borrowed_fd& map_fd, void* firstKey) { in getFirstMapKey()
117 inline int bpfFdPin(const borrowed_fd& map_fd, const char* pathname) { in bpfFdPin()
/aosp_15_r20/packages/modules/UprobeStats/src/bpf/syscall_wrappers/include/
DBpfSyscallWrappers.h83 inline int writeToMapEntry(const BPF_FD_TYPE map_fd, const void* key, const void* value, in writeToMapEntry()
93 inline int findMapEntry(const BPF_FD_TYPE map_fd, const void* key, void* value) { in findMapEntry()
101 inline int deleteMapEntry(const BPF_FD_TYPE map_fd, const void* key) { in deleteMapEntry()
108 inline int getNextMapKey(const BPF_FD_TYPE map_fd, const void* key, void* next_key) { in getNextMapKey()
116 inline int getFirstMapKey(const BPF_FD_TYPE map_fd, void* firstKey) { in getFirstMapKey()
120 inline int bpfFdPin(const BPF_FD_TYPE map_fd, const char* pathname) { in bpfFdPin()
/aosp_15_r20/system/memory/libion/tests/
Dmap_test.cpp34 int map_fd = -1; in TEST_F() local
55 int map_fd = -1; in TEST_F() local
87 int map_fd = -1; in TEST_F() local
112 int map_fd = -1; in TEST_F() local
/aosp_15_r20/system/memory/libdmabufheap/tests/
Ddmabuf_heap_test.cpp38 int map_fd = allocator->AllocSystem(cpu_access_needed, kAllocSizeInBytes); in DoAlloc() local
179 int ret = 0, map_fd = -1; in TEST_F() local
225 int map_fd = allocator->Alloc(kDmabufSystemHeapName, kAllocSizeInBytes); in TEST_F() local
260 int map_fd = allocator->Alloc(kDmabufSystemHeapName, size); in TEST_F() local
310 int map_fd = allocator->AllocSystem(cpu_access_needed, kAllocSizeInBytes); in TEST_F() local
/aosp_15_r20/external/libbpf/src/
H A Dringbuf.c32 int map_fd; member
50 int map_fd; member
75 int ring_buffer__add(struct ring_buffer *rb, int map_fd, in ring_buffer__add()
190 ring_buffer__new(int map_fd, ring_buffer_sample_fn sample_cb, void *ctx, in ring_buffer__new()
410 static int user_ringbuf_map(struct user_ring_buffer *rb, int map_fd) in user_ringbuf_map()
480 user_ring_buffer__new(int map_fd, const struct user_ring_buffer_opts *opts) in user_ring_buffer__new()
/aosp_15_r20/external/linux-kselftest/tools/testing/selftests/bpf/
H A Dtest_lpm_map.c428 int map_fd; in test_lpm_delete() local
538 int map_fd; in test_lpm_get_next_key() local
685 int map_fd; member
730 static void setup_lpm_mt_test_info(struct lpm_mt_test_info *info, int map_fd) in setup_lpm_mt_test_info()
750 int i, map_fd; in test_lpm_multi_thread() local
H A Dtest_skb_cgroup_id_user.c85 int map_fd = -1; in get_map_fd_by_prog_id() local
120 int map_fd; in check_ancestor_cgroup_ids() local
H A Dtest_lru_map.c31 int map_fd; in create_map() local
545 static void do_test_lru_sanity5(unsigned long long last_key, int map_fd) in do_test_lru_sanity5()
566 int map_fd; in test_lru_sanity5() local
/aosp_15_r20/kernel/tests/net/test/
H A Dbpf.py230 def UpdateMap(map_fd, key, value, flags=0): argument
239 def LookupMap(map_fd, key): argument
248 def GetNextKey(map_fd, key): argument
263 def GetFirstKey(map_fd): argument
267 def DeleteMap(map_fd, key): argument
407 def BpfLoadMapFd(map_fd, dst): argument
/aosp_15_r20/external/bcc/libbpf-tools/
H A Dmap_helpers.c14 dump_hash_iter(int map_fd, void *keys, __u32 key_size, in dump_hash_iter()
49 dump_hash_batch(int map_fd, void *keys, __u32 key_size, in dump_hash_batch()
73 int dump_hash(int map_fd, in dump_hash()
/aosp_15_r20/external/strace/
H A Dbpf_attr.h75 uint32_t map_fd; member
85 uint32_t map_fd; member
96 uint32_t map_fd; member
105 uint32_t map_fd; member

123456