Searched refs:trace_fd (Results 1 – 5 of 5) sorted by relevance
/linux-6.12.1/tools/perf/ |
D | builtin-ftrace.c | 622 int trace_fd; in __cmd_ftrace() local 655 trace_fd = open(trace_file, O_RDONLY); in __cmd_ftrace() 659 if (trace_fd < 0) { in __cmd_ftrace() 664 fcntl(trace_fd, F_SETFL, O_NONBLOCK); in __cmd_ftrace() 665 pollfd.fd = trace_fd; in __cmd_ftrace() 692 int n = read(trace_fd, buf, sizeof(buf)); in __cmd_ftrace() 714 int n = read(trace_fd, buf, sizeof(buf)); in __cmd_ftrace() 722 close(trace_fd); in __cmd_ftrace() 924 int trace_fd; in __cmd_latency() local 932 trace_fd = prepare_func_latency(ftrace); in __cmd_latency() [all …]
|
D | builtin-record.c | 287 static int record__aio_write(struct aiocb *cblock, int trace_fd, in record__aio_write() argument 292 cblock->aio_fildes = trace_fd; in record__aio_write() 451 int trace_fd = rec->session->data->file.fd; in record__aio_push() local 466 ret = record__aio_write(&(map->aio.cblocks[idx]), trace_fd, aio.data, aio.size, *off); in record__aio_push() 485 static off_t record__aio_get_pos(int trace_fd) in record__aio_get_pos() argument 487 return lseek(trace_fd, 0, SEEK_CUR); in record__aio_get_pos() 490 static void record__aio_set_pos(int trace_fd, off_t pos) in record__aio_set_pos() argument 492 lseek(trace_fd, pos, SEEK_SET); in record__aio_set_pos() 541 static off_t record__aio_get_pos(int trace_fd __maybe_unused) in record__aio_get_pos() 546 static void record__aio_set_pos(int trace_fd __maybe_unused, off_t pos __maybe_unused) in record__aio_set_pos() [all …]
|
/linux-6.12.1/samples/bpf/ |
D | hbm.c | 76 int trace_fd; in read_trace_pipe2() local 80 trace_fd = open(TRACEFS "trace_pipe", O_RDONLY, 0); in read_trace_pipe2() 81 if (trace_fd < 0) { in read_trace_pipe2() 98 sz = read(trace_fd, buf, sizeof(buf) - 1); in read_trace_pipe2()
|
/linux-6.12.1/tools/tracing/latency/ |
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-6.12.1/Documentation/trace/ |
D | ftrace.rst | 622 if (trace_fd < 0) 629 write(trace_fd, buf, n); 634 trace_fd = open("trace_marker", O_WRONLY); 2412 int trace_fd; 2416 trace_fd = open(tracing_file("tracing_on"), O_WRONLY); 2419 write(trace_fd, "0", 1);
|