Searched refs:pid (Results 1 - 25 of 80) sorted by path

1234

/system/core/adb/
H A Dadb.c850 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 Dadb.h455 int is_adb_interface(int vid, int pid, int usb_class, int usb_subclass, int usb_protocol);
H A Dbackup_service.c26 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 Dcommandline.c122 " jdwp:<process pid> (remote only)\n"
547 pid_t pid;
567 pid = fork();
569 if (pid < 0) {
572 } else if (pid == 0) {
H A Dframebuffer_service.c66 pid_t pid = fork();
67 if (pid < 0) goto done;
69 if (pid == 0) {
175 TEMP_FAILURE_RETRY(waitpid(pid, NULL, 0));
H A Djdwp_service.c23 | 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 Dservices.c168 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 Dtransport_usb.c132 int is_adb_interface(int vid, int pid, int usb_class, int usb_subclass, int usb_protocol) argument
H A Dusb_linux.c161 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 Dbacktrace.c37 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 Dbacktrace.h28 void dump_backtrace(int fd, pid_t pid, pid_t tid, bool* detach_failed,
H A Ddebuggerd.c53 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 Dtombstone.c167 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 Dtombstone.h28 char* engrave_tombstone(pid_t pid, pid_t tid, int signal,
/system/core/fs_mgr/
H A Dfs_mgr.c369 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 Dptrace.h115 ptrace_context_t* load_ptrace_context(pid_t pid);
/system/core/include/cutils/
H A Diosched_policy.h31 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 Dlogger.h23 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 Dlogprint.h47 int32_t pid; member in struct:AndroidLogEntry_t
/system/core/init/
H A Dbootchart.c252 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 Dbuiltins.c464 pid_t pid; local
480 pid = fork();
481 if (pid > 0) {
483 waitpid(pid, &status, 0);
489 } else if (pid == 0) {
H A Ddevices.c791 pid_t pid; local
801 pid = fork();
802 if (!pid) {
H A Dinit.c164 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 Dinit.h88 pid_t pid; member in struct:service
123 struct service *service_find_by_pid(pid_t pid);
H A Dinit_parser.c438 struct service *service_find_by_pid(pid_t pid) argument
444 if (svc->pid == pid) {

Completed in 467 milliseconds

1234