/tools/lib/api/ |
D | io.h | 17 struct io { struct 34 static inline void io__init(struct io *io, int fd, in io__init() argument 37 io->fd = fd; in io__init() 38 io->buf_len = buf_len; in io__init() 39 io->buf = buf; in io__init() 40 io->end = buf; in io__init() 41 io->data = buf; in io__init() 42 io->timeout_ms = 0; in io__init() 43 io->eof = false; in io__init() 47 static inline int io__get_char(struct io *io) in io__get_char() argument [all …]
|
D | Makefile | 102 HDRS := cpu.h debug.h io.h
|
/tools/perf/tests/ |
D | api-io.c | 59 size_t buf_size, struct io *io) in setup_test() argument 64 io->fd = open(path, O_RDONLY); in setup_test() 65 if (io->fd < 0) { in setup_test() 70 io->buf = malloc(buf_size); in setup_test() 71 if (io->buf == NULL) { in setup_test() 73 close(io->fd); in setup_test() 77 io__init(io, io->fd, io->buf, buf_size); in setup_test() 81 static void cleanup_test(char path[PATH_MAX], struct io *io) in cleanup_test() argument 83 zfree(&io->buf); in cleanup_test() 84 close(io->fd); in cleanup_test() [all …]
|
D | Build | 57 perf-y += api-io.o
|
/tools/lib/symbol/ |
D | kallsyms.c | 20 static void read_to_eol(struct io *io) in read_to_eol() argument 25 ch = io__get_char(io); in read_to_eol() 35 struct io io; in kallsyms__parse() local 39 io.fd = open(filename, O_RDONLY, 0); in kallsyms__parse() 41 if (io.fd < 0) in kallsyms__parse() 44 io__init(&io, io.fd, bf, sizeof(bf)); in kallsyms__parse() 47 while (!io.eof) { in kallsyms__parse() 54 if (io__get_hex(&io, &start) != ' ') { in kallsyms__parse() 55 read_to_eol(&io); in kallsyms__parse() 58 symbol_type = io__get_char(&io); in kallsyms__parse() [all …]
|
/tools/testing/selftests/user_events/ |
D | ftrace_test.c | 300 struct iovec io[3]; in TEST_F() local 313 io[0].iov_base = ®.write_index; in TEST_F() 314 io[0].iov_len = sizeof(reg.write_index); in TEST_F() 315 io[1].iov_base = &field1; in TEST_F() 316 io[1].iov_len = sizeof(field1); in TEST_F() 317 io[2].iov_base = &field2; in TEST_F() 318 io[2].iov_len = sizeof(field2); in TEST_F() 326 io[0].iov_base = &field2; in TEST_F() 327 io[0].iov_len = sizeof(field2); in TEST_F() 328 ASSERT_EQ(-1, writev(self->data_fd, (const struct iovec *)io, 3)); in TEST_F() [all …]
|
/tools/testing/selftests/kvm/x86_64/ |
D | userspace_io_test.c | 73 TEST_ASSERT(run->io.port == 0x80, in main() 74 "Expected I/O at port 0x80, got port 0x%x\n", run->io.port); in main() 88 memset((void *)run + run->io.data_offset, 0xaa, 4096); in main()
|
D | vmx_invalid_nested_guest_state.c | 79 TEST_ASSERT(run->io.port == ARBITRARY_IO_PORT, in main() 81 ARBITRARY_IO_PORT, run->io.port); in main()
|
D | triple_fault_event_test.c | 93 TEST_ASSERT(run->io.port == ARBITRARY_IO_PORT, in main() 95 ARBITRARY_IO_PORT, run->io.port); in main()
|
D | vmx_close_while_nested_test.c | 69 if (run->io.port == PORT_L0_EXIT) in main()
|
/tools/perf/util/ |
D | srcline.c | 457 struct io io; in addr2line_configure() local 464 io__init(&io, a2l->out, buf, sizeof(buf)); in addr2line_configure() 465 ch = io__get_char(&io); in addr2line_configure() 481 io__getline(&io, &output, &output_len); in addr2line_configure() 490 ch = io__get_char(&io); in addr2line_configure() 502 static int read_addr2line_record(struct io *io, in read_addr2line_record() argument 538 if (io__getline(io, &line, &line_len) < 0 || !line_len) in read_addr2line_record() 574 ch = io__get_char(io); in read_addr2line_record() 577 ch = io__get_char(io); in read_addr2line_record() 584 if (first && (io__getline(io, &line, &line_len) < 0 || !line_len)) in read_addr2line_record() [all …]
|
D | synthetic-events.c | 293 static bool read_proc_maps_line(struct io *io, __u64 *start, __u64 *end, in read_proc_maps_line() argument 303 if (io__get_hex(io, start) != '-') in read_proc_maps_line() 305 if (io__get_hex(io, end) != ' ') in read_proc_maps_line() 310 ch = io__get_char(io); in read_proc_maps_line() 315 ch = io__get_char(io); in read_proc_maps_line() 320 ch = io__get_char(io); in read_proc_maps_line() 325 ch = io__get_char(io); in read_proc_maps_line() 332 if (io__get_char(io) != ' ') in read_proc_maps_line() 335 if (io__get_hex(io, offset) != ' ') in read_proc_maps_line() 338 if (io__get_hex(io, &temp) != ':') in read_proc_maps_line() [all …]
|
D | bpf-filter.l | 118 io { return constant(PERF_MEM_LVLNUM_IO); }
|
/tools/testing/scatterlist/ |
D | Makefile | 17 … $(OFILES) scatterlist.c linux/scatterlist.h linux/highmem.h linux/kmemleak.h linux/slab.h asm/io.h 28 @touch asm/io.h
|
/tools/testing/selftests/landlock/ |
D | common.h | 204 struct iovec io = { in recv_fd() local 209 .msg_iov = &io, in recv_fd() 238 struct iovec io = { in send_fd() local 243 .msg_iov = &io, in send_fd()
|
/tools/perf/Documentation/ |
D | perf-timechart.txt | 69 --io-skip-eagain:: 71 --io-min-time=<nsecs>:: 76 --io-merge-dist=<nsecs>:: 92 --io-only:: 93 Record only io-related events
|
D | perf-c2c.txt | 342 https://joemario.github.io/blog/2016/09/01/c2c-blog/
|
D | perf-record.txt | 211 l1, l2, l3, l4, cxl, io, any_cache, lfb, ram, pmem (for mem_lvl)
|
/tools/testing/kunit/test_data/ |
D | test_is_test_passed-no_tests_run_no_header.log | 33 io scheduler noop registered 34 io scheduler deadline registered 35 io scheduler cfq registered (default) 36 io scheduler mq-deadline registered 37 io scheduler kyber registered
|
D | test_output_isolated_correctly.log | 58 io scheduler mq-deadline registered 59 io scheduler kyber registered
|
/tools/testing/selftests/kvm/lib/x86_64/ |
D | ucall.c | 49 if (run->exit_reason == KVM_EXIT_IO && run->io.port == UCALL_PIO_PORT) { in ucall_arch_get_ucall()
|
/tools/perf/scripts/python/ |
D | flamegraph.py | 24 import io 206 with io.open(sys.stdout.fileno(), "w", encoding="utf-8", closefd=False) as out: 211 with io.open(output_fn, "w", encoding="utf-8") as out:
|
D | intel-pt-events.py | 16 import io 429 with contextlib.redirect_stdout(io.StringIO()) as glb_output:
|
/tools/testing/selftests/kvm/ |
D | Makefile | 23 LIBKVM += lib/io.c
|
/tools/include/uapi/linux/ |
D | kvm.h | 327 } io; member 779 struct kvm_s390_io_info io; member
|