Lines Matching refs:trace_fd
622 int trace_fd; in __cmd_ftrace() local
655 trace_fd = open(trace_file, O_RDONLY); in __cmd_ftrace()
659 if (trace_fd < 0) { in __cmd_ftrace()
664 fcntl(trace_fd, F_SETFL, O_NONBLOCK); in __cmd_ftrace()
665 pollfd.fd = trace_fd; in __cmd_ftrace()
692 int n = read(trace_fd, buf, sizeof(buf)); in __cmd_ftrace()
714 int n = read(trace_fd, buf, sizeof(buf)); in __cmd_ftrace()
722 close(trace_fd); in __cmd_ftrace()
924 int trace_fd; in __cmd_latency() local
932 trace_fd = prepare_func_latency(ftrace); in __cmd_latency()
933 if (trace_fd < 0) in __cmd_latency()
936 fcntl(trace_fd, F_SETFL, O_NONBLOCK); in __cmd_latency()
937 pollfd.fd = trace_fd; in __cmd_latency()
950 int n = read(trace_fd, buf, sizeof(buf) - 1); in __cmd_latency()
968 int n = read(trace_fd, buf, sizeof(buf) - 1); in __cmd_latency()
979 close(trace_fd); in __cmd_latency()
1208 int trace_fd; in __cmd_profile() local
1244 trace_fd = open(trace_file, O_RDONLY); in __cmd_profile()
1248 if (trace_fd < 0) { in __cmd_profile()
1253 fcntl(trace_fd, F_SETFL, O_NONBLOCK); in __cmd_profile()
1262 io__init(&io, trace_fd, buf, sizeof(buf)); in __cmd_profile()
1298 close(trace_fd); in __cmd_profile()