HomeSort by relevance Sort by last modified time
    Searched defs:output_fd (Results 1 - 10 of 10) sorted by null

  /system/core/debuggerd/tombstoned/
intercept_manager.h 42 android::base::unique_fd output_fd; member in struct:Intercept
tombstoned.cpp 205 unique_fd output_fd; local
206 if (!intercept_manager->GetIntercept(crash->crash_pid, crash->crash_type, &output_fd)) {
207 std::tie(output_fd, crash->crash_path) = CrashQueue::for_crash(crash)->get_output();
213 ssize_t rc = send_fd(crash->crash_fd, &response, sizeof(response), std::move(output_fd));
  /system/core/debuggerd/handler/
debuggerd_fallback.cpp 62 static void debuggerd_fallback_trace(int output_fd, ucontext_t* ucontext) {
64 dump_backtrace_ucontext(output_fd, ucontext);
68 static void debuggerd_fallback_tombstone(int output_fd, ucontext_t* ucontext, siginfo_t* siginfo,
71 engrave_tombstone_ucontext(output_fd, reinterpret_cast<uintptr_t>(abort_message), siginfo,
76 static void iterate_siblings(bool (*callback)(pid_t, int), int output_fd) {
96 callback(tid, output_fd);
153 unique_fd tombstone_socket, output_fd; local
154 if (!tombstoned_connect(getpid(), &tombstone_socket, &output_fd, kDebuggerdNativeBacktrace)) {
158 dump_backtrace_header(output_fd.get());
161 debuggerd_fallback_trace(output_fd.get(), ucontext)
217 unique_fd tombstone_socket, output_fd; local
    [all...]
  /art/runtime/
signal_catcher.cc 117 android::base::unique_fd* output_fd) {
120 return tombstoned_connect(getpid(), tombstone_fd, output_fd, kDebuggerdJavaBacktrace);
123 UNUSED(output_fd);
139 output_fd->reset(fd);
145 android::base::unique_fd output_fd; local
146 if (!OpenStackTraceFile(&tombstone_fd, &output_fd)) {
153 std::unique_ptr<File> file(new File(output_fd.release(), true /* check_usage */));
  /system/core/debuggerd/
crash_dump.cpp 160 unique_fd& tombstoned_socket, unique_fd& output_fd,
165 if (!tombstoned_connect(target, &tombstoned_socket, &output_fd, kDebuggerdAnyIntercept)) {
172 dprintf(output_fd.get(), "crash_dump failed to dump process");
174 dprintf(output_fd.get(), " %d: %s\n", target, abort_msg);
176 dprintf(output_fd.get(), ": %s\n", abort_msg);
207 unique_fd output_fd; local
211 abort_handler(target, tombstoned_connected, tombstoned_socket, output_fd, abort_msg);
350 tombstoned_connected = tombstoned_connect(target, &tombstoned_socket, &output_fd, dump_type_enum);
360 if (TEMP_FAILURE_RETRY(dup2(output_fd.get(), STDOUT_FILENO)) == -1) {
361 PLOG(ERROR) << "failed to dup2 output fd (" << output_fd.get() << ") to STDOUT_FILENO"
    [all...]
debuggerd_test.cpp 95 static void tombstoned_intercept(pid_t target_pid, unique_fd* intercept_fd, unique_fd* output_fd,
106 if (!Pipe(output_fd, &output_pipe_write)) {
122 if (fcntl(output_fd->get(), F_SETPIPE_SZ, pipe_buffer_size) != pipe_buffer_size) {
156 void StartIntercept(unique_fd* output_fd, DebuggerdDumpType intercept_type = kDebuggerdTombstone);
182 void CrasherTest::StartIntercept(unique_fd* output_fd, DebuggerdDumpType intercept_type) {
188 tombstoned_intercept(crasher_pid, &this->intercept_fd, output_fd, &status, intercept_type);
282 unique_fd output_fd; local
287 StartIntercept(&output_fd);
295 ConsumeFd(std::move(output_fd), &result);
301 unique_fd output_fd; local
319 unique_fd output_fd; local
343 unique_fd output_fd; local
362 unique_fd output_fd; local
382 unique_fd output_fd; local
435 unique_fd output_fd; local
466 unique_fd output_fd; local
527 unique_fd output_fd; local
543 unique_fd output_fd; local
606 unique_fd intercept_fd, output_fd; local
707 unique_fd intercept_fd, output_fd; local
734 unique_fd intercept_fd, output_fd; local
747 unique_fd intercept_fd, output_fd; local
    [all...]
  /external/selinux/policycoreutils/semodule/
semodule.c 432 FILE *output_fd = NULL; local
498 output_fd = fopen(output_path, "w");
499 if (output_fd == NULL) {
505 if (fwrite(data, 1, data_len, output_fd) < data_len) {
511 if (output_fd != NULL) {
512 fclose(output_fd);
  /system/extras/ANRdaemon/
ANRdaemon.cpp 268 int output_fd = creat(path_buf, S_IRWXU); local
269 if (output_fd == -1) {
274 if (write(output_fd, header, strlen(header)) != header_len) {
276 close(output_fd);
283 close(output_fd);
296 close(output_fd);
324 result = write(output_fd, out, bufSize);
343 result = write(output_fd, out, bytes);
358 close(output_fd);
  /external/selinux/libsemanage/src/
direct_api.c 751 int output_fd[2] = {-1, -1}; local
779 retval = pipe(output_fd);
801 retval = dup2(output_fd[PIPE_WRITE], STDOUT_FILENO);
817 retval = close(output_fd[PIPE_READ]);
840 retval = close(output_fd[PIPE_WRITE]);
841 output_fd[PIPE_WRITE] = -1;
867 retval = read_from_pipe_to_data(sh, initial_len, output_fd[PIPE_READ], &data_read, &data_read_len);
871 retval = close(output_fd[PIPE_READ]);
872 output_fd[PIPE_READ] = -1;
917 if (output_fd[PIPE_READ] != -1)
    [all...]
  /system/core/logcat/
logcat.cpp 90 int output_fd; // duplication of fileno(output) (below) member in struct:android_logcat_context_internal
135 context->output_fd = -1;
167 context->output_fd = -1;
169 if (context->error && (context->output_fd == fileno(context->error))) {
170 context->output_fd = -1;
172 if (context->output_fd == context->error_fd) {
173 context->output_fd = -1;
178 if (context->output_fd == fileno(context->output)) {
179 context->output_fd = -1;
188 if (context->output_fd >= 0)
    [all...]

Completed in 495 milliseconds