Searched refs:trace_fd (Results 1 – 3 of 3) sorted by relevance
/tools/testing/selftests/bpf/ |
D | trace_helpers.c | 122 int trace_fd; in read_trace_pipe() local 124 trace_fd = open(DEBUGFS "trace_pipe", O_RDONLY, 0); in read_trace_pipe() 125 if (trace_fd < 0) in read_trace_pipe() 132 sz = read(trace_fd, buf, sizeof(buf) - 1); in read_trace_pipe()
|
/tools/perf/ |
D | builtin-ftrace.c | 571 int trace_fd; in __cmd_ftrace() local 625 trace_fd = open(trace_file, O_RDONLY); in __cmd_ftrace() 629 if (trace_fd < 0) { in __cmd_ftrace() 634 fcntl(trace_fd, F_SETFL, O_NONBLOCK); in __cmd_ftrace() 635 pollfd.fd = trace_fd; in __cmd_ftrace() 662 int n = read(trace_fd, buf, sizeof(buf)); in __cmd_ftrace() 682 int n = read(trace_fd, buf, sizeof(buf)); in __cmd_ftrace() 690 close(trace_fd); in __cmd_ftrace()
|
D | builtin-record.c | 179 static int record__aio_write(struct aiocb *cblock, int trace_fd, in record__aio_write() argument 184 cblock->aio_fildes = trace_fd; in record__aio_write() 339 int trace_fd = rec->session->data->file.fd; in record__aio_push() local 354 ret = record__aio_write(&(map->aio.cblocks[idx]), trace_fd, aio.data, aio.size, *off); in record__aio_push() 373 static off_t record__aio_get_pos(int trace_fd) in record__aio_get_pos() argument 375 return lseek(trace_fd, 0, SEEK_CUR); in record__aio_get_pos() 378 static void record__aio_set_pos(int trace_fd, off_t pos) in record__aio_set_pos() argument 380 lseek(trace_fd, pos, SEEK_SET); in record__aio_set_pos() 429 static off_t record__aio_get_pos(int trace_fd __maybe_unused) in record__aio_get_pos() 434 static void record__aio_set_pos(int trace_fd __maybe_unused, off_t pos __maybe_unused) in record__aio_set_pos() [all …]
|