Home
last modified time | relevance | path

Searched refs:fd_array (Results 1 – 8 of 8) sorted by relevance

/linux/tools/testing/selftests/net/
H A Dbind_bhash.c28 static int fd_array[MAX_THREADS][MAX_CONNECTIONS]; variable
114 pthread_create(&tid[i], NULL, setup, fd_array[i]); in main()
140 close(fd_array[i][j]); in main()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dfd_array.c98 static int __load_test_prog(int map_fd, const int *fd_array, int fd_array_cnt) in __load_test_prog() argument
112 opts.fd_array = fd_array; in __load_test_prog()
118 static int load_test_prog(const int *fd_array, int fd_array_cnt) in load_test_prog() argument
127 ret = __load_test_prog(map_fd, fd_array, fd_array_cnt); in load_test_prog()
146 * Load a program, which uses one map. No fd_array maps are present.
165 * fd_array with fd_array_cnt=2. On return three maps are expected to be bound
204 * Load a program with a few extra maps duplicated in the fd_array.
244 * passed in fd_array, then they will be referenced only once
290 * Check that fd_array operate
[all...]
/linux/tools/perf/tests/shell/
H A Dtest_intel_pt.sh185 fd_array[fd] = fd
195 if (fd in fd_array) {
209 if (fd in fd_array) {
210 if (fd_to in fd_array) {
223 print "Checking " length(fd_array) " fds"
224 for (fd in fd_array) {
/linux/Documentation/bpf/
H A Dlinux-notes.rst28 Linux uses an fd_array to store maps associated with a BPF program. Thus,
/linux/include/uapi/linux/
H A Dbpf.h1596 __aligned_u64 fd_array; /* array of FDs */
1609 * fd_array array. In this case all the [map] file descriptors
1614 * then the fd_array[0,...,fd_array_cnt-1] is expected to be
1592 __aligned_u64 fd_array; /* array of FDs */ global() member
/linux/tools/include/uapi/linux/
H A Dbpf.h1596 __aligned_u64 fd_array; /* array of FDs */
1609 * fd_array array. In this case all the [map] file descriptors
1614 * then the fd_array[0,...,fd_array_cnt-1] is expected to be
1592 __aligned_u64 fd_array; /* array of FDs */ global() member
/linux/tools/lib/bpf/
H A Dlibbpf.c751 int *fd_array; member
7826 load_attr.fd_array = obj->fd_array; in bpf_object_load_prog()
8654 ret = libbpf_ensure_mem((void **)&obj->fd_array, &obj->fd_array_cap, sizeof(int), in bpf_object__resolve_ksym_func_btf_id()
8660 obj->fd_array[obj->fd_array_cnt++] = mod_btf->fd; in bpf_object__resolve_ksym_func_btf_id()
8873 zfree(&obj->fd_array); in bpf_object_post_load_cleanup()
/linux/kernel/bpf/
H A Dverifier.c3193 if (bpfptr_is_null(env->fd_array)) { in __find_kfunc_desc_btf()
3198 if (copy_from_bpfptr_offset(&btf_fd, env->fd_array, in __find_kfunc_desc_btf()
21116 if (bpfptr_is_null(env->fd_array)) { in resolve_pseudo_ldimm64()
21120 if (copy_from_bpfptr_offset(&fd, env->fd_array, in resolve_pseudo_ldimm64()
24670 env->fd_array = make_bpfptr(attr->fd_array, uattr.is_kernel); in process_fd_array()
24687 if (copy_from_bpfptr_offset(&fd, env->fd_array, i * size, size)) in process_fd_array()