Home
last modified time | relevance | path

Searched refs:ssize_t (Results 1 – 25 of 199) sorted by relevance

12345678

/tools/lib/perf/
Dlib.c10 static ssize_t ion(bool is_read, int fd, void *buf, size_t n) in ion()
17 ssize_t ret = is_read ? read(fd, buf, left) : in ion()
36 ssize_t readn(int fd, void *buf, size_t n) in readn()
41 ssize_t preadn(int fd, void *buf, size_t n, off_t offs) in preadn()
46 ssize_t ret = pread(fd, buf, left, offs); in preadn()
64 ssize_t writen(int fd, const void *buf, size_t n) in writen()
/tools/testing/selftests/kvm/lib/
Dio.c41 ssize_t test_write(int fd, const void *buf, size_t count) in test_write()
43 ssize_t rc; in test_write()
44 ssize_t num_written = 0; in test_write()
118 ssize_t test_read(int fd, void *buf, size_t count) in test_read()
120 ssize_t rc; in test_read()
121 ssize_t num_read = 0; in test_read()
/tools/lib/perf/include/internal/
Dlib.h9 ssize_t readn(int fd, void *buf, size_t n);
10 ssize_t writen(int fd, const void *buf, size_t n);
12 ssize_t preadn(int fd, void *buf, size_t n, off_t offs);
/tools/perf/util/
Dstrbuf.h59 int strbuf_init(struct strbuf *buf, ssize_t hint);
64 static inline ssize_t strbuf_avail(const struct strbuf *sb) { in strbuf_avail()
93 ssize_t strbuf_read(struct strbuf *, int fd, ssize_t hint);
Ddso.h362 ssize_t dso__data_read_offset(struct dso *dso, struct machine *machine,
363 u64 offset, u8 *data, ssize_t size);
364 ssize_t dso__data_read_addr(struct dso *dso, struct map *map,
366 u8 *data, ssize_t size);
368 ssize_t dso__data_write_cache_offs(struct dso *dso, struct machine *machine,
369 u64 offset, const u8 *data, ssize_t size);
370 ssize_t dso__data_write_cache_addr(struct dso *dso, struct map *map,
372 const u8 *data, ssize_t size);
Ddata.h81 ssize_t perf_data__read(struct perf_data *data, void *buf, size_t size);
82 ssize_t perf_data__write(struct perf_data *data,
84 ssize_t perf_data_file__write(struct perf_data_file *file,
Ddso.c796 static ssize_t bpf_read(struct dso *dso, u64 offset, char *data) in bpf_read()
799 ssize_t size = DSO__DATA_CACHE_SIZE; in bpf_read()
815 size = (ssize_t)min(len - offset, (u64)size); in bpf_read()
912 static ssize_t dso_cache__memcpy(struct dso_cache *cache, u64 offset, u8 *data, in dso_cache__memcpy()
925 static ssize_t file_read(struct dso *dso, struct machine *machine, in file_read()
928 ssize_t ret; in file_read()
952 u64 offset, ssize_t *ret) in dso_cache__populate()
994 ssize_t *ret) in dso_cache__find()
1001 static ssize_t dso_cache_io(struct dso *dso, struct machine *machine, in dso_cache_io()
1002 u64 offset, u8 *data, ssize_t size, bool out) in dso_cache_io()
[all …]
Dstrbuf.c20 int strbuf_init(struct strbuf *sb, ssize_t hint) in strbuf_init()
139 ssize_t strbuf_read(struct strbuf *sb, int fd, ssize_t hint) in strbuf_read()
150 ssize_t cnt; in strbuf_read()
/tools/lib/
Dvsprintf.c9 ssize_t ssize = size; in vscnprintf()
16 ssize_t ssize = size; in scnprintf()
29 ssize_t ssize = size; in scnprintf_pad()
/tools/testing/selftests/arm64/bti/
Dsystem.h14 typedef __kernel_ssize_t ssize_t; typedef
26 ssize_t write(int fd, const void *buf, size_t size);
/tools/testing/selftests/bpf/prog_tests/
Dlwt_helpers.h72 static int __expect_icmp_ipv4(char *buf, ssize_t len) in __expect_icmp_ipv4()
76 ssize_t min_header_len = sizeof(*ip) + sizeof(*icmp); in __expect_icmp_ipv4()
90 typedef int (*filter_t) (char *, ssize_t);
110 ssize_t ret = -1; in wait_for_packet()
/tools/usb/
Dffs-test.c336 static ssize_t read_wrap(struct thread *t, void *buf, size_t nbytes);
337 static ssize_t write_wrap(struct thread *t, const void *buf, size_t nbytes);
338 static ssize_t ep0_consume(struct thread *t, const void *buf, size_t nbytes);
339 static ssize_t fill_in_buf(struct thread *t, void *buf, size_t nbytes);
340 static ssize_t empty_out_buf(struct thread *t, const void *buf, size_t nbytes);
347 ssize_t (*in)(struct thread *, void *, size_t);
350 ssize_t (*out)(struct thread *, const void *, size_t);
356 ssize_t status;
423 ssize_t ret; in start_thread_helper()
483 static ssize_t read_wrap(struct thread *t, void *buf, size_t nbytes) in read_wrap()
[all …]
/tools/testing/selftests/bpf/
Dtrace_helpers.h26 ssize_t get_uprobe_offset(const void *addr);
27 ssize_t get_rel_offset(uintptr_t addr);
/tools/testing/selftests/proc/
Dproc-self-syscall.c25 static inline ssize_t sys_read(int fd, void *buf, size_t len) in sys_read()
35 ssize_t rv; in main()
Dread.c42 ssize_t rv; in f_reg()
58 ssize_t rv; in f_reg_write()
71 ssize_t rv; in f_lnk()
Dproc-empty-vm.c190 ssize_t rv = read(fd, buf, sizeof(buf)); in test_proc_pid_maps()
219 ssize_t rv = read(fd, buf, sizeof(buf)); in test_proc_pid_numa_maps()
242 ssize_t rv = read(fd, buf, sizeof(buf)); in test_proc_pid_smaps()
298 ssize_t rv = read(fd, buf, sizeof(buf)); in test_proc_pid_smaps_rollup()
/tools/include/nolibc/
Dstdint.h19 typedef signed long ssize_t; typedef
35 typedef ssize_t int_fast16_t;
37 typedef ssize_t int_fast32_t;
/tools/testing/nvdimm/test/
Dndtest.c380 static ssize_t range_index_show(struct device *dev, in range_index_show()
488 static ssize_t handle_show(struct device *dev, struct device_attribute *attr, in handle_show()
497 static ssize_t fail_cmd_show(struct device *dev, struct device_attribute *attr, in fail_cmd_show()
505 static ssize_t fail_cmd_store(struct device *dev, struct device_attribute *attr, in fail_cmd_store()
510 ssize_t rc; in fail_cmd_store()
522 static ssize_t fail_cmd_code_show(struct device *dev, struct device_attribute *attr, in fail_cmd_code_show()
530 static ssize_t fail_cmd_code_store(struct device *dev, struct device_attribute *attr, in fail_cmd_code_store()
535 ssize_t rc; in fail_cmd_code_store()
562 static ssize_t phys_id_show(struct device *dev, in phys_id_show()
572 static ssize_t vendor_show(struct device *dev, in vendor_show()
[all …]
/tools/testing/selftests/filesystems/fuse/
Dtest_fuse.h61 ssize_t *ret_size);
62 int s_listxattr(struct s pathname, void *list, size_t size, ssize_t *ret_size);
82 ssize_t res = read(fuse_dev, &bytes_in, \
93 ssize_t res = read(fuse_dev, &bytes_in, \
104 ssize_t res = read(fuse_dev, &bytes_in, \
119 ssize_t res = read(fuse_dev, &bytes_in, \
131 ssize_t res = read(fuse_dev, &bytes_in, \
144 ssize_t res; \
Dtest_framework.h131 _TEST_OPERATOR(ss, ssize_t, "%zd")
146 ssize_t : _CALL_TO(ssize_t, ss, a, b, o), \
/tools/bpf/bpftool/
Djit_disasm.c83 __maybe_unused unsigned char *image, __maybe_unused ssize_t len) in init_context()
112 disassemble_insn(disasm_ctx_t *ctx, unsigned char *image, ssize_t len, int pc) in disassemble_insn()
148 ssize_t len; in get_exec_path()
218 unsigned char *image, ssize_t len) in init_context()
307 __maybe_unused ssize_t len, int pc) in disassemble_insn()
319 int disasm_print_insn(unsigned char *image, ssize_t len, int opcodes, in disasm_print_insn()
/tools/usb/usbip/src/
Dusbip_network.c95 static ssize_t usbip_net_xmit(int sockfd, void *buff, size_t bufflen, in usbip_net_xmit()
98 ssize_t nbytes; in usbip_net_xmit()
99 ssize_t total = 0; in usbip_net_xmit()
122 ssize_t usbip_net_recv(int sockfd, void *buff, size_t bufflen) in usbip_net_recv()
127 ssize_t usbip_net_send(int sockfd, void *buff, size_t bufflen) in usbip_net_send()
/tools/testing/selftests/cgroup/
Dcgroup_util.c23 static ssize_t read_text(const char *path, char *buf, size_t max_len) in read_text()
25 ssize_t len; in read_text()
42 static ssize_t write_text(const char *path, char *buf, ssize_t len) in write_text()
89 ssize_t ret; in cg_read()
179 ssize_t len = strlen(buf), ret; in cg_write()
550 ssize_t read; in proc_mount_contains()
559 ssize_t proc_read_text(int pid, bool thread, const char *item, char *buf, size_t size) in proc_read_text()
562 ssize_t ret; in proc_read_text()
/tools/testing/selftests/net/mptcp/
Dmptcp_inq.c239 ssize_t ret; in connect_one_server()
260 assert(ret == (ssize_t)sizeof(len)); in connect_one_server()
266 if (ret != (ssize_t)len) in connect_one_server()
277 assert(ret == (ssize_t)sizeof(total)); in connect_one_server()
343 ssize_t ret, tot; in process_one_client()
349 assert(ret == (ssize_t)sizeof(expect_len)); in process_one_client()
390 assert(ret == (ssize_t)tcp_inq); in process_one_client()
401 assert(ret == (ssize_t)sizeof(expect_len)); in process_one_client()
/tools/testing/selftests/uevent/
Duevent_filtering.c30 ssize_t read_nointr(int fd, void *buf, size_t count) in read_nointr()
32 ssize_t ret; in read_nointr()
42 ssize_t write_nointr(int fd, const void *buf, size_t count) in write_nointr()
44 ssize_t ret; in write_nointr()
156 ssize_t r; in uevent_listener()

12345678