Searched refs:trace_fd (Results 1 – 6 of 6) sorted by relevance
/linux/tools/testing/selftests/bpf/ |
A D | trace_helpers.c | 123 int trace_fd; in read_trace_pipe() local 125 trace_fd = open(DEBUGFS "trace_pipe", O_RDONLY, 0); in read_trace_pipe() 126 if (trace_fd < 0) in read_trace_pipe() 133 sz = read(trace_fd, buf, sizeof(buf) - 1); in read_trace_pipe()
|
/linux/tools/perf/ |
A D | builtin-ftrace.c | 571 int trace_fd; in __cmd_ftrace() local 624 trace_fd = open(trace_file, O_RDONLY); in __cmd_ftrace() 628 if (trace_fd < 0) { in __cmd_ftrace() 633 fcntl(trace_fd, F_SETFL, O_NONBLOCK); in __cmd_ftrace() 634 pollfd.fd = trace_fd; in __cmd_ftrace() 661 int n = read(trace_fd, buf, sizeof(buf)); in __cmd_ftrace() 681 int n = read(trace_fd, buf, sizeof(buf)); in __cmd_ftrace() 689 close(trace_fd); in __cmd_ftrace()
|
A D | builtin-record.c | 187 cblock->aio_fildes = trace_fd; in record__aio_write() 342 int trace_fd = rec->session->data->file.fd; in record__aio_push() local 376 static off_t record__aio_get_pos(int trace_fd) in record__aio_get_pos() argument 378 return lseek(trace_fd, 0, SEEK_CUR); in record__aio_get_pos() 381 static void record__aio_set_pos(int trace_fd, off_t pos) in record__aio_set_pos() argument 383 lseek(trace_fd, pos, SEEK_SET); in record__aio_set_pos() 432 static off_t record__aio_get_pos(int trace_fd __maybe_unused) in record__aio_get_pos() 1117 int trace_fd = rec->data.file.fd; in record__mmap_read_evlist() local 1131 off = record__aio_get_pos(trace_fd); in record__mmap_read_evlist() 1152 record__aio_set_pos(trace_fd, off); in record__mmap_read_evlist() [all …]
|
/linux/samples/bpf/ |
A D | hbm.c | 78 int trace_fd; in read_trace_pipe2() local 82 trace_fd = open(DEBUGFS "trace_pipe", O_RDONLY, 0); in read_trace_pipe2() 83 if (trace_fd < 0) { in read_trace_pipe2() 100 sz = read(trace_fd, buf, sizeof(buf) - 1); in read_trace_pipe2()
|
/linux/tools/tracing/latency/ |
A D | latency-collector.c | 1139 int trace_fd; in print_tracefile() local 1152 trace_fd = open(debug_tracefile, O_RDONLY); in print_tracefile() 1154 if (trace_fd < 0) { in print_tracefile() 1195 bytes = read(trace_fd, p, bufspace); in print_tracefile() 1200 if (unlikely(close(trace_fd) != 0)) in print_tracefile() 1211 if (unlikely(close(trace_fd) != 0)) in print_tracefile()
|
/linux/Documentation/trace/ |
A D | ftrace.rst | 543 if (trace_fd < 0) 550 write(trace_fd, buf, n); 555 trace_fd = open("trace_marker", WR_ONLY); 2302 int trace_fd; 2306 trace_fd = open(tracing_file("tracing_on"), O_WRONLY); 2309 write(trace_fd, "0", 1);
|
Completed in 21 milliseconds