Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/
H A 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()
/OK3568_Linux_fs/kernel/tools/perf/
H A Dbuiltin-ftrace.c571 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()
H A Dbuiltin-record.c179 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 …]
/OK3568_Linux_fs/kernel/samples/bpf/
H A Dhbm.c80 int trace_fd; in read_trace_pipe2() local
84 trace_fd = open(DEBUGFS "trace_pipe", O_RDONLY, 0); in read_trace_pipe2()
85 if (trace_fd < 0) { in read_trace_pipe2()
102 sz = read(trace_fd, buf, sizeof(buf) - 1); in read_trace_pipe2()
/OK3568_Linux_fs/kernel/Documentation/trace/
H A Dftrace.rst546 if (trace_fd < 0)
553 write(trace_fd, buf, n);
558 trace_fd = open("trace_marker", WR_ONLY);
2299 int trace_fd;
2303 trace_fd = open(tracing_file("tracing_on"), O_WRONLY);
2306 write(trace_fd, "0", 1);