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
115 pthread_create(&tid[i], NULL, setup, fd_array[i]); in main()
141 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()
/linux/tools/perf/tests/shell/
H A Dtest_intel_pt.sh147 fd_array[fd] = fd
157 if (fd in fd_array) {
171 if (fd in fd_array) {
172 if (fd_to in fd_array) {
185 print "Checking " length(fd_array) " fds"
186 for (fd in fd_array) {
/linux/tools/testing/selftests/bpf/
H A Dtest_verifier.c968 static void fixup_prog_kfuncs(struct bpf_insn *prog, int *fd_array, in fixup_prog_kfuncs() argument
996 *fd_array = btf__fd(testmod_btf); in fixup_prog_kfuncs()
1008 struct bpf_insn *prog, int *map_fds, int *fd_array) in do_test_fixup() argument
1233 fixup_prog_kfuncs(prog, fd_array, test->fixup_kfunc_btf_id); in do_test_fixup()
1514 int fd_array[2] = { -1, -1 }; in do_test_single() local
1535 do_test_fixup(test, prog_type, prog, map_fds, &fd_array[1]); in do_test_single()
1569 if (fd_array[1] != -1) in do_test_single()
1570 opts.fd_array = &fd_array[0]; in do_test_single()
/linux/Documentation/bpf/
H A Dlinux-notes.rst28 Linux uses an fd_array to store maps associated with a BPF program. Thus,
/linux/tools/lib/bpf/
H A Dgen_loader.c47 return gen->fd_array + index * sizeof(int); in blob_fd_array_off()
121 gen->fd_array = add_data(gen, NULL, MAX_FD_ARRAY_SZ * sizeof(int)); in bpf_gen__init()
186 /* Get index for map_fd/btf_fd slot in reserved fd_array, or in data relative in add_map_fd()
187 * to start of fd_array. Caller can decide if it is usable or not. in add_map_fd()
205 return (cur - gen->fd_array) / sizeof(int); in insn_bytes_to_bpf_size()
774 * share same index in fd_array (such that kfunc_btf_tab has 1 element). in emit_relo_kfunc_btf()
797 /* get index in fd_array to store BTF FD at */ in emit_relo_kfunc_btf()
818 /* load fd_array slot pointer */ in emit_ksym_relo_log()
1150 /* populate union bpf_attr fd_array with a pointer to data where map_fds are saved */ in bpf_gen__prog_load()
1151 emit_rel_store(gen, attr_field(prog_load_attr, fd_array), ge in bpf_gen__prog_load()
[all...]
H A Dlibbpf.c646 * 0 for vmlinux BTF, index in obj->fd_array for module
757 int *fd_array;
7977 load_attr.fd_array = obj->fd_array; in patch_log()
8793 /* set index for module BTF fd in fd_array, if unset */ in bpf_object__resolve_externs()
8805 ret = libbpf_ensure_mem((void **)&obj->fd_array, &obj->fd_array_cap, sizeof(int), in bpf_object__resolve_externs()
8811 obj->fd_array[obj->fd_array_cnt++] = mod_btf->fd; in bpf_object__resolve_externs()
9041 /* clean up fd_array */ in check_path()
9042 zfree(&obj->fd_array); in check_path()
9974 attr.fd_array in libbpf_register_prog_handler()
752 int *fd_array; global() member
[all...]
/linux/tools/include/uapi/linux/
H A Dbpf.h1640 __aligned_u64 fd_array; /* array of FDs */
1653 * fd_array array. In this case all the [map] file descriptors
1658 * then the fd_array[0,...,fd_array_cnt-1] is expected to be
1592 __aligned_u64 fd_array; /* array of FDs */ global() member