/system/core/adb/ |
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 | 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 | debuggerd.c | 54 pid_t pid, tid; member in struct:__anon21 104 static void wait_for_user_action(pid_t pid) { argument 116 pid, pid); 158 LOG("debuggerd resuming process %d", pid); 207 LOG("timed out reading tid (from pid=%d uid=%d)\n", cr.pid, cr.uid); 215 LOG("read failure? %s (pid=%d uid=%d)\n", 216 strerror(errno), cr.pid, cr.uid); 222 LOG("invalid crash request of size %d (from pid [all...] |
H A D | tombstone.c | 196 static void dump_thread_info(log_t* log, pid_t pid, pid_t tid, bool at_fault) { argument 218 snprintf(path, sizeof(path), "/proc/%d/cmdline", pid); 224 _LOG(log, SCOPE_AT_FAULT, "pid: %d, tid: %d, name: %s >>> %s <<<\n", pid, tid, 228 _LOG(log, 0, "pid: %d, tid: %d, name: %s\n", 229 pid, tid, threadname ? threadname : "UNKNOWN"); 417 * ascending order (like /proc/pid/maps). 438 log_t* log, pid_t pid, pid_t tid, int* total_sleep_time_usec) { 440 snprintf(task_path, sizeof(task_path), "/proc/%d/task", pid); 445 XLOG("Cannot open /proc/%d/task\n", pid); 437 dump_sibling_thread_report(const ptrace_context_t* context, log_t* log, pid_t pid, pid_t tid, int* total_sleep_time_usec) argument 489 dump_log_file(log_t* log, pid_t pid, const char* filename, bool tailOnly) argument 621 dump_logs(log_t* log, pid_t pid, bool tailOnly) argument 665 dump_crash(log_t* log, pid_t pid, pid_t tid, int signal, uintptr_t abort_msg_address, bool dump_sibling_threads, int* total_sleep_time_usec) argument 810 engrave_tombstone(pid_t pid, pid_t tid, int signal, uintptr_t abort_msg_address, bool dump_sibling_threads, bool quiet, bool* detach_failed, int* total_sleep_time_usec) argument [all...] |
/system/core/include/private/ |
H A D | android_filesystem_capability.h | 39 int pid; member in struct:__user_cap_header_struct
|
/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 | 463 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 | 801 pid_t pid; local 811 pid = fork(); 812 if (!pid) {
|
H A D | init_parser.c | 442 struct service *service_find_by_pid(pid_t pid) argument 448 if (svc->pid == pid) {
|
H A D | init.c | 157 pid_t pid; local 235 pid = fork(); 237 if (pid == 0) { 272 ERROR("Failed to set pid %d ioprio = %d,%d: %s\n", 348 if (pid < 0) { 350 svc->pid = 0; 355 svc->pid = pid; 382 if (svc->pid) { 384 kill(-svc->pid, SIGKIL [all...] |
/system/core/logwrapper/ |
H A D | logwrap.c | 297 static int parent(const char *tag, int parent_read, pid_t pid, argument 406 ret = waitpid(pid, &status, WNOHANG); 481 pid_t pid; local 524 pid = fork(); 525 if (pid < 0) { 530 } else if (pid == 0) { 552 rc = parent(argv[0], parent_ptty, pid, status, log_target,
|
/system/extras/ksmutils/ |
H A D | ksminfo.c | 42 pid_t pid; member in struct:vaddr 60 static int getprocname(pid_t pid, char *buf, int len); 131 fprintf(stderr, "Error allocating pid memory\n"); 205 pid_t pid; local 210 pid = pm_process_pid(maps[0]->proc); 212 error = snprintf(filename, MAX_FILENAME, "/proc/%d/mem", pid); 296 cur_page->vaddr[cur_page->vaddr_len - 1].pid == pid && 317 cur_page->vaddr[cur_page->vaddr_len].pid = pid; 441 getprocname(pid_t pid, char *buf, int len) argument [all...] |
/system/extras/libpagemap/include/pagemap/ |
H A D | pagemap.h | 58 pid_t pid; member in struct:pm_process 131 #define pm_process_pid(proc) ((proc)->pid) 135 int pm_process_create(pm_kernel_t *ker, pid_t pid, pm_process_t **proc_out);
|
/system/extras/librank/ |
H A D | librank.c | 32 pid_t pid; member in struct:process_info 51 static int getprocname(pid_t pid, char *buf, size_t len); 159 struct process_info *get_process(pid_t pid) { argument 168 process->pid = pid; 169 getprocname(pid, process->cmdline, sizeof(process->cmdline)); 343 fprintf(stderr, "Error listing maps for process %d.\n", proc->pid); 365 pm_map_name(maps[j]), proc->pid); 414 pi->pid); 444 static int getprocname(pid_t pid, cha argument [all...] |
/system/extras/tests/sdcard/ |
H A D | sysutil.cpp | 367 pid_t pid = wait(&status); local 368 if (-1 == pid) 376 fprintf(stderr, "Child pid %d did not exit cleanly %s\n", 377 pid, reasonChildExited(status)); 445 pid_t pid = getpid(); local 446 char *start = reinterpret_cast<char *>(&pid); 447 size_t size = sizeof(pid); 530 pid_t pid; local 531 char *end = reinterpret_cast<char *>(&pid); 535 size = sizeof(pid); [all...] |
H A D | testcase.h | 121 pid_t pid() const { return mPid; } function in class:android_test::TestCase
|
/system/core/liblog/ |
H A D | fake_log_device.c | 357 pid_t pid, tid; local 363 pid = tid = getpid(); // find gettid()? 395 "%c(%5d) ", priChar, pid); 401 "%c(%5d:%5d) ", priChar, pid, tid); 415 "%s %5d %5d %c %-8s \n\t", timeBuf, pid, tid, priChar, tag); 421 timeBuf, pid, tid, priChar, tag); 426 "%c/%-8s(%5d): ", priChar, tag, pid);
|
/system/core/sh/ |
H A D | eval.c | 230 TRACE(("pid %d, evaltree(%p: %d, %d) called\n", 849 pid_t pid; local 854 switch (pid = vfork()) { 888 (void)waitpid(pid, NULL, 0); 893 forkparent(jp, cmd, mode, pid);
|
H A D | jobs.c | 92 MKINIT pid_t backgndpid = -1; /* pid of last background process */ 273 if (tcsetpgrp(ttyfd, jp->ps[i].pid) != -1) 367 if (killpg(jp->ps[i].pid, SIGCONT) != -1) 393 outfmt(out, "%ld\n", (long)jp->ps->pid); 447 fmtstr(s + col, 16, "%ld ", (long)ps->pid); 669 out1fmt("%ld", (long)jp->ps[i].pid); 683 return -jp->ps[0].pid; 695 int pid; local 749 pid = number(name); 752 && jp->ps[jp->nprocs - 1].pid 849 int pid; local 867 forkparent(struct job *jp, union node *n, int mode, pid_t pid) argument 1044 int pid; local [all...] |
/system/core/toolbox/ |
H A D | top.c | 55 pid_t pid; member in struct:proc_info 96 static void read_policy(int pid, struct proc_info *proc); 101 static struct proc_info *find_old_proc(pid_t pid, pid_t tid); 230 pid_t pid, tid; local 251 pid = atoi(pid_dir->d_name); 258 proc->pid = proc->tid = pid; 260 sprintf(filename, "/proc/%d/stat", pid); 263 sprintf(filename, "/proc/%d/cmdline", pid); 266 sprintf(filename, "/proc/%d/status", pid); 382 read_policy(int pid, struct proc_info *proc) argument 488 find_old_proc(pid_t pid, pid_t tid) argument [all...] |
/system/core/sdcard/ |
H A D | fuse.h | 122 __u32 pid; /* tgid */ member in struct:fuse_file_lock 543 __u32 pid; member in struct:fuse_in_header
|