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

123

/system/core/libcorkscrew/arch-mips/
H A Dptrace-mips.c24 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 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 Drenice.c43 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 Dkill.c136 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 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/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,
/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/netd/
H A DClatdController.cpp34 pid_t pid; local
44 if ((pid = fork()) < 0) {
49 if (!pid) {
63 mClatdPid = pid;
H A DResolverController.cpp80 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 DPppController.cpp54 pid_t pid; local
74 if ((pid = fork()) < 0) {
79 if (!pid) {
100 mPid = pid;
H A DSoftapController.cpp55 pid_t pid = 1; local
62 if ((pid = fork()) < 0) {
67 if (!pid) {
77 mPid = pid;
/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/libcorkscrew/arch-arm/
H A Dptrace-arm.c29 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 Dptrace-x86.c26 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 Dbackup_service.c26 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 Dtransport_usb.c132 int is_adb_interface(int vid, int pid, int usb_class, int usb_subclass, int usb_protocol) argument
/system/core/include/log/
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/libcorkscrew/
H A Dptrace.c88 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 Dmemtrack_test.c28 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 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 191 milliseconds

123