/tools/build/ |
D | fixdep.c | 138 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/ |
D | zlib.c | 39 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()
|
D | data.c | 120 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()
|
D | copyfile.c | 104 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()
|
D | genelf.c | 93 .st_size = 0, 100 .st_size = 0, /* for now */ 371 symtab[1].st_size = csize; in jit_write_elf()
|
D | srccode.c | 135 h->maplen = st.st_size; in find_srcfile()
|
D | symbol-minimal.c | 238 buf_size = stbuf.st_size; in sysfs__read_build_id()
|
D | config.c | 696 if (st.st_size) in perf_config_set__init()
|
/tools/spi/ |
D | spidev_test.c | 332 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/ |
D | json.c | 62 *size = st.st_size; in mapfile() 64 (st.st_size + ps - 1) & ~(ps - 1), in mapfile()
|
/tools/testing/selftests/memfd/ |
D | fuse_mnt.c | 37 st->st_size = strlen(memfd_content); in memfd_getattr()
|
D | memfd_test.c | 151 } 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/ |
D | ihex2fw.c | 111 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/ |
D | nolibc.h | 263 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/ |
D | page_owner_sort.c | 110 max_size = st.st_size / 100; /* hack ... */ in main()
|
D | page-types.c | 935 unsigned long long size = st->st_size; in show_file() 975 off_t off, end = st->st_size; in walk_file()
|
/tools/io_uring/ |
D | io_uring-cp.c | 54 *size = st.st_size; in get_file_size()
|
D | io_uring-bench.c | 237 f->max_blocks = st.st_size / BS; in get_file_size()
|
/tools/cgroup/ |
D | iocost_coef_gen.py | 76 if os.path.isfile(path) and os.stat(path).st_size == size:
|
/tools/testing/selftests/net/ |
D | tls.c | 177 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/ |
D | bpf_jit_disasm.c | 140 len = fi.st_size + 1; in get_flog_buff()
|
/tools/testing/selftests/filesystems/incfs/ |
D | utils.c | 258 return st.st_size; in get_file_size()
|
/tools/testing/selftests/cgroup/ |
D | cgroup_util.c | 349 size += st.st_size; in alloc_pagecache()
|
/tools/testing/selftests/exec/ |
D | execveat.c | 145 sendfile(out_fd, in_fd, NULL, info.st_size); in exe_cp()
|
/tools/testing/selftests/powerpc/ptrace/ |
D | core-pkey.c | 185 return buf.st_mtime >= info->core_time ? buf.st_size : TEST_FAIL; in try_core_file()
|