Home
last modified time | relevance | path

Searched refs:trace_fd (Results 1 – 6 of 6) sorted by relevance

/Linux-v5.15/tools/testing/selftests/bpf/
Dtrace_helpers.c122 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()
/Linux-v5.15/tools/perf/
Dbuiltin-ftrace.c571 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()
Dbuiltin-record.c182 static int record__aio_write(struct aiocb *cblock, int trace_fd, in record__aio_write() argument
187 cblock->aio_fildes = trace_fd; in record__aio_write()
342 int trace_fd = rec->session->data->file.fd; in record__aio_push() local
357 ret = record__aio_write(&(map->aio.cblocks[idx]), trace_fd, aio.data, aio.size, *off); in record__aio_push()
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()
437 static void record__aio_set_pos(int trace_fd __maybe_unused, off_t pos __maybe_unused) in record__aio_set_pos()
[all …]
/Linux-v5.15/samples/bpf/
Dhbm.c78 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-v5.15/tools/tracing/latency/
Dlatency-collector.c1139 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-v5.15/Documentation/trace/
Dftrace.rst543 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);