/tools/perf/util/ |
D | symbol-minimal.c | 95 size_t buf_size; in filename__read_build_id() local 128 buf_size = ehdr.e_phentsize * ehdr.e_phnum; in filename__read_build_id() 129 buf = malloc(buf_size); in filename__read_build_id() 134 if (fread(buf, buf_size, 1, fp) != 1) in filename__read_build_id() 150 buf_size = phdr->p_filesz; in filename__read_build_id() 152 tmp = realloc(buf, buf_size); in filename__read_build_id() 158 if (fread(buf, buf_size, 1, fp) != 1) in filename__read_build_id() 161 ret = read_build_id(buf, buf_size, bid, need_swap); in filename__read_build_id() 179 buf_size = ehdr.e_phentsize * ehdr.e_phnum; in filename__read_build_id() 180 buf = malloc(buf_size); in filename__read_build_id() [all …]
|
D | annotate.c | 1704 size_t buf_size; in symbol__disassemble_bpf() local 1727 s = open_memstream(&buf, &buf_size); in symbol__disassemble_bpf() 1799 prev_buf_size = buf_size; in symbol__disassemble_bpf()
|
D | header.c | 2025 char buf_map[100], buf_size[50]; in memory_node__fprintf() local 2029 unit_number__scnprintf(buf_size, 50, size); in memory_node__fprintf() 2032 fprintf(fp, "# %3" PRIu64 " [%s]: %s\n", n->node, buf_size, buf_map); in memory_node__fprintf()
|
/tools/testing/selftests/resctrl/ |
D | fill_buf.c | 149 fill_cache(unsigned long long buf_size, int malloc_and_init, int memflush, in fill_cache() argument 157 start_ptr = malloc_and_init_memory(buf_size); in fill_cache() 159 start_ptr = malloc(buf_size); in fill_cache() 165 end_ptr = start_ptr + buf_size; in fill_cache() 172 for (i = 0; i < buf_size; i++) in fill_cache() 180 mem_flush(start_ptr, buf_size); in fill_cache()
|
/tools/perf/tests/ |
D | api-io.c | 58 size_t buf_size, struct io *io) in setup_test() argument 69 io->buf = malloc(buf_size); in setup_test() 76 io__init(io, io->fd, io->buf, buf_size); in setup_test() 87 static int do_test_get_char(const char *test_string, size_t buf_size) in do_test_get_char() argument 94 if (setup_test(path, test_string, buf_size, &io)) in do_test_get_char()
|
/tools/testing/selftests/filesystems/incfs/ |
D | utils.h | 35 int get_file_bmap(int cmd_fd, int ino, unsigned char *buf, int buf_size); 37 int get_file_signature(int fd, unsigned char *buf, int buf_size);
|
D | utils.c | 198 int get_file_bmap(int cmd_fd, int ino, unsigned char *buf, int buf_size) in get_file_bmap() argument 203 int get_file_signature(int fd, unsigned char *buf, int buf_size) in get_file_signature() argument 207 .file_signature_buf_size = buf_size in get_file_signature()
|
/tools/testing/selftests/powerpc/syscalls/ |
D | rtas_filter.c | 55 size_t buf_size = 0; in read_entire_file() local 61 buf_size += BLOCK_SIZE; in read_entire_file() 63 *buf = malloc(buf_size); in read_entire_file() 65 *buf = realloc(*buf, buf_size); in read_entire_file()
|
/tools/perf/arch/x86/util/ |
D | intel-pt.c | 986 size_t buf_size = 0, psb_period; in intel_pt_snapshot_ref_buf_size() local 993 buf_size = psb_period * 2; in intel_pt_snapshot_ref_buf_size() 995 if (!buf_size || buf_size > max_size) in intel_pt_snapshot_ref_buf_size() 996 buf_size = max_size; in intel_pt_snapshot_ref_buf_size() 998 if (buf_size >= snapshot_buf_size) in intel_pt_snapshot_ref_buf_size() 1001 if (buf_size >= ptr->snapshot_size / 2) in intel_pt_snapshot_ref_buf_size() 1004 return buf_size; in intel_pt_snapshot_ref_buf_size() 1052 size_t ref_size, size_t buf_size, in intel_pt_compare_ref() argument 1057 if (ref_end > buf_size) { in intel_pt_compare_ref() 1058 if (head > ref_offset || head < ref_end - buf_size) in intel_pt_compare_ref() [all …]
|
D | intel-bts.c | 347 static bool intel_bts_first_wrap(u64 *data, size_t buf_size) in intel_bts_first_wrap() argument 351 b = buf_size >> 3; in intel_bts_first_wrap()
|
/tools/testing/selftests/powerpc/ |
D | utils.c | 29 int read_auxv(char *buf, ssize_t buf_size) in read_auxv() argument 40 num = read(fd, buf, buf_size); in read_auxv() 47 if (num > buf_size) { in read_auxv()
|
/tools/virtio/ |
D | virtio_test.c | 45 size_t buf_size; member 134 dev->buf_size = 1024; in vdev_info_init() 135 dev->buf = malloc(dev->buf_size); in vdev_info_init() 149 dev->mem->regions[0].memory_size = dev->buf_size; in vdev_info_init() 197 sg_init_one(&sl, dev->buf, dev->buf_size); in run_test()
|
/tools/vm/ |
D | page_owner_sort.c | 33 int read_block(char *buf, int buf_size, FILE *fin) in read_block() argument 35 char *curr = buf, *const buf_end = buf + buf_size; in read_block()
|
/tools/testing/selftests/powerpc/include/ |
D | utils.h | 30 int read_auxv(char *buf, ssize_t buf_size);
|
/tools/testing/selftests/filesystems/binderfs/ |
D | binderfs_test.c | 229 size_t buf_size) in write_id_mapping() argument 268 ret = write_nointr(fd, buf, buf_size); in write_id_mapping() 270 if (ret != buf_size) in write_id_mapping()
|
/tools/perf/arch/arm/util/ |
D | cs-etm.c | 723 size_t buf_size = buffer_size; in cs_etm_buffer_has_wrapped() local 729 watermark = buf_size - 512; in cs_etm_buffer_has_wrapped() 756 buf_size >>= 3; in cs_etm_buffer_has_wrapped() 762 for (i = watermark; i < buf_size; i++) in cs_etm_buffer_has_wrapped()
|
/tools/usb/ |
D | ffs-test.c | 345 size_t buf_size; member 381 t->buf = malloc(t->buf_size); in init_thread() 434 ret = t->in(t, t->buf, t->buf_size); in start_thread_helper()
|
/tools/usb/usbip/src/ |
D | usbipd.c | 361 const size_t buf_size) in addrinfo_to_text() argument 374 snprintf(buf, buf_size, "%s:%s", hbuf, sbuf); in addrinfo_to_text()
|
/tools/bpf/bpftool/ |
D | prog.c | 1018 size_t buf_size = block_size; in get_run_data() local 1053 if (nb_read > buf_size - block_size) { in get_run_data() 1054 if (buf_size == UINT32_MAX) { in get_run_data() 1060 buf_size *= 2; in get_run_data() 1061 tmp = realloc(*data_ptr, buf_size); in get_run_data()
|
/tools/testing/selftests/bpf/benchs/ |
D | bench_ringbufs.c | 458 size_t buf_size; member
|
/tools/include/uapi/linux/ |
D | kvm.h | 59 __u32 buf_size; member
|
/tools/lib/bpf/ |
D | libbpf.c | 9965 size_t buf_size; member 10316 &cpu_buf->buf_size, in perf_buffer__process_records()
|