Searched refs:trace_fd (Results 1 – 9 of 9) sorted by relevance
/external/trace-cmd/lib/trace-cmd/ |
D | trace-recorder.c | 38 int trace_fd; member 103 if (recorder->trace_fd >= 0) in tracecmd_free_recorder() 104 close(recorder->trace_fd); in tracecmd_free_recorder() 120 flags = fcntl(recorder->trace_fd, F_GETFL); in set_nonblock() 121 fcntl(recorder->trace_fd, F_SETFL, flags | O_NONBLOCK); in set_nonblock() 151 recorder->trace_fd = -1; in tracecmd_create_buffer_recorder_fd2() 187 recorder->trace_fd = open(path, O_RDONLY); in tracecmd_create_buffer_recorder_fd2() 190 if (recorder->trace_fd < 0) in tracecmd_create_buffer_recorder_fd2() 311 int trace_fd) in tracecmd_create_recorder_virt() argument 317 recorder->trace_fd = trace_fd; in tracecmd_create_recorder_virt() [all …]
|
/external/ltp/testcases/kernel/sched/eas/ |
D | trace_parse.c | 28 static int trace_fd = -1; variable 430 if (trace_fd == -1) { in refill_buffer() 433 trace_fd = open(buf, O_RDONLY); in refill_buffer() 434 if (trace_fd == -1) { in refill_buffer() 445 rv = read(trace_fd, idx, bytes_to_read); in refill_buffer() 565 if (trace_fd >= 0) { in load_trace() 566 close(trace_fd); in load_trace() 567 trace_fd = -1; in load_trace()
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | trace_helpers.c | 123 int trace_fd; in read_trace_pipe() local 125 trace_fd = open(DEBUGFS "trace_pipe", O_RDONLY, 0); in read_trace_pipe() 126 if (trace_fd < 0) in read_trace_pipe() 133 sz = read(trace_fd, buf, sizeof(buf) - 1); in read_trace_pipe()
|
/external/wpa_supplicant_8/src/utils/ |
D | wpa_debug.c | 130 int mounts, trace_fd; in wpa_debug_open_linux_tracing() local 171 trace_fd = open(buf, O_WRONLY); in wpa_debug_open_linux_tracing() 172 if (trace_fd < 0) { in wpa_debug_open_linux_tracing() 176 wpa_debug_tracing_file = fdopen(trace_fd, "w"); in wpa_debug_open_linux_tracing() 178 close(trace_fd); in wpa_debug_open_linux_tracing()
|
/external/perfetto/src/traced/probes/ftrace/ |
D | cpu_reader.h | 134 base::ScopedFile trace_fd);
|
D | cpu_reader.cc | 167 base::ScopedFile trace_fd) in CpuReader() argument 172 trace_fd_(std::move(trace_fd)) { in CpuReader()
|
/external/perfetto/src/tracing/internal/ |
D | tracing_muxer_impl.h | 168 base::ScopedFile trace_fd = base::ScopedFile());
|
D | tracing_muxer_impl.cc | 1885 base::ScopedFile trace_fd) { in SetupTracingSession() argument 1887 PERFETTO_CHECK(!trace_fd || trace_config->write_into_file()); in SetupTracingSession() 1894 if (trace_fd) in SetupTracingSession() 1895 consumer->trace_fd_ = std::move(trace_fd); in SetupTracingSession()
|
/external/trace-cmd/lib/trace-cmd/include/private/ |
D | trace-cmd-private.h | 368 …d_recorder *tracecmd_create_recorder_virt(const char *file, int cpu, unsigned flags, int trace_fd);
|