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

/linux-master/tools/perf/
H A Dbuiltin-ftrace.c566 int trace_fd; local
611 trace_fd = open(trace_file, O_RDONLY);
615 if (trace_fd < 0) {
620 fcntl(trace_fd, F_SETFL, O_NONBLOCK);
621 pollfd.fd = trace_fd;
648 int n = read(trace_fd, buf, sizeof(buf));
670 int n = read(trace_fd, buf, sizeof(buf));
678 close(trace_fd);
880 int trace_fd; local
900 trace_fd
[all...]
H A Dbuiltin-record.c277 static int record__aio_write(struct aiocb *cblock, int trace_fd, argument
282 cblock->aio_fildes = trace_fd;
441 int trace_fd = rec->session->data->file.fd; local
456 ret = record__aio_write(&(map->aio.cblocks[idx]), trace_fd, aio.data, aio.size, *off);
475 static off_t record__aio_get_pos(int trace_fd) argument
477 return lseek(trace_fd, 0, SEEK_CUR);
480 static void record__aio_set_pos(int trace_fd, off_t pos) argument
482 lseek(trace_fd, pos, SEEK_SET);
531 static off_t record__aio_get_pos(int trace_fd __maybe_unused)
536 static void record__aio_set_pos(int trace_fd __maybe_unuse
1574 int trace_fd = rec->data.file.fd; local
[all...]
/linux-master/tools/testing/selftests/bpf/
H A Dtrace_helpers.c206 int trace_fd; local
209 trace_fd = open(TRACEFS_PIPE, O_RDONLY, 0);
211 trace_fd = open(DEBUGFS_PIPE, O_RDONLY, 0);
212 if (trace_fd < 0)
219 sz = read(trace_fd, buf, sizeof(buf) - 1);
/linux-master/samples/bpf/
H A Dhbm.c76 int trace_fd; local
80 trace_fd = open(TRACEFS "trace_pipe", O_RDONLY, 0);
81 if (trace_fd < 0) {
98 sz = read(trace_fd, buf, sizeof(buf) - 1);
/linux-master/tools/tracing/latency/
H A Dlatency-collector.c1139 int trace_fd; local
1152 trace_fd = open(debug_tracefile, O_RDONLY);
1154 if (trace_fd < 0) {
1195 bytes = read(trace_fd, p, bufspace);
1200 if (unlikely(close(trace_fd) != 0))
1211 if (unlikely(close(trace_fd) != 0))

Completed in 242 milliseconds