Home
last modified time | relevance | path

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

/tools/lib/api/
Dio.h17 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 …]
DMakefile102 HDRS := cpu.h debug.h io.h
/tools/perf/tests/
Dapi-io.c59 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 …]
DBuild57 perf-y += api-io.o
/tools/lib/symbol/
Dkallsyms.c20 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/
Dftrace_test.c300 struct iovec io[3]; in TEST_F() local
313 io[0].iov_base = &reg.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/
Duserspace_io_test.c73 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()
Dvmx_invalid_nested_guest_state.c79 TEST_ASSERT(run->io.port == ARBITRARY_IO_PORT, in main()
81 ARBITRARY_IO_PORT, run->io.port); in main()
Dtriple_fault_event_test.c93 TEST_ASSERT(run->io.port == ARBITRARY_IO_PORT, in main()
95 ARBITRARY_IO_PORT, run->io.port); in main()
Dvmx_close_while_nested_test.c69 if (run->io.port == PORT_L0_EXIT) in main()
/tools/perf/util/
Dsrcline.c457 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 …]
Dsynthetic-events.c293 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 …]
Dbpf-filter.l118 io { return constant(PERF_MEM_LVLNUM_IO); }
/tools/testing/scatterlist/
DMakefile17 … $(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/
Dcommon.h204 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/
Dperf-timechart.txt69 --io-skip-eagain::
71 --io-min-time=<nsecs>::
76 --io-merge-dist=<nsecs>::
92 --io-only::
93 Record only io-related events
Dperf-c2c.txt342 https://joemario.github.io/blog/2016/09/01/c2c-blog/
Dperf-record.txt211 l1, l2, l3, l4, cxl, io, any_cache, lfb, ram, pmem (for mem_lvl)
/tools/testing/kunit/test_data/
Dtest_is_test_passed-no_tests_run_no_header.log33 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
Dtest_output_isolated_correctly.log58 io scheduler mq-deadline registered
59 io scheduler kyber registered
/tools/testing/selftests/kvm/lib/x86_64/
Ducall.c49 if (run->exit_reason == KVM_EXIT_IO && run->io.port == UCALL_PIO_PORT) { in ucall_arch_get_ucall()
/tools/perf/scripts/python/
Dflamegraph.py24 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:
Dintel-pt-events.py16 import io
429 with contextlib.redirect_stdout(io.StringIO()) as glb_output:
/tools/testing/selftests/kvm/
DMakefile23 LIBKVM += lib/io.c
/tools/include/uapi/linux/
Dkvm.h327 } io; member
779 struct kvm_s390_io_info io; member