/system/extras/latencytop/ |
H A D | latencytop.c | 44 static struct latency_entry *read_process_stats(struct latency_entry *list, int erase, int pid); 45 static struct latency_entry *read_thread_stats(struct latency_entry *list, int erase, int pid, int tid, int fatal); 71 int pid, tid; local 77 pid = tid = 0; 105 pid = atoi(argv[++i]); 121 if (tid && !pid) { 145 if (pid) { 147 e = read_thread_stats(e, erase, pid, tid, 1); 149 e = read_process_stats(e, erase, pid); 157 if (pid) { 201 read_process_stats(struct latency_entry *list, int erase, int pid) argument 231 read_thread_stats(struct latency_entry *list, int erase, int pid, int tid, int fatal) argument [all...] |
/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 | services.c | 119 int pid, ret; local 126 pid = fork(); 127 if (pid == 0) { 131 } else if (pid > 0) { 133 waitpid(pid, &ret, 0); 189 static int create_subprocess(const char *cmd, const char *arg0, const char *arg1, pid_t *pid) argument 213 *pid = fork(); 214 if(*pid < 0) { 220 if(*pid == 0){ 255 // running before the child has a /proc/pid/oom_ad 272 pid_t pid = (pid_t)cookie; local 306 pid_t pid; local [all...] |
H A D | framebuffer_service.c | 66 pid_t pid = fork(); 67 if (pid < 0) goto done; 69 if (pid == 0) { 175 TEMP_FAILURE_RETRY(waitpid(pid, NULL, 0));
|
/system/core/include/log/ |
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
|
/system/core/libcorkscrew/ |
H A D | ptrace-arch.h | 42 void load_ptrace_map_info_data_arch(pid_t pid, map_info_t* mi, map_info_data_t* data);
|
H A D | ptrace.c | 88 static void load_ptrace_map_info_data(pid_t pid, map_info_t* mi) { argument 91 if (try_get_word_ptrace(pid, mi->start, &elf_magic) && elf_magic == ELF_MAGIC) { 99 load_ptrace_map_info_data_arch(pid, mi, data); 106 ptrace_context_t* load_ptrace_context(pid_t pid) { argument 110 context->map_info_list = load_map_info_list(pid); 112 load_ptrace_map_info_data(pid, mi);
|
/system/extras/ext4_utils/ |
H A D | setup_fs.c | 17 pid_t pid; local 56 while ((pid=waitpid(-1, &status, 0)) != child) { 57 if (pid == -1) {
|
/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...] |
/system/core/libmemtrack/ |
H A D | memtrack.c | 30 pid_t pid; member in struct:memtrack_proc 80 pid_t pid, enum memtrack_type type) 86 ret = module->getMemory(module, pid, type, t->records, &num_records); 119 int memtrack_proc_get(struct memtrack_proc *p, pid_t pid) argument 131 p->pid = pid; 133 memtrack_proc_get_type(&p->types[i], pid, i); 79 memtrack_proc_get_type(struct memtrack_proc_type *t, pid_t pid, enum memtrack_type type) argument
|
/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...] |
H A D | kill.c | 136 int pid = atoi(argv[0]); local 137 int err = kill(pid, sig); 140 fprintf(stderr, "could not kill pid %d: %s\n", pid, strerror(errno));
|
/system/core/libcutils/ |
H A D | ashmem-host.c | 41 pid_t pid = getpid(); local 44 srand(time(NULL) + pid); 49 pid,
|
/system/core/include/memtrack/ |
H A D | memtrack.h | 67 * Fill a process memory stats handle with data about the given pid. Can be 76 int memtrack_proc_get(struct memtrack_proc *p, pid_t pid); 83 * accounted for by reading /proc/pid/smaps and memory that has not been 94 * buffers, but has not already been accounted for by reading /proc/pid/smaps.
|
/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/netd/ |
H A D | PppController.cpp | 54 pid_t pid; local 74 if ((pid = fork()) < 0) { 79 if (!pid) { 100 mPid = pid;
|
H A D | DnsProxyListener.cpp | 55 pid_t pid, 63 mPid(pid), 134 //fall back to the per uid interface if no per pid interface exists 215 pid_t pid = cli->getPid(); local 232 pid, uid); 237 new DnsProxyListener::GetAddrInfoHandler(cli, name, service, hints, iface, pid, uid, 268 pid_t pid = cli->getPid(); local 288 new DnsProxyListener::GetHostByNameHandler(cli, pid, uid, iface, name, af, 296 pid_t pid, 303 mPid(pid), 50 GetAddrInfoHandler(SocketClient *c, char* host, char* service, struct addrinfo* hints, char* iface, pid_t pid, uid_t uid, int mark) argument 295 GetHostByNameHandler(SocketClient* c, pid_t pid, uid_t uid, char* iface, char* name, int af, int mark) argument 396 pid_t pid = cli->getPid(); local 428 GetHostByAddrHandler(SocketClient* c, void* address, int addressLen, int addressFamily, char* iface, pid_t pid, uid_t uid, int mark) argument [all...] |
H A D | DnsProxyListener.h | 49 pid_t pid, 82 pid_t pid, 119 pid_t pid,
|
H A D | SoftapController.cpp | 55 pid_t pid = 1; local 62 if ((pid = fork()) < 0) { 67 if (!pid) { 77 mPid = pid;
|
/system/core/sh/ |
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...] |
H A D | jobs.h | 47 #define SHOW_PID 0x04 /* include process pid */ 63 pid_t pid; /* process id */ member in struct:procstat 85 extern pid_t backgndpid; /* pid of last background process */
|
/system/extras/showmap/ |
H A D | showmap.c | 161 static mapinfo *load_maps(int pid, int sort_by_address, int coalesce_by_name) argument 170 snprintf(fn, sizeof(fn), "/proc/%d/smaps", pid); 173 fprintf(stderr, "cannot open /proc/%d/smaps: %s\n", pid, strerror(errno)); 202 fprintf(stderr, "could not read /proc/%d/smaps\n", pid); 242 static int show_map(int pid) argument 255 milist = load_maps(pid, addresses, !verbose && !addresses); 320 int pid; local 343 pid = strtol(arg, &argend, 10); 346 if (show_map(pid)) { 357 "showmap [-t] [-v] [-c] <pid>\ [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...] |
/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/ |
H A D | pm_kernel.c | 65 pid_t pid, *pids, *new_pids; local 81 if (sscanf(dir->d_name, "%d", &pid) < 1) 96 pids[pids_count] = pid;
|