Searched refs:trace_fd (Results 1 – 4 of 4) sorted by relevance
/external/ltp/testcases/kernel/sched/eas/ |
D | trace_parse.c | 26 static int trace_fd = -1; variable 387 if (trace_fd == -1) { in refill_buffer() 388 trace_fd = open(TRACING_DIR "trace", O_RDONLY); in refill_buffer() 389 if (trace_fd == -1) { in refill_buffer() 400 rv = read(trace_fd, idx, bytes_to_read); in refill_buffer() 520 if (trace_fd >= 0) { in load_trace() 521 close(trace_fd); in load_trace() 522 trace_fd = -1; in load_trace()
|
/external/perfetto/src/traced/probes/ftrace/ |
D | cpu_reader.cc | 217 int trace_fd, in RunWorkerThread() argument 243 auto read_ftrace_pipe = [&sync_pipe, trace_fd, pool, cpu, header_size_len]( in RunWorkerThread() 256 res = splice(trace_fd, nullptr, *sync_pipe.wr, nullptr, kPageSize, flg); in RunWorkerThread() 266 SetBlocking(trace_fd, false); in RunWorkerThread() 267 res = read(trace_fd, pool_page, kPageSize); in RunWorkerThread() 291 SetBlocking(trace_fd, true); in RunWorkerThread() 390 base::ignore_result(trace_fd); in RunWorkerThread()
|
D | cpu_reader.h | 185 int trace_fd,
|
/external/wpa_supplicant_8/src/utils/ |
D | wpa_debug.c | 130 int mounts, trace_fd; in wpa_debug_open_linux_tracing() local 170 trace_fd = open(buf, O_WRONLY); in wpa_debug_open_linux_tracing() 171 if (trace_fd < 0) { in wpa_debug_open_linux_tracing() 175 wpa_debug_tracing_file = fdopen(trace_fd, "w"); in wpa_debug_open_linux_tracing() 177 close(trace_fd); in wpa_debug_open_linux_tracing()
|