/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 | 178 int pid, ret; local 185 pid = fork(); 186 if (pid == 0) { 190 } else if (pid > 0) { 192 waitpid(pid, &ret, 0); 270 static int create_subprocess(const char *cmd, const char *arg0, const char *arg1, pid_t *pid) argument 294 *pid = fork(); 295 if(*pid < 0) { 301 if(*pid == 0){ 336 // running before the child has a /proc/pid/oom_ad 353 pid_t pid = (pid_t)cookie; local 388 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 | 160 unsigned vid, pid; local 195 pid = device->idProduct; 196 DBGX("[ %s is V:%04x P:%04x ]\n", devname, vid, pid); 227 is_adb_interface(vid, pid, interface->bInterfaceClass,
|
/system/core/debuggerd/arm/ |
H A D | machine.c | 51 extern int unwind_backtrace_with_ptrace(int tfd, pid_t pid, mapinfo *map, 62 static void show_nearby_maps(int tfd, int pid, mapinfo *map) argument 67 if (ptrace(PTRACE_GETSIGINFO, pid, 0, &si)) { 69 pid, strerror(errno)); 107 * ascending order (like /proc/pid/maps). 130 static void dump_memory(int tfd, int pid, uintptr_t addr, argument 168 long data = ptrace(PTRACE_PEEKTEXT, pid, (void*)p, NULL); 193 void dump_stack_and_code(int tfd, int pid, mapinfo *map, argument 201 if(ptrace(PTRACE_GETREGS, pid, 0, &r)) return; 227 dump_memory(tfd, pid, add 317 dump_pc_and_lr(int tfd, int pid, mapinfo *map, int unwound_level, bool at_fault) argument 335 dump_registers(int tfd, int pid, bool at_fault) argument [all...] |
H A D | pr-support.c | 50 pid_t pid); 86 next_unwind_byte_with_ptrace (__gnu_unwind_state * uws, pid_t pid) argument 96 uws->data = get_remote_word(pid, uws->next); 112 pid_t pid) 121 op = next_unwind_byte_with_ptrace (uws, pid); 153 op = (op << 8) | next_unwind_byte_with_ptrace (uws, pid); 162 pid) 189 pid) 199 op = next_unwind_byte_with_ptrace (uws, pid); 205 _UVRSD_UINT32, pid) 111 unwind_execute_with_ptrace(_Unwind_Context * context, __gnu_unwind_state * uws, pid_t pid) argument [all...] |
H A D | unwind.c | 176 pid_t pid); 187 pid_t pid) 208 vrs->core.r[i] = get_remote_word(pid, ptr); 228 selfrel_offset31 (const _uw *p, pid_t pid) argument 230 _uw offset = get_remote_word(pid, (void*)p); 248 pid_t pid) 263 this_fn = selfrel_offset31 (&table[n].fnoffset, pid); 265 next_fn = selfrel_offset31 (&table[n + 1].fnoffset, pid) - 1; 284 get_eitp(_uw return_address, pid_t pid, mapinfo *map, mapinfo **containing_map) argument 306 eitp = search_EIT_table (eitp, nrec, return_address, pid); 183 unwind_VRS_Pop_with_ptrace(_Unwind_Context *context, _Unwind_VRS_RegClass regclass, _uw discriminator, _Unwind_VRS_DataRepresentation representation, pid_t pid) argument 247 search_EIT_table(const __EIT_entry * table, int nrec, _uw return_address, pid_t pid) argument 316 get_eit_entry(_Unwind_Control_Block *ucbp, _uw return_address, pid_t pid, mapinfo *map, mapinfo **containing_map) argument 386 log_function(_Unwind_Context *context, pid_t pid, int tfd, int stack_level, mapinfo *map, unsigned int sp_list[], bool at_fault) argument 478 unwind_backtrace_with_ptrace(int tfd, pid_t pid, mapinfo *map, unsigned int sp_list[], int *frame0_pc_sane, bool at_fault) argument 574 unwind_pr_common_with_ptrace(_Unwind_State state, _Unwind_Control_Block *ucbp, _Unwind_Context *context, int id, pid_t pid) argument 643 unwind_cpp_pr0_with_ptrace(_Unwind_State state, _Unwind_Control_Block *ucbp, _Unwind_Context *context, pid_t pid) argument 652 unwind_cpp_pr1_with_ptrace(_Unwind_State state, _Unwind_Control_Block *ucbp, _Unwind_Context *context, pid_t pid) argument 661 unwind_cpp_pr2_with_ptrace(_Unwind_State state, _Unwind_Control_Block *ucbp, _Unwind_Context *context, pid_t pid) argument [all...] |
/system/core/debuggerd/ |
H A D | debuggerd.c | 173 void dump_fault_addr(int tfd, int pid, int sig) argument 178 if(ptrace(PTRACE_GETSIGINFO, pid, 0, &si)){ 191 void dump_crash_banner(int tfd, unsigned pid, unsigned tid, int sig) argument 197 sprintf(data, "/proc/%d/cmdline", pid); 207 _LOG(tfd, false, "pid: %d, tid: %d >>> %s <<<\n", 208 pid, tid, x ? x : "UNKNOWN"); 213 static void parse_elf_info(mapinfo *milist, pid_t pid) argument 226 get_remote_struct(pid, (void *) (mi->start), &ehdr, 237 get_remote_struct(pid, (char *) (ptr+i), &phdr, 255 void dump_crash_report(int tfd, unsigned pid, unsigne argument 385 dump_sibling_thread_report(int tfd, unsigned pid, unsigned tid) argument 432 dump_log_file(int tfd, unsigned pid, const char* filename, bool tailOnly) argument 564 dump_logs(int tfd, unsigned pid, bool tailOnly) argument 571 engrave_tombstone(unsigned pid, unsigned tid, int debug_uid, int signal) argument [all...] |
H A D | utility.c | 27 /* Get a word from pid using ptrace. The result is the return value. */ 28 int get_remote_word(int pid, void *src) argument 30 return ptrace(PTRACE_PEEKTEXT, pid, src, NULL); 34 /* Handy routine to read aggregated data from pid using ptrace. The read 37 void get_remote_struct(int pid, void *src, void *dst, size_t size) argument 42 *(int *)((char *)dst+i) = ptrace(PTRACE_PEEKTEXT, pid, (char *)src+i, NULL); 49 val = ptrace(PTRACE_PEEKTEXT, pid, (char *)src+i, NULL);
|
/system/core/debuggerd/x86/ |
H A D | machine.c | 39 void dump_registers(int tfd, int pid, bool at_fault) argument 44 if(ptrace(PTRACE_GETREGS, pid, 0, &r)) {
|
H A D | unwind.c | 7 int unwind_backtrace_with_ptrace_x86(int tfd, pid_t pid, mapinfo *map, argument 17 if(ptrace(PTRACE_GETREGS, pid, 0, &r)) return 0; 44 eip = ptrace(PTRACE_PEEKTEXT, pid, (void*)(ebp + 4), NULL); 45 ebp = ptrace(PTRACE_PEEKTEXT, pid, (void*)ebp, NULL); 55 stack_content = ptrace(PTRACE_PEEKTEXT, pid, (void*)stack_ptr, NULL); 81 ebp = ptrace(PTRACE_PEEKTEXT, pid, (void*)ebp, NULL);
|
/system/core/include/cutils/ |
H A D | logger.h | 18 int32_t pid; /* generating process's pid */ member in struct:logger_entry
|
H A D | logprint.h | 47 pid_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 | devices.c | 728 pid_t pid; local 738 pid = fork(); 739 if (!pid) {
|
H A D | init.c | 150 pid_t pid; local 192 pid = fork(); 194 if (pid == 0) { 222 ERROR("Failed to set pid %d ioprio = %d,%d: %s\n", 290 if (pid < 0) { 292 svc->pid = 0; 297 svc->pid = pid; 325 if (svc->pid) { 327 kill(-svc->pid, SIGKIL [all...] |
H A D | init.h | 88 pid_t pid; member in struct:service 119 struct service *service_find_by_pid(pid_t pid);
|
H A D | init_parser.c | 271 struct service *service_find_by_pid(pid_t pid) argument 277 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/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:__anon369 59 typedef void DeathListener(pid_t pid); 130 pid_t pid; member in struct:__anon375 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...] |
H A D | zygote.c | 52 uint32_t pid; 137 // Read the pid, as a 4-byte network-order integer 139 ivs[0].iov_base = &pid; 140 ivs[0].iov_len = sizeof(pid); 156 pid = ntohl(pid); 158 return pid; 165 int pid; local 181 pid = send_request(fd, 1, argc + 1, newargv); 183 if (pid > 222 int pid; local [all...] |