/system/core/debuggerd/ |
D | debuggerd_test.cpp | 96 static void tombstoned_intercept(pid_t target_pid, unique_fd* intercept_fd, unique_fd* output_fd, in tombstoned_intercept() argument 107 if (!Pipe(output_fd, &output_pipe_write)) { in tombstoned_intercept() 123 if (fcntl(output_fd->get(), F_SETPIPE_SZ, pipe_buffer_size) != pipe_buffer_size) { in tombstoned_intercept() 159 void StartIntercept(unique_fd* output_fd, DebuggerdDumpType intercept_type = kDebuggerdTombstone); 185 void CrasherTest::StartIntercept(unique_fd* output_fd, DebuggerdDumpType intercept_type) { in StartIntercept() argument 191 tombstoned_intercept(crasher_pid, &this->intercept_fd, output_fd, &status, intercept_type); in StartIntercept() 287 unique_fd output_fd; in TEST_F() local 292 StartIntercept(&output_fd); in TEST_F() 300 ConsumeFd(std::move(output_fd), &result); in TEST_F() 306 unique_fd output_fd; in TEST_F() local [all …]
|
D | debuggerd_benchmark.cpp | 82 android::base::unique_fd output_fd(open("/dev/null", O_WRONLY | O_CLOEXEC)); in PerformDump() local 83 if (output_fd == -1) { in PerformDump() 87 if (!debuggerd_trigger_dump(target, kDebuggerdNativeBacktrace, 1000, std::move(output_fd))) { in PerformDump()
|
/system/core/debuggerd/libdebuggerd/ |
D | backtrace.cpp | 62 void dump_backtrace_thread(int output_fd, unwindstack::Unwinder* unwinder, in dump_backtrace_thread() argument 65 log.tfd = output_fd; in dump_backtrace_thread() 80 void dump_backtrace(android::base::unique_fd output_fd, unwindstack::Unwinder* unwinder, in dump_backtrace() argument 83 log.tfd = output_fd.get(); in dump_backtrace() 94 dump_backtrace_thread(output_fd.get(), unwinder, target->second); in dump_backtrace() 97 dump_backtrace_thread(output_fd.get(), unwinder, info); in dump_backtrace() 104 void dump_backtrace_header(int output_fd) { in dump_backtrace_header() argument 106 log.tfd = output_fd; in dump_backtrace_header() 114 void dump_backtrace_footer(int output_fd) { in dump_backtrace_footer() argument 116 log.tfd = output_fd; in dump_backtrace_footer()
|
D | tombstone.cpp | 658 void engrave_tombstone(unique_fd output_fd, unwindstack::Unwinder* unwinder, in engrave_tombstone() argument 668 log.tfd = output_fd.get(); in engrave_tombstone()
|
/system/core/debuggerd/handler/ |
D | debuggerd_fallback.cpp | 71 static void debuggerd_fallback_trace(int output_fd, ucontext_t* ucontext) { in debuggerd_fallback_trace() argument 90 dump_backtrace_thread(output_fd, &unwinder, thread); in debuggerd_fallback_trace() 98 static void debuggerd_fallback_tombstone(int output_fd, ucontext_t* ucontext, siginfo_t* siginfo, in debuggerd_fallback_tombstone() argument 105 engrave_tombstone_ucontext(output_fd, reinterpret_cast<uintptr_t>(abort_message), siginfo, in debuggerd_fallback_tombstone() 110 static void iterate_siblings(bool (*callback)(pid_t, int), int output_fd) { in iterate_siblings() argument 130 callback(tid, output_fd); in iterate_siblings() 237 unique_fd tombstone_socket, output_fd; in trace_handler() local 238 if (!tombstoned_connect(getpid(), &tombstone_socket, &output_fd, kDebuggerdNativeBacktrace)) { in trace_handler() 242 dump_backtrace_header(output_fd.get()); in trace_handler() 245 debuggerd_fallback_trace(output_fd.get(), ucontext); in trace_handler() [all …]
|
/system/core/debuggerd/libdebuggerd/include/libdebuggerd/ |
D | backtrace.h | 38 void dump_backtrace(android::base::unique_fd output_fd, unwindstack::Unwinder* unwinder, 41 void dump_backtrace_header(int output_fd); 42 void dump_backtrace_thread(int output_fd, unwindstack::Unwinder* unwinder, 44 void dump_backtrace_footer(int output_fd);
|
D | tombstone.h | 55 void engrave_tombstone(android::base::unique_fd output_fd, unwindstack::Unwinder* unwinder,
|
/system/core/debuggerd/include/debuggerd/ |
D | client.h | 30 android::base::unique_fd output_fd); 32 int dump_backtrace_to_file(pid_t tid, enum DebuggerdDumpType dump_type, int output_fd); 34 int output_fd);
|
/system/core/logcat/ |
D | logcat.cpp | 93 int output_fd; // duplication of fileno(output) (below) member 138 context->output_fd = -1; in create_android_logcat() 170 context->output_fd = -1; in close_output() 172 if (context->error && (context->output_fd == fileno(context->error))) { in close_output() 173 context->output_fd = -1; in close_output() 175 if (context->output_fd == context->error_fd) { in close_output() 176 context->output_fd = -1; in close_output() 181 if (context->output_fd == fileno(context->output)) { in close_output() 182 context->output_fd = -1; in close_output() 191 if (context->output_fd >= 0) { in close_output() [all …]
|
/system/extras/partition_tools/ |
D | lpunpack.cc | 49 bool ExtractExtent(const LpMetadataExtent& extent, int output_fd); 62 SparseWriter(int output_fd, int image_fd, uint32_t block_size); 234 unique_fd output_fd(open(output_path.c_str(), O_RDWR | O_CLOEXEC | O_CREAT | O_TRUNC, 0644)); in ExtractPartition() local 235 if (output_fd < 0) { in ExtractPartition() 240 SparseWriter writer(output_fd, image_fd_, metadata_->geometry.logical_block_size); in ExtractPartition() 254 SparseWriter::SparseWriter(int output_fd, int image_fd, uint32_t block_size) in SparseWriter() argument 255 : output_fd_(output_fd), image_fd_(image_fd), block_size_(block_size) {} in SparseWriter()
|
/system/extras/ANRdaemon/ |
D | ANRdaemon.cpp | 267 int output_fd = creat(path_buf, S_IRWXU); in dump_trace() local 268 if (output_fd == -1) { in dump_trace() 273 if (write(output_fd, header, strlen(header)) != header_len) { in dump_trace() 275 close(output_fd); in dump_trace() 282 close(output_fd); in dump_trace() 295 close(output_fd); in dump_trace() 323 result = write(output_fd, out, bufSize); in dump_trace() 342 result = write(output_fd, out, bytes); in dump_trace() 357 close(output_fd); in dump_trace()
|
/system/core/debuggerd/tombstoned/ |
D | tombstoned.cpp | 213 unique_fd output_fd; in perform_request() local 215 intercept_manager->GetIntercept(crash->crash_pid, crash->crash_type, &output_fd); in perform_request() 219 output_fd.reset(open("/dev/null", O_WRONLY | O_CLOEXEC)); in perform_request() 221 std::tie(crash->crash_tombstone_path, output_fd) = CrashQueue::for_crash(crash)->get_output(); in perform_request() 222 crash->crash_tombstone_fd.reset(dup(output_fd.get())); in perform_request() 230 SendFileDescriptors(crash->crash_socket_fd, &response, sizeof(response), output_fd.get()); in perform_request() 231 output_fd.reset(); in perform_request()
|
D | tombstoned_client.cpp | 35 bool tombstoned_connect(pid_t pid, unique_fd* tombstoned_socket, unique_fd* output_fd, in tombstoned_connect() argument 81 *output_fd = std::move(tmp_output_fd); in tombstoned_connect()
|
D | intercept_manager.cpp | 154 intercept->output_fd = std::move(rcv_fd); in intercept_request_cb() 214 LOG(INFO) << "found intercept fd " << intercept->output_fd.get() << " for pid " << pid in GetIntercept() 219 *out_fd = std::move(intercept->output_fd); in GetIntercept()
|
D | intercept_manager.h | 42 android::base::unique_fd output_fd; member
|
/system/core/debuggerd/tombstoned/include/tombstoned/ |
D | tombstoned.h | 26 android::base::unique_fd* output_fd, DebuggerdDumpType dump_type);
|
/system/extras/verity/ |
D | hash_tree_builder.cpp | 282 android::base::unique_fd output_fd( in WriteHashTreeToFile() local 284 if (output_fd == -1) { in WriteHashTreeToFile() 289 return WriteHashTreeToFd(output_fd, 0); in WriteHashTreeToFile()
|
/system/core/debuggerd/client/ |
D | debuggerd_client.cpp | 69 unique_fd output_fd) { in debuggerd_trigger_dump() argument 243 if (!android::base::WriteFully(output_fd.get(), buf, rc)) { in debuggerd_trigger_dump()
|