Home
last modified time | relevance | path

Searched refs:st_size (Results 1 – 25 of 34) sorted by relevance

12

/tools/build/
Dfixdep.c138 if (st.st_size == 0) { in print_deps()
143 map = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); in print_deps()
150 parse_dep_file(map, st.st_size); in print_deps()
152 munmap(map, st.st_size); in print_deps()
/tools/perf/util/
Dzlib.c39 ptr = mmap(NULL, stbuf.st_size, PROT_READ, MAP_PRIVATE, input_fd, 0); in gzip_decompress_to_file()
47 zs.avail_in = stbuf.st_size; in gzip_decompress_to_file()
76 munmap(ptr, stbuf.st_size); in gzip_decompress_to_file()
Ddata.c120 file->size = st.st_size; in perf_data__open_dir()
149 file->size = st.st_size; in perf_data__update_dir()
183 if (!stat(data->path, &st) && st.st_size) { in check_backup()
247 if (!st.st_size) { in open_file_read()
253 data->file.size = st.st_size; in open_file_read()
Dcopyfile.c104 if (st.st_size == 0) { /* /proc? do it slowly... */ in copyfile_mode_ns()
120 err = copyfile_offset(fromfd, 0, tofd, 0, st.st_size); in copyfile_mode_ns()
Dgenelf.c93 .st_size = 0,
100 .st_size = 0, /* for now */
371 symtab[1].st_size = csize; in jit_write_elf()
Dsrccode.c135 h->maplen = st.st_size; in find_srcfile()
Dsymbol-minimal.c238 buf_size = stbuf.st_size; in sysfs__read_build_id()
Dconfig.c696 if (st.st_size) in perf_config_set__init()
/tools/spi/
Dspidev_test.c332 tx = malloc(sb.st_size); in transfer_file()
336 rx = malloc(sb.st_size); in transfer_file()
340 bytes = read(tx_fd, tx, sb.st_size); in transfer_file()
341 if (bytes != sb.st_size) in transfer_file()
344 transfer(fd, tx, rx, sb.st_size); in transfer_file()
/tools/perf/pmu-events/
Djson.c62 *size = st.st_size; in mapfile()
64 (st.st_size + ps - 1) & ~(ps - 1), in mapfile()
/tools/testing/selftests/memfd/
Dfuse_mnt.c37 st->st_size = strlen(memfd_content); in memfd_getattr()
Dmemfd_test.c151 } else if (st.st_size != size) { in mfd_assert_size()
153 (long long)st.st_size, (long long)size); in mfd_assert_size()
/tools/firmware/
Dihex2fw.c111 data = mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, infd, 0); in main()
126 if (process_ihex(data, st.st_size)) in main()
/tools/include/nolibc/
Dnolibc.h263 off_t st_size; /* total size, in bytes */ member
465 long st_size; member
644 unsigned long st_size; member
839 unsigned long st_size; member
1027 long st_size; member
1233 long st_size; member
1426 long st_size; /* Size of file, in bytes. */ member
1705 buf->st_size = stat.st_size; in sys_stat()
/tools/vm/
Dpage_owner_sort.c110 max_size = st.st_size / 100; /* hack ... */ in main()
Dpage-types.c935 unsigned long long size = st->st_size; in show_file()
975 off_t off, end = st->st_size; in walk_file()
/tools/io_uring/
Dio_uring-cp.c54 *size = st.st_size; in get_file_size()
Dio_uring-bench.c237 f->max_blocks = st.st_size / BS; in get_file_size()
/tools/cgroup/
Diocost_coef_gen.py76 if os.path.isfile(path) and os.stat(path).st_size == size:
/tools/testing/selftests/net/
Dtls.c177 EXPECT_GE(sendfile(self->fd, filefd, 0, st.st_size), 0); in TEST_F()
191 buf = (char *)malloc(st.st_size); in TEST_F()
197 EXPECT_GE(sendfile(self->fd, filefd, 0, st.st_size), 0); in TEST_F()
198 EXPECT_EQ(recv(self->cfd, buf, st.st_size, MSG_WAITALL), st.st_size); in TEST_F()
/tools/bpf/
Dbpf_jit_disasm.c140 len = fi.st_size + 1; in get_flog_buff()
/tools/testing/selftests/filesystems/incfs/
Dutils.c258 return st.st_size; in get_file_size()
/tools/testing/selftests/cgroup/
Dcgroup_util.c349 size += st.st_size; in alloc_pagecache()
/tools/testing/selftests/exec/
Dexecveat.c145 sendfile(out_fd, in_fd, NULL, info.st_size); in exe_cp()
/tools/testing/selftests/powerpc/ptrace/
Dcore-pkey.c185 return buf.st_mtime >= info->core_time ? buf.st_size : TEST_FAIL; in try_core_file()

12