/system/core/debuggerd/ |
D | debuggerd_test.cpp | 116 static void tombstoned_intercept(pid_t target_pid, unique_fd* intercept_fd, unique_fd* output_fd, in tombstoned_intercept() argument 130 if (!Pipe(output_fd, &output_pipe_write)) { in tombstoned_intercept() 146 if (fcntl(output_fd->get(), F_SETPIPE_SZ, pipe_buffer_size) != pipe_buffer_size) { in tombstoned_intercept() 190 void StartIntercept(unique_fd* output_fd, DebuggerdDumpType intercept_type = kDebuggerdTombstone); 223 void CrasherTest::StartIntercept(unique_fd* output_fd, DebuggerdDumpType intercept_type) { in StartIntercept() argument 229 tombstoned_intercept(crasher_pid, &this->intercept_fd, output_fd, &status, intercept_type); in StartIntercept() 338 unique_fd output_fd; in TEST_F() local 343 StartIntercept(&output_fd); in TEST_F() 351 ConsumeFd(std::move(output_fd), &result); in TEST_F() 379 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/client/ |
D | debuggerd_client.cpp | 118 unique_fd output_fd) { in debuggerd_trigger_dump() argument 125 log_error(output_fd, 0, "failed to get process info: %s", error.c_str()); in debuggerd_trigger_dump() 137 auto update_timeout = [timeout_ms, &output_fd](int sockfd, auto end) { in debuggerd_trigger_dump() 142 log_error(output_fd, 0, "timeout expired"); in debuggerd_trigger_dump() 149 log_error(output_fd, errno, "failed to set receive timeout"); in debuggerd_trigger_dump() 153 log_error(output_fd, errno, "failed to set send timeout"); in debuggerd_trigger_dump() 161 log_error(output_fd, errno, "failed to create socket"); in debuggerd_trigger_dump() 169 log_error(output_fd, errno, "failed to connect to tombstoned"); in debuggerd_trigger_dump() 181 log_error(output_fd, errno, "failed to create pipe"); in debuggerd_trigger_dump() 196 log_error(output_fd, errno, "failed to set pipe buffer size"); in debuggerd_trigger_dump() [all …]
|
/system/core/debuggerd/libdebuggerd/ |
D | backtrace.cpp | 61 void dump_backtrace_thread(int output_fd, unwindstack::AndroidUnwinder* unwinder, in dump_backtrace_thread() argument 64 log.tfd = output_fd; in dump_backtrace_thread() 79 void dump_backtrace(android::base::unique_fd output_fd, unwindstack::AndroidUnwinder* unwinder, in dump_backtrace() argument 82 log.tfd = output_fd.get(); in dump_backtrace() 93 dump_backtrace_thread(output_fd.get(), unwinder, target->second); in dump_backtrace() 96 dump_backtrace_thread(output_fd.get(), unwinder, info); in dump_backtrace() 103 void dump_backtrace_header(int output_fd) { in dump_backtrace_header() argument 105 log.tfd = output_fd; in dump_backtrace_header() 112 void dump_backtrace_footer(int output_fd) { in dump_backtrace_footer() argument 114 log.tfd = output_fd; in dump_backtrace_footer()
|
D | tombstone.cpp | 124 void engrave_tombstone(unique_fd output_fd, unique_fd proto_fd, in engrave_tombstone() argument 143 log.tfd = output_fd.get(); in engrave_tombstone()
|
/system/core/debuggerd/handler/ |
D | debuggerd_fallback.cpp | 57 static void debuggerd_fallback_trace(int output_fd, ucontext_t* ucontext) { in debuggerd_fallback_trace() argument 80 dump_backtrace_thread(output_fd, &unwinder, thread); in debuggerd_fallback_trace() 85 static void debuggerd_fallback_tombstone(int output_fd, int proto_fd, ucontext_t* ucontext, in debuggerd_fallback_tombstone() argument 92 engrave_tombstone_ucontext(output_fd, proto_fd, reinterpret_cast<uintptr_t>(abort_message), in debuggerd_fallback_tombstone() 198 unique_fd tombstone_socket, output_fd; in trace_handler() local 199 if (!tombstoned_connect(getpid(), &tombstone_socket, &output_fd, nullptr, in trace_handler() 206 dump_backtrace_header(output_fd.get()); in trace_handler() 209 debuggerd_fallback_trace(output_fd.get(), ucontext); in trace_handler() 213 if (!iterate_tids(current_tid, [&output_fd, ¤t_tid](pid_t tid) { in trace_handler() 248 bool success = forward_output(pipe_read.get(), output_fd.get(), tid); in trace_handler() [all …]
|
/system/core/debuggerd/libdebuggerd/include/libdebuggerd/ |
D | backtrace.h | 38 void dump_backtrace(android::base::unique_fd output_fd, unwindstack::AndroidUnwinder* unwinder, 41 void dump_backtrace_header(int output_fd); 42 void dump_backtrace_thread(int output_fd, unwindstack::AndroidUnwinder* unwinder, 44 void dump_backtrace_footer(int output_fd);
|
D | tombstone.h | 53 void engrave_tombstone(android::base::unique_fd output_fd, android::base::unique_fd proto_fd,
|
/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/libartpalette/ |
D | palette_android.cc | 101 android::base::unique_fd output_fd; in PaletteWriteCrashThreadStacks() local 103 if (!tombstoned_connect(getpid(), &tombstone_fd, &output_fd, kDebuggerdJavaBacktrace)) { in PaletteWriteCrashThreadStacks() 113 if (!android::base::WriteFully(output_fd, stacks, stacks_len)) { in PaletteWriteCrashThreadStacks() 115 TEMP_FAILURE_RETRY(ftruncate(output_fd, 0)); in PaletteWriteCrashThreadStacks() 119 if (TEMP_FAILURE_RETRY(fdatasync(output_fd)) == -1 && errno != EINVAL) { in PaletteWriteCrashThreadStacks() 126 TEMP_FAILURE_RETRY(ftruncate(output_fd, 0)); in PaletteWriteCrashThreadStacks() 127 TEMP_FAILURE_RETRY(fdatasync(output_fd)); in PaletteWriteCrashThreadStacks() 130 if (close(output_fd.release()) == -1 && errno != EINTR) { in PaletteWriteCrashThreadStacks()
|
/system/extras/ANRdaemon/ |
D | ANRdaemon.cpp | 255 int output_fd = creat(path_buf, S_IRWXU); in dump_trace() local 256 if (output_fd == -1) { in dump_trace() 261 if (write(output_fd, header, strlen(header)) != header_len) { in dump_trace() 263 close(output_fd); in dump_trace() 270 close(output_fd); in dump_trace() 283 close(output_fd); in dump_trace() 311 result = write(output_fd, out, bufSize); in dump_trace() 330 result = write(output_fd, out, bytes); in dump_trace() 345 close(output_fd); in dump_trace()
|
/system/extras/partition_tools/ |
D | lpunpack.cc | 50 bool ExtractExtent(const LpMetadataExtent& extent, int output_fd); 63 SparseWriter(borrowed_fd output_fd, uint32_t block_size); 258 unique_fd output_fd(open(output_path.c_str(), O_RDWR | O_CLOEXEC | O_CREAT | O_TRUNC, 0644)); in ExtractPartition() local 259 if (output_fd < 0) { in ExtractPartition() 264 SparseWriter writer(output_fd, metadata_->geometry.logical_block_size); in ExtractPartition() 278 SparseWriter::SparseWriter(borrowed_fd output_fd, uint32_t block_size) in SparseWriter() argument 279 : output_fd_(output_fd), block_size_(block_size) {} in SparseWriter()
|
/system/update_engine/aosp/ |
D | cow_converter.cc | 57 android::base::unique_fd output_fd{ in ProcessPartition() local 59 if (output_fd < 0) { in ProcessPartition() 66 TEST_AND_RETURN_FALSE(cow_writer.Initialize(output_fd)); in ProcessPartition()
|
/system/core/trusty/coverage/ |
D | coverage.cpp | 276 android::base::unique_fd output_fd(TEMP_FAILURE_RETRY(creat(filename.c_str(), 00644))); in SaveSancovFile() local 277 if (!output_fd.ok()) { in SaveSancovFile() 287 WriteFully(output_fd, &magic, sizeof(magic)); in SaveSancovFile() 297 WriteFully(output_fd, &pc, sizeof(pc)); in SaveSancovFile()
|
/system/core/debuggerd/tombstoned/ |
D | tombstoned.cpp | 285 unique_fd output_fd; in perform_request() local 287 intercept_manager->GetIntercept(crash->crash_pid, crash->crash_type, &output_fd); in perform_request() 295 output_fd.reset(dup(crash->output.text.fd)); in perform_request() 306 rc = SendFileDescriptors(crash->crash_socket_fd, &response, sizeof(response), output_fd.get(), in perform_request() 309 rc = SendFileDescriptors(crash->crash_socket_fd, &response, sizeof(response), output_fd.get()); in perform_request() 312 output_fd.reset(); in perform_request()
|
D | intercept_manager.cpp | 154 intercept->output_fd = std::move(rcv_fd); in intercept_request_cb() 226 LOG(INFO) << "found intercept fd " << intercept->output_fd.get() << " for pid " << pid in GetIntercept() 231 *out_fd = std::move(intercept->output_fd); in GetIntercept()
|
D | intercept_manager.h | 42 android::base::unique_fd output_fd; member
|
/system/extras/verity/ |
D | hash_tree_builder.cpp | 295 android::base::unique_fd output_fd( in WriteHashTreeToFile() local 297 if (output_fd == -1) { in WriteHashTreeToFile() 302 return WriteHashTreeToFd(output_fd, 0); in WriteHashTreeToFile()
|
/system/tools/mkbootimg/ |
D | repack_bootimg.py | 151 with open(out_ramdisk_file, 'w') as output_fd: 153 input=mkbootfs_result.stdout, stdout=output_fd)
|