Searched defs:pid (Results 1 - 25 of 65) sorted by relevance

123

/system/core/debuggerd/x86/
H A Dmachine.c39 void dump_registers(int tfd, int pid, bool at_fault) argument
44 if(ptrace(PTRACE_GETREGS, pid, 0, &r)) {
H A Dunwind.c7 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/toolbox/
H A Dionice.c14 int pid; local
17 fprintf(stderr, "usage: ionice <pid> [none|rt|be|idle] [prio]\n");
21 if (!(pid = atoi(argv[1]))) {
22 fprintf(stderr, "Invalid pid specified\n");
27 if (android_get_ioprio(pid, &clazz, &ioprio)) {
31 fprintf(stdout, "Pid %d, class %s (%d), prio %d\n", pid, classes[clazz], clazz, ioprio);
50 printf("Setting pid %d i/o class to %d, prio %d\n", pid, clazz, ioprio);
51 if (android_set_ioprio(pid, clazz, ioprio)) {
H A Dkill.c23 int pid = atoi(argv[0]); local
24 int err = kill(pid, sig);
27 fprintf(stderr, "could not kill pid %d: %s\n", pid, strerror(errno));
H A Drenice.c42 fprintf(stderr, "USAGE: %s [[-r] priority pids ...] [-g pid]\n", s);
46 void print_prio(pid_t pid) argument
51 printf("pid %d's priority: %d\n", pid, getpriority(PRIO_PROCESS, pid));
54 sched = sched_getscheduler(pid);
72 sched_getparam(pid, &sp);
115 pid_t pid; local
117 pid = atoi(argv[0]);
125 ret = sched_setscheduler(pid, SCHED_R
[all...]
/system/extras/tests/bionic/libc/common/
H A Dtest_executable_destructor.c61 pid_t pid; local
80 pid = fork();
81 if (pid < 0) {
86 if (pid == 0) {
H A Dtest_clone.c62 int pid,child; local
65 pid = clone (clone_child, clone_stack + 3 * PAGE_SIZE,
67 if (pid < 0)
72 printf ("child pid %d\n", pid);
75 child = waitpid (pid, &status, 0);
/system/extras/tests/cpueater/
H A Dcpueater.c30 pid_t pid; local
45 switch(pid = fork()) {
69 printf("%d\n", pid);
H A Ddaemonize.c33 int pid, fd, mode; local
84 switch(pid = fork()) {
104 switch(pid = fork()) {
117 waitpid(pid, &status, 0);
/system/netd/
H A DPanController.cpp51 pid_t pid; local
71 if ((pid = fork()) < 0) {
76 if (!pid) {
84 mPid = pid;
H A Dmain.cpp136 pid_t pid = wait(NULL); local
137 LOGD("Child process %d exited", pid);
H A DPppController.cpp56 pid_t pid; local
76 if ((pid = fork()) < 0) {
81 if (!pid) {
102 mPid = pid;
/system/core/debuggerd/
H A Dutility.c27 /* 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/libcutils/
H A Diosched_policy.c41 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 Dashmem-host.c41 pid_t pid = getpid(); local
44 srand(time(NULL) + pid);
49 pid,
H A Dzygote.c52 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...]
/system/extras/ext4_utils/
H A Dsetup_fs.c17 pid_t pid; local
56 while ((pid=waitpid(-1, &status, 0)) != child) {
57 if (pid == -1) {
/system/core/include/cutils/
H A Dlogger.h18 int32_t pid; /* generating process's pid */ member in struct:logger_entry
H A Dlogprint.h47 pid_t pid; member in struct:AndroidLogEntry_t
/system/core/init/
H A Dsignal_handler.c46 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/adb/
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 Dtransport_usb.c132 int is_adb_interface(int vid, int pid, int usb_class, int usb_subclass, int usb_protocol) argument
/system/core/debuggerd/arm/
H A Dpr-support.c50 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...]
/system/core/logwrapper/
H A Dlogwrapper.c121 pid_t pid; local
153 pid = fork();
154 if (pid < 0) {
156 } else if (pid == 0) {
/system/extras/libpagemap/
H A Dpm_kernel.c65 pid_t pid, *pids, *new_pids; local
81 if (sscanf(dir->d_name, "%d", &pid) < 1)
96 pids[pids_count] = pid;

Completed in 197 milliseconds

123