/system/core/libcorkscrew/arch-mips/ |
H A D | ptrace-mips.c | 24 void load_ptrace_map_info_data_arch(pid_t pid, map_info_t* mi, map_info_data_t* data) { argument
|
/system/core/toolbox/ |
H A D | ionice.c | 14 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 D | renice.c | 43 fprintf(stderr, "USAGE: %s [[-r] [-t TYPE] priority pids ...] [-g pid]\n", s); 47 void print_prio(pid_t pid) argument 52 printf("pid %d's priority: %d\n", pid, getpriority(PRIO_PROCESS, pid)); 55 sched = sched_getscheduler(pid); 73 sched_getparam(pid, &sp); 133 pid_t pid; local 135 pid = atoi(argv[0]); 143 ret = sched_setscheduler(pid, sche [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/extras/tests/bionic/libc/common/ |
H A D | test_executable_destructor.c | 61 pid_t pid; local 80 pid = fork(); 81 if (pid < 0) { 86 if (pid == 0) {
|
H A D | test_clone.c | 62 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 D | cpueater.c | 30 pid_t pid; local 45 switch(pid = fork()) { 69 printf("%d\n", pid);
|
H A D | daemonize.c | 33 int pid, fd, mode; local 84 switch(pid = fork()) { 104 switch(pid = fork()) { 117 waitpid(pid, &status, 0);
|
/system/core/libcutils/ |
H A D | iosched_policy.c | 41 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 D | ashmem-host.c | 41 pid_t pid = getpid(); local 44 srand(time(NULL) + pid); 49 pid,
|
/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/netd/ |
H A D | ClatdController.cpp | 34 pid_t pid; local 44 if ((pid = fork()) < 0) { 49 if (!pid) { 63 mClatdPid = pid;
|
H A D | ResolverController.cpp | 80 int ResolverController::setDnsInterfaceForPid(const char* iface, int pid) { argument 82 ALOGD("setDnsIfaceForPid iface = %s, pid = %d\n", iface, pid); 85 _resolv_set_iface_for_pid(iface, pid); 90 int ResolverController::clearDnsInterfaceForPid(int pid) { argument 92 ALOGD("clearDnsIfaceForPid pid = %d\n", pid); 95 _resolv_clear_iface_for_pid(pid);
|
H A D | PppController.cpp | 54 pid_t pid; local 74 if ((pid = fork()) < 0) { 79 if (!pid) { 100 mPid = 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/init/ |
H A D | signal_handler.c | 46 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/libcorkscrew/arch-arm/ |
H A D | ptrace-arm.c | 29 static void load_exidx_header(pid_t pid, map_info_t* mi, argument 34 if (try_get_word_ptrace(pid, mi->start + offsetof(Elf32_Ehdr, e_phoff), &elf_phoff) 35 && try_get_word_ptrace(pid, mi->start + offsetof(Elf32_Ehdr, e_ehsize), 37 && try_get_word_ptrace(pid, mi->start + offsetof(Elf32_Ehdr, e_phnum), 44 if (!try_get_word_ptrace(pid, elf_phdr + offsetof(Elf32_Phdr, p_type), &elf_phdr_type)) { 50 if (!try_get_word_ptrace(pid, elf_phdr + offsetof(Elf32_Phdr, p_offset), 52 || !try_get_word_ptrace(pid, elf_phdr + offsetof(Elf32_Phdr, p_filesz), 68 void load_ptrace_map_info_data_arch(pid_t pid, map_info_t* mi, map_info_data_t* data) { argument 69 load_exidx_header(pid, mi, &data->exidx_start, &data->exidx_size);
|
/system/core/libcorkscrew/arch-x86/ |
H A D | ptrace-x86.c | 26 static void load_eh_frame_hdr(pid_t pid, map_info_t* mi, uintptr_t *eh_frame_hdr) { argument 30 if (try_get_word_ptrace(pid, mi->start + offsetof(Elf32_Ehdr, e_phoff), &elf_phoff) 31 && try_get_word_ptrace(pid, mi->start + offsetof(Elf32_Ehdr, e_ehsize), 33 && try_get_word_ptrace(pid, mi->start + offsetof(Elf32_Ehdr, e_phnum), 40 if (!try_get_word_ptrace(pid, elf_phdr + offsetof(Elf32_Phdr, p_type), &elf_phdr_type)) { 45 if (!try_get_word_ptrace(pid, elf_phdr + offsetof(Elf32_Phdr, p_offset), 58 void load_ptrace_map_info_data_arch(pid_t pid, map_info_t* mi, map_info_data_t* data) { argument 59 load_eh_frame_hdr(pid, mi, &data->eh_frame_hdr);
|
/system/core/adb/ |
H A D | backup_service.c | 26 pid_t pid; member in struct:__anon5 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 | transport_usb.c | 132 int is_adb_interface(int vid, int pid, int usb_class, int usb_subclass, int usb_protocol) argument
|
/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
|
H A D | logprint.h | 47 int32_t pid; member in struct:AndroidLogEntry_t
|
/system/core/libcorkscrew/ |
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/core/libmemtrack/ |
H A D | memtrack_test.c | 28 static int getprocname(pid_t pid, char *buf, int len) { argument 38 if (asprintf(&filename, "/proc/%zd/cmdline", pid) < 0) { 111 pid_t pid = pids[i]; local 120 getprocname(pid, cmdline, (int)sizeof(cmdline)); 122 ret = memtrack_proc_get(p, pid); 124 fprintf(stderr, "failed to get memory info for pid %d: %s (%d)\n", 125 pid, strerror(-ret), ret); 137 printf("%5d %6zu %6zu %6zu %6zu %6zu %6zu %s\n", pid,
|
/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;
|