Home
last modified time | relevance | path

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

/Linux-v5.4/tools/perf/
Dbuiltin-ftrace.c281 int trace_fd; in __cmd_ftrace() local
351 trace_fd = open(trace_file, O_RDONLY); in __cmd_ftrace()
355 if (trace_fd < 0) { in __cmd_ftrace()
360 fcntl(trace_fd, F_SETFL, O_NONBLOCK); in __cmd_ftrace()
361 pollfd.fd = trace_fd; in __cmd_ftrace()
375 int n = read(trace_fd, buf, sizeof(buf)); in __cmd_ftrace()
387 int n = read(trace_fd, buf, sizeof(buf)); in __cmd_ftrace()
395 close(trace_fd); in __cmd_ftrace()
Dbuiltin-record.c147 static int record__aio_write(struct aiocb *cblock, int trace_fd, in record__aio_write() argument
152 cblock->aio_fildes = trace_fd; in record__aio_write()
307 int trace_fd = rec->session->data->file.fd; in record__aio_push() local
322 ret = record__aio_write(&(map->aio.cblocks[idx]), trace_fd, aio.data, aio.size, *off); in record__aio_push()
341 static off_t record__aio_get_pos(int trace_fd) in record__aio_get_pos() argument
343 return lseek(trace_fd, 0, SEEK_CUR); in record__aio_get_pos()
346 static void record__aio_set_pos(int trace_fd, off_t pos) in record__aio_set_pos() argument
348 lseek(trace_fd, pos, SEEK_SET); in record__aio_set_pos()
397 static off_t record__aio_get_pos(int trace_fd __maybe_unused) in record__aio_get_pos()
402 static void record__aio_set_pos(int trace_fd __maybe_unused, off_t pos __maybe_unused) in record__aio_set_pos()
[all …]
/Linux-v5.4/samples/bpf/
Dhbm.c79 int trace_fd; in read_trace_pipe2() local
83 trace_fd = open(DEBUGFS "trace_pipe", O_RDONLY, 0); in read_trace_pipe2()
84 if (trace_fd < 0) { in read_trace_pipe2()
101 sz = read(trace_fd, buf, sizeof(buf) - 1); in read_trace_pipe2()
Dbpf_load.c671 int trace_fd; in read_trace_pipe() local
673 trace_fd = open(DEBUGFS "trace_pipe", O_RDONLY, 0); in read_trace_pipe()
674 if (trace_fd < 0) in read_trace_pipe()
681 sz = read(trace_fd, buf, sizeof(buf) - 1); in read_trace_pipe()
/Linux-v5.4/Documentation/trace/
Dftrace.rst509 if (trace_fd < 0)
516 write(trace_fd, buf, n);
521 trace_fd = open("trace_marker", WR_ONLY);
2240 int trace_fd;
2244 trace_fd = open(tracing_file("tracing_on"), O_WRONLY);
2247 write(trace_fd, "0", 1);