/system/core/debuggerd/ |
D | debuggerd_test.cpp | 101 static void tombstoned_intercept(pid_t target_pid, unique_fd* intercept_fd, unique_fd* output_fd, in tombstoned_intercept() argument 115 if (!Pipe(output_fd, &output_pipe_write)) { in tombstoned_intercept() 131 if (fcntl(output_fd->get(), F_SETPIPE_SZ, pipe_buffer_size) != pipe_buffer_size) { in tombstoned_intercept() 167 void StartIntercept(unique_fd* output_fd, DebuggerdDumpType intercept_type = kDebuggerdTombstone); 195 void CrasherTest::StartIntercept(unique_fd* output_fd, DebuggerdDumpType intercept_type) { in StartIntercept() argument 201 tombstoned_intercept(crasher_pid, &this->intercept_fd, output_fd, &status, intercept_type); in StartIntercept() 297 unique_fd output_fd; in TEST_F() local 302 StartIntercept(&output_fd); in TEST_F() 310 ConsumeFd(std::move(output_fd), &result); in TEST_F() 319 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 | 57 void dump_backtrace_thread(int output_fd, unwindstack::Unwinder* unwinder, in dump_backtrace_thread() argument 60 log.tfd = output_fd; in dump_backtrace_thread() 75 void dump_backtrace(android::base::unique_fd output_fd, unwindstack::Unwinder* unwinder, in dump_backtrace() argument 78 log.tfd = output_fd.get(); in dump_backtrace() 89 dump_backtrace_thread(output_fd.get(), unwinder, target->second); in dump_backtrace() 92 dump_backtrace_thread(output_fd.get(), unwinder, info); in dump_backtrace() 99 void dump_backtrace_header(int output_fd) { in dump_backtrace_header() argument 101 log.tfd = output_fd; in dump_backtrace_header() 108 void dump_backtrace_footer(int output_fd) { in dump_backtrace_footer() argument 110 log.tfd = output_fd; in dump_backtrace_footer()
|
D | tombstone.cpp | 593 void engrave_tombstone(unique_fd output_fd, unwindstack::Unwinder* unwinder, in engrave_tombstone() argument 603 log.tfd = output_fd.get(); in engrave_tombstone()
|
/system/core/debuggerd/handler/ |
D | debuggerd_fallback.cpp | 72 static void debuggerd_fallback_trace(int output_fd, ucontext_t* ucontext) { in debuggerd_fallback_trace() argument 91 dump_backtrace_thread(output_fd, &unwinder, thread); in debuggerd_fallback_trace() 99 static void debuggerd_fallback_tombstone(int output_fd, ucontext_t* ucontext, siginfo_t* siginfo, in debuggerd_fallback_tombstone() argument 106 engrave_tombstone_ucontext(output_fd, reinterpret_cast<uintptr_t>(abort_message), siginfo, in debuggerd_fallback_tombstone() 111 static void iterate_siblings(bool (*callback)(pid_t, int), int output_fd) { in iterate_siblings() argument 131 callback(tid, output_fd); in iterate_siblings() 238 unique_fd tombstone_socket, output_fd; in trace_handler() local 239 if (!tombstoned_connect(getpid(), &tombstone_socket, &output_fd, kDebuggerdNativeBacktrace)) { in trace_handler() 243 dump_backtrace_header(output_fd.get()); in trace_handler() 246 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 | 47 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/libartpalette/ |
D | palette_android.cc | 110 android::base::unique_fd output_fd; in PaletteWriteCrashThreadStacks() local 112 if (!tombstoned_connect(getpid(), &tombstone_fd, &output_fd, kDebuggerdJavaBacktrace)) { in PaletteWriteCrashThreadStacks() 122 if (!android::base::WriteFully(output_fd, stacks, stacks_len)) { in PaletteWriteCrashThreadStacks() 124 TEMP_FAILURE_RETRY(ftruncate(output_fd, 0)); in PaletteWriteCrashThreadStacks() 128 if (TEMP_FAILURE_RETRY(fdatasync(output_fd)) == -1 && errno != EINVAL) { in PaletteWriteCrashThreadStacks() 135 TEMP_FAILURE_RETRY(ftruncate(output_fd, 0)); in PaletteWriteCrashThreadStacks() 136 TEMP_FAILURE_RETRY(fdatasync(output_fd)); in PaletteWriteCrashThreadStacks() 139 if (close(output_fd.release()) == -1 && errno != EINTR) { in PaletteWriteCrashThreadStacks()
|
/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/adb/client/ |
D | incremental_server.h | 24 bool serve(int connection_fd, int output_fd, int argc, const char** argv);
|
D | incremental_server.cpp | 200 IncrementalServer(unique_fd adb_fd, unique_fd output_fd, std::vector<File> files) in IncrementalServer() argument 201 : adb_fd_(std::move(adb_fd)), output_fd_(std::move(output_fd)), files_(std::move(files)) { in IncrementalServer() 696 bool serve(int connection_fd, int output_fd, int argc, const char** argv) { in serve() argument 698 auto output_ufd = unique_fd(output_fd); in serve()
|
D | commandline.cpp | 2157 int output_fd = atoi(argv[2]); in adb_commandline() local 2158 if (!_is_valid_os_fd(output_fd)) { in adb_commandline() 2159 error_exit("Invalid output_fd number given: %d", output_fd); in adb_commandline() 2161 output_fd = adb_register_socket(output_fd); in adb_commandline() 2162 close_on_exec(output_fd); in adb_commandline() 2163 return incremental::serve(connection_fd, output_fd, argc - 3, argv + 3); in adb_commandline()
|
/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 | 290 android::base::unique_fd output_fd( in WriteHashTreeToFile() local 292 if (output_fd == -1) { in WriteHashTreeToFile() 297 return WriteHashTreeToFd(output_fd, 0); in WriteHashTreeToFile()
|
/system/core/debuggerd/client/ |
D | debuggerd_client.cpp | 115 unique_fd output_fd) { in debuggerd_trigger_dump() argument 292 if (!android::base::WriteFully(output_fd.get(), buf, rc)) { in debuggerd_trigger_dump()
|