/system/vold/ |
H A D | CommandListener.cpp | 232 int pid = Process::getPid(de->d_name); local 234 if (pid < 0) { 239 Process::getProcessName(pid, processName, sizeof(processName)); 241 if (Process::checkFileDescriptorSymLinks(pid, argv[2]) || 242 Process::checkFileMaps(pid, argv[2]) || 243 Process::checkSymLink(pid, argv[2], "cwd") || 244 Process::checkSymLink(pid, argv[2], "root") || 245 Process::checkSymLink(pid, argv[2], "exe")) { 248 snprintf(msg, sizeof(msg), "%d %s", pid, processName);
|
H A D | Process.cpp | 66 void Process::getProcessName(int pid, char *buffer, size_t max) { argument 68 snprintf(buffer, max, "/proc/%d/cmdline", pid); 79 int Process::checkFileDescriptorSymLinks(int pid, const char *mountPoint) { argument 80 return checkFileDescriptorSymLinks(pid, mountPoint, NULL, 0); 83 int Process::checkFileDescriptorSymLinks(int pid, const char *mountPoint, char *openFilename, size_t max) { argument 88 sprintf(path, "/proc/%d/fd", pid); 124 int Process::checkFileMaps(int pid, const char *mountPoint) { argument 125 return checkFileMaps(pid, mountPoint, NULL, 0); 128 int Process::checkFileMaps(int pid, const char *mountPoint, char *openFilename, size_t max) { argument 132 sprintf(buffer, "/proc/%d/maps", pid); 154 checkSymLink(int pid, const char *mountPoint, const char *name) argument 191 int pid = getPid(de->d_name); local [all...] |
H A D | Process.h | 24 static int checkSymLink(int pid, const char *path, const char *name); 25 static int checkFileMaps(int pid, const char *path); 26 static int checkFileMaps(int pid, const char *path, char *openFilename, size_t max); 27 static int checkFileDescriptorSymLinks(int pid, const char *mountPoint); 28 static int checkFileDescriptorSymLinks(int pid, const char *mountPoint, char *openFilename, size_t max); 29 static void getProcessName(int pid, char *buffer, size_t max);
|
H A D | logwrapper.c | 109 pid_t pid; local 129 pid = fork(); 130 if (pid < 0) { 134 } else if (pid == 0) {
|
/system/core/adb/ |
H A D | adb.c | 850 fprintf(stderr,"--- adb starting (pid %d) ---\n", getpid()); 865 fprintf(stderr,"--- adb starting (pid %d) ---\n", getpid()); 898 fprintf(stderr,"--- adb starting (pid %d) ---\n", getpid()); 999 pid_t pid = fork(); 1000 if(pid < 0) return -1; 1002 if (pid == 0) { 1174 header.pid = 0;
|
H A D | adb.h | 455 int is_adb_interface(int vid, int pid, int usb_class, int usb_subclass, int usb_protocol);
|
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 | commandline.c | 122 " jdwp:<process pid> (remote only)\n" 547 pid_t pid; 567 pid = fork(); 569 if (pid < 0) { 572 } else if (pid == 0) {
|
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));
|
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 | backtrace.h | 28 void dump_backtrace(int fd, pid_t pid, pid_t tid, bool* detach_failed,
|
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...] |
H A D | tombstone.h | 28 char* engrave_tombstone(pid_t pid, pid_t tid, int signal,
|
/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/corkscrew/ |
H A D | ptrace.h | 115 ptrace_context_t* load_ptrace_context(pid_t pid);
|
/system/core/include/cutils/ |
H A D | iosched_policy.h | 31 extern int android_set_ioprio(int pid, IoSchedClass clazz, int ioprio); 32 extern int android_get_ioprio(int pid, IoSchedClass *clazz, int *ioprio);
|
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) {
|