Lines Matching refs:trace_fd
566 int trace_fd;
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;
900 trace_fd = prepare_func_latency(ftrace);
901 if (trace_fd < 0)
904 fcntl(trace_fd, F_SETFL, O_NONBLOCK);
905 pollfd.fd = trace_fd;
918 int n = read(trace_fd, buf, sizeof(buf) - 1);
936 int n = read(trace_fd, buf, sizeof(buf) - 1);
947 close(trace_fd);