Searched refs:st_size (Results 76 - 100 of 114) sorted by path

12345

/linux-master/tools/include/nolibc/
H A Dsys.h1071 buf->st_size = statx.stx_size;
H A Dtypes.h193 off_t st_size; /* total size, in bytes */ member in struct:stat
/linux-master/tools/lib/bpf/
H A Dlibbpf.c856 prog_sz = sym->st_size;
H A Dlinker.c435 init_sym->st_size = 0;
815 || sym->st_value != 0 || sym->st_size != 0) {
833 || sym->st_value != 0 || sym->st_size != 0) {
1965 dst_sym->st_size = sym->st_size;
1996 dst_sym->st_size = sym->st_size;
/linux-master/tools/mm/
H A Dpage-types.c939 unsigned long long size = st->st_size;
1054 add_addr_range(0, st->st_size / page_size);
H A Dpage_owner_sort.c803 max_size = st.st_size / 100; /* hack ... */
/linux-master/tools/objtool/
H A Delf.c408 sym->len = sym->sym.st_size;
557 * pfunc->sym.st_size.
808 // st_size 0
839 sym->sym.st_size = size;
/linux-master/tools/perf/
H A Dbuiltin-script.c378 st.st_size / 1024.0 / 1024.0, es->filename, es->samples);
4344 if (!perf_stat.st_size) {
H A Dbuiltin-trace.c1424 if (lstat(linkname, &st) < 0 || st.st_size + 1 > (off_t)sizeof(pathname))
1429 if (ret < 0 || ret > st.st_size)
4396 if (!stat(filename, &st) && st.st_size) {
/linux-master/tools/perf/util/
H A Dconfig.c571 if (st.st_size)
H A Dcopyfile.c104 if (st.st_size == 0) { /* /proc? do it slowly... */
120 err = copyfile_offset(fromfd, 0, tofd, 0, st.st_size);
H A Ddata.c144 file->size = st.st_size;
175 file->size = st.st_size;
222 if (!stat(data->path, &st) && st.st_size) {
287 if (!st.st_size) {
293 data->file.size = st.st_size;
H A Ddso.c1077 dso->data.file_size = st.st_size;
H A Dgenelf.c89 .st_size = 0,
96 .st_size = 0, /* for now */
387 symtab[1].st_size = csize;
H A Dprobe-file.c1002 if (ftruncate(fd, st.st_size) < 0)
H A Dsrccode.c127 h->maplen = st.st_size;
H A Dsymbol-elf.c1786 f = symbol__new(sym.st_value, sym.st_size,
H A Dsymbol-minimal.c242 buf_size = stbuf.st_size;
H A Dzlib.c39 ptr = mmap(NULL, stbuf.st_size, PROT_READ, MAP_PRIVATE, input_fd, 0);
47 zs.avail_in = stbuf.st_size;
76 munmap(ptr, stbuf.st_size);
/linux-master/tools/power/acpi/tools/pfrut/
H A Dpfrut.c342 addr_map_capsule = mmap(NULL, st.st_size, PROT_READ, MAP_SHARED,
353 ret = write(fd_update, (char *)addr_map_capsule, st.st_size);
366 munmap(addr_map_capsule, st.st_size);
/linux-master/tools/spi/
H A Dspidev_test.c368 tx = malloc(sb.st_size);
372 rx = malloc(sb.st_size);
376 bytes = read(tx_fd, tx, sb.st_size);
377 if (bytes != sb.st_size)
380 transfer(fd, tx, rx, sb.st_size);
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dksyms.c34 btf_size = st.st_size;
H A Dverify_pkcs7_sig.c153 if (st.st_size > sizeof(data_item->sig)) {
158 data_item->sig_len = st.st_size;
217 modlen = st.st_size;
224 mod = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
260 munmap(mod, st.st_size);
418 return st.st_size;
/linux-master/tools/testing/selftests/cgroup/
H A Dcgroup_util.c481 size += st.st_size;
/linux-master/tools/testing/selftests/drivers/sdsi/
H A Dsdsi_test.py106 assert st.st_size == 72
109 assert st.st_size == 1024
112 assert st.st_size == 1024
115 assert st.st_size == 4096
223 assert os.stat('/sys/kernel/debug/kmemleak').st_size == 0

Completed in 550 milliseconds

12345