Home
last modified time | relevance | path

Searched refs:output_fd (Results 1 – 22 of 22) sorted by relevance

/system/core/debuggerd/
Ddebuggerd_test.cpp114 static void tombstoned_intercept(pid_t target_pid, unique_fd* intercept_fd, unique_fd* output_fd, in tombstoned_intercept() argument
128 if (!Pipe(output_fd, &output_pipe_write)) { in tombstoned_intercept()
144 if (fcntl(output_fd->get(), F_SETPIPE_SZ, pipe_buffer_size) != pipe_buffer_size) { in tombstoned_intercept()
180 void StartIntercept(unique_fd* output_fd, DebuggerdDumpType intercept_type = kDebuggerdTombstone);
213 void CrasherTest::StartIntercept(unique_fd* output_fd, DebuggerdDumpType intercept_type) { in StartIntercept() argument
219 tombstoned_intercept(crasher_pid, &this->intercept_fd, output_fd, &status, intercept_type); in StartIntercept()
328 unique_fd output_fd; in TEST_F() local
333 StartIntercept(&output_fd); in TEST_F()
341 ConsumeFd(std::move(output_fd), &result); in TEST_F()
355 unique_fd output_fd; in TEST_F() local
[all …]
Ddebuggerd_benchmark.cpp82 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/
Dbacktrace.cpp60 void dump_backtrace_thread(int output_fd, unwindstack::Unwinder* unwinder, in dump_backtrace_thread() argument
63 log.tfd = output_fd; in dump_backtrace_thread()
82 void dump_backtrace(android::base::unique_fd output_fd, unwindstack::Unwinder* unwinder, in dump_backtrace() argument
85 log.tfd = output_fd.get(); in dump_backtrace()
96 dump_backtrace_thread(output_fd.get(), unwinder, target->second); in dump_backtrace()
99 dump_backtrace_thread(output_fd.get(), unwinder, info); in dump_backtrace()
106 void dump_backtrace_header(int output_fd) { in dump_backtrace_header() argument
108 log.tfd = output_fd; in dump_backtrace_header()
115 void dump_backtrace_footer(int output_fd) { in dump_backtrace_footer() argument
117 log.tfd = output_fd; in dump_backtrace_footer()
Dtombstone.cpp609 void engrave_tombstone(unique_fd output_fd, unique_fd proto_fd, unwindstack::Unwinder* unwinder, in engrave_tombstone() argument
627 log.tfd = output_fd.get(); in engrave_tombstone()
/system/core/debuggerd/handler/
Ddebuggerd_fallback.cpp72 static void debuggerd_fallback_trace(int output_fd, ucontext_t* ucontext) { in debuggerd_fallback_trace() argument
96 dump_backtrace_thread(output_fd, &unwinder, thread); in debuggerd_fallback_trace()
101 static void debuggerd_fallback_tombstone(int output_fd, int proto_fd, ucontext_t* ucontext, in debuggerd_fallback_tombstone() argument
108 engrave_tombstone_ucontext(output_fd, proto_fd, reinterpret_cast<uintptr_t>(abort_message), in debuggerd_fallback_tombstone()
113 static void iterate_siblings(bool (*callback)(pid_t, int), int output_fd) { in iterate_siblings() argument
133 callback(tid, output_fd); in iterate_siblings()
240 unique_fd tombstone_socket, output_fd; in trace_handler() local
241 if (!tombstoned_connect(getpid(), &tombstone_socket, &output_fd, nullptr, in trace_handler()
248 dump_backtrace_header(output_fd.get()); in trace_handler()
251 debuggerd_fallback_trace(output_fd.get(), ucontext); in trace_handler()
[all …]
/system/core/debuggerd/libdebuggerd/include/libdebuggerd/
Dbacktrace.h38 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);
Dtombstone.h54 void engrave_tombstone(android::base::unique_fd output_fd, android::base::unique_fd proto_fd,
/system/core/debuggerd/include/debuggerd/
Dclient.h30 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/
Dpalette_android.cc111 android::base::unique_fd output_fd; in PaletteWriteCrashThreadStacks() local
113 if (!tombstoned_connect(getpid(), &tombstone_fd, &output_fd, kDebuggerdJavaBacktrace)) { in PaletteWriteCrashThreadStacks()
123 if (!android::base::WriteFully(output_fd, stacks, stacks_len)) { in PaletteWriteCrashThreadStacks()
125 TEMP_FAILURE_RETRY(ftruncate(output_fd, 0)); in PaletteWriteCrashThreadStacks()
129 if (TEMP_FAILURE_RETRY(fdatasync(output_fd)) == -1 && errno != EINVAL) { in PaletteWriteCrashThreadStacks()
136 TEMP_FAILURE_RETRY(ftruncate(output_fd, 0)); in PaletteWriteCrashThreadStacks()
137 TEMP_FAILURE_RETRY(fdatasync(output_fd)); in PaletteWriteCrashThreadStacks()
140 if (close(output_fd.release()) == -1 && errno != EINTR) { in PaletteWriteCrashThreadStacks()
/system/extras/partition_tools/
Dlpunpack.cc49 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/
DANRdaemon.cpp255 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/update_engine/aosp/
Dcow_converter.cc53 android::base::unique_fd output_fd{ in ProcessPartition() local
55 if (output_fd < 0) { in ProcessPartition()
62 TEST_AND_RETURN_FALSE(cow_writer.Initialize(output_fd)); in ProcessPartition()
/system/iorap/src/prefetcher/
Dprefetcher_daemon.h29 int output_fd; member
37 os << "output_fd=" << p.output_fd << ",";
Dmain.cc165 params.output_fd = arg_output_fd; in Main()
171 << ",output_fd=" << params.output_fd; in Main()
Dprefetcher_daemon.cc949 params.output_fd = pipefd_write_; in StartPipesViaFork()
972 params.output_fd = pipefd_write_; in StartSocketViaFork()
1019 s2 << params.output_fd; in StartViaFork()
1022 argv << " --output-fd" << " " << params.output_fd; in StartViaFork()
/system/core/trusty/coverage/
Dcoverage.cpp276 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/
Dtombstoned.cpp285 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()
Dintercept_manager.cpp154 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()
Dintercept_manager.h42 android::base::unique_fd output_fd; member
/system/extras/verity/
Dhash_tree_builder.cpp295 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/core/debuggerd/client/
Ddebuggerd_client.cpp115 unique_fd output_fd) { in debuggerd_trigger_dump() argument
292 if (!android::base::WriteFully(output_fd.get(), buf, rc)) { in debuggerd_trigger_dump()
/system/tools/mkbootimg/
Drepack_bootimg.py151 with open(out_ramdisk_file, 'w') as output_fd:
153 input=mkbootfs_result.stdout, stdout=output_fd)