/system/core/include/log/ |
logger.h | 29 int32_t pid; /* generating process's pid */ member in struct:logger_entry 44 int32_t pid; /* generating process's pid */ member in struct:logger_entry_v2 55 int32_t pid; /* generating process's pid */ member in struct:logger_entry_v3 166 pid_t pid); 169 pid_t pid); 183 pid_t pid);
|
/system/core/libmemtrack/ |
memtrack.c | 34 pid_t pid; member in struct:memtrack_proc 84 pid_t pid, enum memtrack_type type) 90 ret = module->getMemory(module, pid, type, t->records, &num_records); 123 int memtrack_proc_get(struct memtrack_proc *p, pid_t pid) 135 p->pid = pid; 137 memtrack_proc_get_type(&p->types[i], pid, i);
|
/system/core/libprocessgroup/ |
processgroup.cpp | 56 static int convertUidPidToPath(char *path, size_t size, uid_t uid, int pid) 63 pid); 66 static int initCtx(uid_t uid, int pid, struct ctx *ctx) 70 convertUidPidToPath(path, sizeof(path), uid, pid); 135 long pid = strtol(ctx->buf_ptr, &pid_eptr, 10); local 146 return (pid_t)pid; 149 static int removeProcessGroup(uid_t uid, int pid) 154 convertUidPidToPath(path, sizeof(path), uid, pid); 220 pid_t pid; local 224 while ((pid = getOneAppProcess(uid, initialPid, &ctx)) >= 0) 330 char pid[PROCESSGROUP_MAX_PID_LEN + 1] = {0}; local [all...] |
/system/core/logd/ |
LogAudit.cpp | 113 pid_t pid = getpid(); local 138 static const char pid_str[] = " pid="; 142 pid = 0; 144 pid = (pid * 10) + (*cp - '0'); 147 tid = pid; 149 uid = logbuf->pidToUid(pid); 170 rc = logbuf->log(LOG_ID_EVENTS, now, uid, pid, tid, 189 } else if (pid == getpid()) { 190 pid = tid [all...] |
LogReader.cpp | 90 pid_t pid = 0; local 91 static const char _pid[] = " pid="; 94 pid = atol(cp + sizeof(_pid) - 1); 119 LogFindStart(unsigned logMask, pid_t pid, log_time &start, uint64_t &sequence) : 120 mPid(pid), 149 } logFindStart(logMask, pid, start, sequence); 163 FlushCommand command(*this, nonBlock, tail, logMask, pid, sequence);
|
/system/core/toolbox/ |
lsof.c | 49 pid_t pid; member in struct:pid_info_t 62 "PID", 92 info->cmdline, info->pid, info->user, type, 121 info->cmdline, info->pid, info->user, "mem", 145 info->cmdline, info->pid, info->user, "FDS", 164 static void lsof_dumpinfo(pid_t pid) 171 info.pid = pid; 172 snprintf(info.path, sizeof(info.path), "/proc/%d/", pid); 175 // Get the UID by calling stat on the proc/pid directory 220 long int pid = 0; local [all...] |
/system/extras/memtrack/ |
memtrack.cpp | 127 bool ProcessInfo::getInformation(int pid, char *pid_str, size_t pid_str_len) { 158 cur_[cmd_name_].pids.push_back(pid); 178 size_t pid; local 181 // Check if the directory entry represents a pid. 184 pid = 0; 190 pid = pid * 10 + dir_data->d_name[i] - '0'; 193 getInformation(pid, dir_data->d_name, len); 339 printf("Hit Ctrl-Z or send SIGUSR1 to pid %d to print the current list of\n",
|
/system/extras/procmem/ |
procmem.c | 43 pid_t pid; local 97 pid = (pid_t)strtol(argv[argc - 1], &endptr, 10); 99 fprintf(stderr, "Invalid PID \"%s\".\n", argv[argc - 1]); 112 error = pm_process_create(ker, pid, &proc); 115 "does process %d really exist?\n", pid); 305 fprintf(stderr, "Usage: %s [ -w | -W ] [ -p | -m ] [ -h ] pid\n"
|
/system/extras/taskstats/ |
taskstats.c | 39 int pid; member in struct:TaskStatistics 111 stats->pid = nla_get_u32(attr); 165 return stats->pid || stats->tgid; 196 printf("%-25s%d\n", "PID:", s->ac_pid); 296 " --pid PID Print stats for the process id PID\n" 300 "Either PID or TGID must be specified. For more documentation about " 308 int pid = 0; local 313 {"pid", required_argument, 0, 0} [all...] |
/system/vold/ |
MoveTask.cpp | 96 pid_t pid = ForkExecvpAsync(cmd); local 97 if (pid == -1) return -1; 101 if (waitpid(pid, &status, WNOHANG) == pid) { 137 pid_t pid = ForkExecvpAsync(cmd); local 138 if (pid == -1) return -1; 142 if (waitpid(pid, &status, WNOHANG) == pid) {
|
/bionic/libc/bionic/ |
getentropy_linux.c | 366 pid_t pid; local 370 pid = getpid(); 371 if (lastpid == pid) { 376 lastpid = pid; 394 HX((pid = getpid()) == -1, pid); 395 HX((pid = getsid(pid)) == -1, pid); 396 HX((pid = getppid()) == -1, pid) [all...] |
/bionic/libc/kernel/uapi/linux/ |
agpgart.h | 75 __kernel_pid_t pid; member in struct:_agp_region
|
auto_fs4.h | 76 __u32 pid; member in struct:autofs_v5_packet
|
dlm_device.h | 59 __u32 pid; member in struct:dlm_purge_params
|
fanotify.h | 72 __s32 pid; member in struct:fanotify_event_metadata
|
/bionic/libc/kernel/uapi/linux/dvb/ |
ca.h | 67 unsigned int pid; member in struct:ca_pid
|
/bionic/tests/ |
dlext_test.cpp | 341 pid_t pid = fork(); local 342 if (pid == 0) { 356 ASSERT_NOERROR(pid); 358 ASSERT_EQ(pid, waitpid(pid, &status, 0)); 435 void getPss(pid_t pid, size_t* pss_out) { 440 ASSERT_EQ(0, pm_process_create(kernel, pid, &process)); 508 // save the child's pid and the parent_done_pipe
|
time_test.cpp | 183 int pid = fork(); local 184 ASSERT_NE(-1, pid) << strerror(errno); 186 if (pid == 0) { 194 ASSERT_EQ(pid, waitpid(pid, &status, 0)); 528 // We can't use -1 for invalid pid here, because clock_getcpuclockid() can't detect it.
|
unistd_test.cpp | 235 int pid = fork(); local 236 ASSERT_NE(-1, pid) << strerror(errno); 238 if (pid == 0) { 243 ASSERT_EQ(pid, waitpid(pid, &status, 0));
|
/cts/tests/tests/security/src/android/security/cts/ |
ClonedSecureRandomTest.java | 91 * SecureRandom. It then attempts to make the PID number wrap around so it 92 * sees a new process with the same PID twice. The test completes when it 93 * sees two newly started processes with the same PID and compares their 122 * around to the first PID. 129 int pid; local 147 pid = mSecureRandomService.getRandomBytesAndPid(output); 174 myPid == pid); 177 if (previousPid == pid) { 188 previousPid = pid; 191 previousPid = pid; [all...] |
/development/ndk/platforms/android-21/include/linux/ |
agpgart.h | 75 __kernel_pid_t pid; member in struct:_agp_region
|
auto_fs4.h | 76 __u32 pid; member in struct:autofs_v5_packet
|
dlm_device.h | 59 __u32 pid; member in struct:dlm_purge_params
|
fanotify.h | 72 __s32 pid; member in struct:fanotify_event_metadata
|
/development/ndk/platforms/android-21/include/linux/dvb/ |
ca.h | 67 unsigned int pid; member in struct:ca_pid
|