/system/core/adb/ |
H A D | backup_service.c | 26 pid_t pid; member in struct:__anon272 44 waitpid(params->pid, &status, 0); 52 pid_t pid; local 80 pid = fork(); 81 if (pid < 0) { 91 if (pid == 0) { 138 D("fork() returned pid %d\n", pid); 143 params->pid = pid; [all...] |
H A D | jdwp_service.c | 23 | hello I'm in process <pid> | 36 equivalent to "adb forward tcp:<hostport> jdwp:<pid>" 38 "jdwp:<pid>" is a new forward destination format used to target 94 ** for each JDWP process, we record its pid and its connected socket 108 int pid; member in struct:JdwpProcess 132 if (proc->pid < 0) 135 len = snprintf(p, end-p, "%d\n", proc->pid); 177 proc->pid = -1; 205 proc->pid = -1; 240 if (proc->pid < 390 create_jdwp_connection_fd(int pid) argument [all...] |
H A D | services.c | 168 int pid, ret; local 175 pid = fork(); 176 if (pid == 0) { 180 } else if (pid > 0) { 182 waitpid(pid, &ret, 0); 260 static int create_subprocess(const char *cmd, const char *arg0, const char *arg1, pid_t *pid) argument 284 *pid = fork(); 285 if(*pid < 0) { 291 if(*pid == 0){ 326 // running before the child has a /proc/pid/oom_ad 343 pid_t pid = (pid_t)cookie; local 377 pid_t pid; local [all...] |
H A D | transport_usb.c | 132 int is_adb_interface(int vid, int pid, int usb_class, int usb_subclass, int usb_protocol) argument
|
H A D | usb_linux.c | 161 unsigned vid, pid; local 196 pid = device->idProduct; 197 DBGX("[ %s is V:%04x P:%04x ]\n", devname, vid, pid); 228 is_adb_interface(vid, pid, interface->bInterfaceClass,
|
/system/core/debuggerd/ |
H A D | backtrace.c | 37 static void dump_process_header(log_t* log, pid_t pid) { argument 43 snprintf(path, sizeof(path), "/proc/%d/cmdline", pid); 54 _LOG(log, false, "\n\n----- pid %d at %s -----\n", pid, timestr); 61 static void dump_process_footer(log_t* log, pid_t pid) { argument 62 _LOG(log, false, "\n----- end %d -----\n", pid); 115 void dump_backtrace(int fd, pid_t pid, pid_t tid, bool* detach_failed, argument 122 dump_process_header(&log, pid); 126 snprintf(task_path, sizeof(task_path), "/proc/%d/task", pid); 147 dump_process_footer(&log, pid); [all...] |
H A D | debuggerd.c | 53 pid_t pid, tid; member in struct:__anon288 102 static void wait_for_user_action(pid_t pid) { argument 114 pid, pid); 156 LOG("debuggerd resuming process %d", pid); 222 out_request->pid = cr.pid; 230 snprintf(buf, sizeof buf, "/proc/%d/task/%d", out_request->pid, out_request->tid); 232 LOG("tid %d does not exist in pid %d. ignoring debug request\n", 233 out_request->tid, out_request->pid); [all...] |
H A D | tombstone.c | 167 static void dump_thread_info(log_t* log, pid_t pid, pid_t tid, bool at_fault) { argument 189 snprintf(path, sizeof(path), "/proc/%d/cmdline", pid); 195 _LOG(log, false, "pid: %d, tid: %d, name: %s >>> %s <<<\n", pid, tid, 199 _LOG(log, true, "pid: %d, tid: %d, name: %s\n", pid, tid, 374 * ascending order (like /proc/pid/maps). 407 log_t* log, pid_t pid, pid_t tid, int* total_sleep_time_usec) { 409 snprintf(task_path, sizeof(task_path), "/proc/%d/task", pid); 414 XLOG("Cannot open /proc/%d/task\n", pid); 406 dump_sibling_thread_report(const ptrace_context_t* context, log_t* log, pid_t pid, pid_t tid, int* total_sleep_time_usec) argument 459 dump_log_file(log_t* log, pid_t pid, const char* filename, bool tailOnly) argument 591 dump_logs(log_t* log, pid_t pid, bool tailOnly) argument 600 dump_crash(log_t* log, pid_t pid, pid_t tid, int signal, bool dump_sibling_threads, int* total_sleep_time_usec) argument 693 engrave_tombstone(pid_t pid, pid_t tid, int signal, bool dump_sibling_threads, bool quiet, bool* detach_failed, int* total_sleep_time_usec) argument [all...] |
/system/core/fs_mgr/ |
H A D | fs_mgr.c | 369 pid_t pid; local 396 pid = fork(); 397 if (pid > 0) { 399 waitpid(pid, &status, 0); 400 } else if (pid == 0) {
|
/system/core/include/cutils/ |
H A D | logger.h | 23 int32_t pid; /* generating process's pid */ member in struct:logger_entry 38 int32_t pid; /* generating process's pid */ member in struct:logger_entry_v2
|
H A D | logprint.h | 47 int32_t pid; member in struct:AndroidLogEntry_t
|
/system/core/init/ |
H A D | bootchart.c | 252 int pid = strtol( entry->d_name, &end, 10); local 261 snprintf(filename,sizeof(filename),"/proc/%d/cmdline",pid); 265 snprintf(filename,sizeof(filename),"/proc/%d/stat",pid);
|
H A D | builtins.c | 464 pid_t pid; local 480 pid = fork(); 481 if (pid > 0) { 483 waitpid(pid, &status, 0); 489 } else if (pid == 0) {
|
H A D | devices.c | 791 pid_t pid; local 801 pid = fork(); 802 if (!pid) {
|
H A D | init.c | 164 pid_t pid; local 237 pid = fork(); 239 if (pid == 0) { 293 ERROR("Failed to set pid %d ioprio = %d,%d: %s\n", 374 if (pid < 0) { 376 svc->pid = 0; 381 svc->pid = pid; 409 if (svc->pid) { 411 kill(-svc->pid, SIGKIL [all...] |
H A D | init.h | 88 pid_t pid; member in struct:service 123 struct service *service_find_by_pid(pid_t pid);
|
H A D | init_parser.c | 438 struct service *service_find_by_pid(pid_t pid) argument 444 if (svc->pid == pid) {
|
H A D | signal_handler.c | 46 pid_t pid; local 54 while ( (pid = waitpid(-1, &status, block ? 0 : WNOHANG)) == -1 && errno == EINTR ); 55 if (pid <= 0) return -1; 56 INFO("waitpid returned pid %d, status = %08x\n", pid, status); 58 svc = service_find_by_pid(pid); 60 ERROR("untracked pid %d exited\n", pid); 64 NOTICE("process '%s', pid %d exited\n", svc->name, pid); [all...] |
/system/core/libcorkscrew/arch-arm/ |
H A D | ptrace-arm.c | 29 static void load_exidx_header(pid_t pid, map_info_t* mi, argument 33 if (try_get_word_ptrace(pid, mi->start + offsetof(Elf32_Ehdr, e_phoff), &elf_phoff) 34 && try_get_word_ptrace(pid, mi->start + offsetof(Elf32_Ehdr, e_phnum), 41 if (!try_get_word_ptrace(pid, elf_phdr + offsetof(Elf32_Phdr, p_type), &elf_phdr_type)) { 47 if (!try_get_word_ptrace(pid, elf_phdr + offsetof(Elf32_Phdr, p_offset), 49 || !try_get_word_ptrace(pid, elf_phdr + offsetof(Elf32_Phdr, p_filesz), 65 void load_ptrace_map_info_data_arch(pid_t pid, map_info_t* mi, map_info_data_t* data) { argument 66 load_exidx_header(pid, mi, &data->exidx_start, &data->exidx_size);
|
/system/core/libcorkscrew/arch-mips/ |
H A D | ptrace-mips.c | 24 void load_ptrace_map_info_data_arch(pid_t pid, map_info_t* mi, map_info_data_t* data) { argument
|
/system/core/libcorkscrew/ |
H A D | ptrace.c | 83 static void load_ptrace_map_info_data(pid_t pid, map_info_t* mi) { argument 86 if (try_get_word_ptrace(pid, mi->start, &elf_magic) && elf_magic == ELF_MAGIC) { 94 load_ptrace_map_info_data_arch(pid, mi, data); 101 ptrace_context_t* load_ptrace_context(pid_t pid) { argument 105 context->map_info_list = load_map_info_list(pid); 107 load_ptrace_map_info_data(pid, mi);
|
/system/core/libctest/ |
H A D | ctest.c | 90 pid_t pid = fork(); local 91 if (pid == 0) { 97 } else if (pid < 0) { 103 waitpid(pid, &status, 0);
|
/system/core/libcutils/ |
H A D | ashmem-host.c | 41 pid_t pid = getpid(); local 44 srand(time(NULL) + pid); 49 pid,
|
H A D | iosched_policy.c | 41 int android_set_ioprio(int pid, IoSchedClass clazz, int ioprio) { argument 43 if (ioprio_set(WHO_PROCESS, pid, ioprio | (clazz << CLASS_SHIFT))) { 50 int android_get_ioprio(int pid, IoSchedClass *clazz, int *ioprio) { argument 54 if ((rc = ioprio_get(WHO_PROCESS, pid)) < 0) {
|
H A D | mq.c | 50 pid_t pid; member in struct:__anon392 59 typedef void DeathListener(pid_t pid); 130 pid_t pid; member in struct:__anon398 133 * Map from pid to peer proxy. The peer has a peer proxy for each remote 195 * which the peer has been connected to. Maps pid to PeerProxy. Helps 231 pid_t* pid = (pid_t*) key; local 232 return (int) (*pid); 348 static bool peerIsDead(Peer* peer, pid_t pid) { argument 355 if (deadPeer == pid) { 368 hashmapRemove(otherPeer->connections, &(deadPeer->credentials.pid)); 389 pid_t pid = peerProxy->credentials.pid; local 601 peerProxyGetOrCreate(Peer* peer, pid_t pid, bool requestConnection) argument 685 pid_t pid = header->credentials.pid; local 898 pid_t pid = header->credentials.pid; local 1019 pid_t* pid = &(peerProxy->credentials.pid); local 1133 peerSendBytes(pid_t pid, const char* bytes, size_t size) argument 1200 peerSendSharedBytes(pid_t pid, char* bytes, size_t size, void (*free)(void* context), void* context) argument [all...] |