/system/core/logcat/tests/ |
logcat_test.cpp | 238 pid_t pid = getpid(); local 258 || (p != pid)) { 357 pid_t pid = getpid(); local 359 v += pid & 0xFFFF; 390 || (p != pid)) { 426 pid_t pid = getpid(); local 428 v += pid & 0xFFFF; 459 || (p != pid)) { 595 pid_t pid = getpid(); local 597 v += pid & 0xFFFF [all...] |
/system/core/logd/ |
LogKlog.cpp | 428 // Parse pid, tid and uid (not possible) 429 const pid_t pid = 0; local 588 rc = logbuf->log(LOG_ID_KERNEL, now, uid, pid, tid, newstr,
|
LogStatistics.h | 161 uid_t pidToUid(pid_t pid); 165 const pid_t pid; member in struct:PidEntry 171 pid(p), 173 name(android::pidToName(pid)) { } 176 pid(e->getPid()), 181 pid(c.pid), 186 const pid_t&getKey() const { return pid; } 302 // pid to uid list 338 char *pidToName(pid_t pid); [all...] |
/system/core/toolbox/ |
ps.c | 42 static void print_exe_abi(int pid); 44 static int ps_line(int pid, int tid, char *namefilter) 60 sprintf(statline, "/proc/%d", pid); 64 sprintf(statline, "/proc/%d/task/%d/stat", pid, tid); 66 snprintf(macline, sizeof(macline), "/proc/%d/task/%d/attr/current", pid, tid); 68 sprintf(statline, "/proc/%d/stat", pid); 69 sprintf(cmdline, "/proc/%d/cmdline", pid); 70 snprintf(macline, sizeof(macline), "/proc/%d/attr/current", pid); 90 nexttok(&ptr); // skip pid 146 ppid = pid; 316 int pid = atoi(de->d_name); local [all...] |
/system/extras/ksmutils/ |
ksminfo.c | 43 pid_t pid; member in struct:vaddr 61 static int getprocname(pid_t pid, char *buf, int len); 132 fprintf(stderr, "Error allocating pid memory\n"); 138 fprintf(stderr, "Invalid PID\n"); 206 pid_t pid; local 211 pid = pm_process_pid(maps[0]->proc); 213 error = snprintf(filename, MAX_FILENAME, "/proc/%d/mem", pid); 297 cur_page->vaddr[cur_page->vaddr_len - 1].pid == pid && 318 cur_page->vaddr[cur_page->vaddr_len].pid = pid [all...] |
/system/extras/latencytop/ |
latencytop.c | 45 static struct latency_entry *read_process_stats(struct latency_entry *list, int erase, int pid); 46 static struct latency_entry *read_thread_stats(struct latency_entry *list, int erase, int pid, int tid, int fatal); 72 int pid, tid; local 78 pid = tid = 0; 106 pid = atoi(argv[++i]); 122 if (tid && !pid) { 146 if (pid) { 148 e = read_thread_stats(e, erase, pid, tid, 1); 150 e = read_process_stats(e, erase, pid); 158 if (pid) { [all...] |
/system/extras/perfprofd/quipper/ |
perf_parser.cc | 34 // Kernel MMAP entry pid appears as -1 141 // Pid 0 is called the swapper process. Even though perf does not record a 142 // COMM event for pid 0, we act like we did receive a COMM event for it. Perf 192 << " -> " << event.fork.pid << ":" << event.fork.tid; 202 VLOG(1) << "COMM: " << event.comm.pid << ":" << event.comm.tid << ": " 207 pidtid_to_comm_map_[std::make_pair(event.comm.pid, event.comm.tid)] = 257 PidTid pidtid = std::make_pair(sample_info.pid, sample_info.tid); 267 sample_info.pid, 275 sample_info.pid, 283 !MapBranchStack(sample_info.pid, 561 const uint32_t pid = event.pid; local [all...] |
/system/extras/procrank/ |
procrank.c | 30 pid_t pid; member in struct:proc_info 36 static int getprocname(pid_t pid, char *buf, int len); 192 procs[i]->pid = pids[i]; 240 printf("%5s ", "PID"); 260 if (getprocname(procs[i]->pid, cmdline, (int)sizeof(cmdline)) < 0) { 273 printf("%5d ", procs[i]->pid); 357 * Get the process name for a given PID. Inserts the process name into buffer 370 static int getprocname(pid_t pid, char *buf, int len) { 380 if (asprintf(&filename, "/proc/%d/cmdline", pid) < 0) {
|
/system/extras/showmap/ |
showmap.c | 163 static mapinfo *load_maps(int pid, int sort_by_address, int coalesce_by_name) 172 snprintf(fn, sizeof(fn), "/proc/%d/smaps", pid); 175 fprintf(stderr, "cannot open /proc/%d/smaps: %s\n", pid, strerror(errno)); 204 fprintf(stderr, "could not read /proc/%d/smaps\n", pid); 244 static int show_map(int pid) 257 milist = load_maps(pid, addresses, !verbose && !addresses); 322 int pid; local 345 pid = strtol(arg, &argend, 10); 348 if (show_map(pid)) { 359 "showmap [-t] [-v] [-c] <pid>\n [all...] |
/system/extras/simpleperf/ |
environment.cpp | 246 static bool StringToPid(const std::string& s, pid_t* pid) { 248 *pid = static_cast<pid_t>(strtol(s.c_str(), &endptr, 10)); 276 static bool GetThreadComm(pid_t pid, std::vector<ThreadComm>* thread_comms) { 277 std::string task_dirname = android::base::StringPrintf("/proc/%d/task", pid); 295 thread.is_process = (tid == pid); 306 pid_t pid; local 307 if (!StringToPid(name, &pid)) { 310 if (!GetThreadComm(pid, thread_comms)) { 317 bool GetThreadMmapsInProcess(pid_t pid, std::vector<ThreadMmap>* thread_mmaps) { 318 std::string map_file = android::base::StringPrintf("/proc/%d/maps", pid); [all...] |
record.h | 44 uint32_t pid, tid; member in struct:PerfSampleTidType 122 uint32_t pid, tid; member in struct:MmapRecord::MmapRecordDataType 141 uint32_t pid, tid; member in struct:CommRecord::CommRecordDataType 157 uint32_t pid, ppid; member in struct:ExitRecord::ExitRecordDataType 188 uint32_t pid; member in struct:BuildIdRecord 204 MmapRecord CreateMmapRecord(const perf_event_attr& attr, bool in_kernel, uint32_t pid, uint32_t tid, 207 CommRecord CreateCommRecord(const perf_event_attr& attr, uint32_t pid, uint32_t tid, 209 BuildIdRecord CreateBuildIdRecord(bool in_kernel, pid_t pid, const BuildId& build_id,
|
record_file.cpp | 157 uint32_t pid = r.tid_data.pid; local 172 if (pid == m_record.data.pid && ip >= m_record.data.addr &&
|
/system/extras/tests/sdcard/ |
sdcard_perf_test.cpp | 148 // Print command line, pid, kernel version, OOM adj and scheduler. 158 printf("# Pid: %d\n", getpid()); 308 pid_t *pid = (pid_t*)chunk; local 340 if (testCase->pid() != *pid) 342 fprintf(stderr, "Wrong pid found @ read block %x != %x\n", testCase->pid(), *pid); 359 *((pid_t *)chunk) = testCase->pid(); // write our pid at the beginning of each chun [all...] |
sysutil.cpp | 367 pid_t pid = wait(&status); local 368 if (-1 == pid) 376 fprintf(stderr, "Child pid %d did not exit cleanly %s\n", 377 pid, reasonChildExited(status)); 445 pid_t pid = getpid(); local 446 char *start = reinterpret_cast<char *>(&pid); 447 size_t size = sizeof(pid); 530 pid_t pid; local 531 char *end = reinterpret_cast<char *>(&pid); 535 size = sizeof(pid); [all...] |
/system/netd/server/ |
TetherController.cpp | 133 pid_t pid; local 145 if ((pid = fork()) < 0) { 152 if (!pid) { 172 args[6] = (char *)"--pid-file"; 191 mDaemonPid = pid;
|
/system/vold/ |
CommandListener.cpp | 316 int pid = Process::getPid(de->d_name); local 318 if (pid < 0) { 323 Process::getProcessName(pid, processName, sizeof(processName)); 325 if (Process::checkFileDescriptorSymLinks(pid, argv[2]) || 326 Process::checkFileMaps(pid, argv[2]) || 327 Process::checkSymLink(pid, argv[2], "cwd") || 328 Process::checkSymLink(pid, argv[2], "root") || 329 Process::checkSymLink(pid, argv[2], "exe")) { 332 snprintf(msg, sizeof(msg), "%d %s", pid, processName);
|
/art/test/004-ThreadStress/src/ |
Main.java | 75 private final static int pid; field in class:Main.SigQuit 98 pid = pidTemp; 106 kill.invoke(null, pid, sigquit);
|
/bionic/libc/kernel/uapi/asm-generic/ |
fcntl.h | 149 __kernel_pid_t pid; member in struct:f_owner_ex
|
/bionic/libc/kernel/uapi/linux/ |
capability.h | 34 int pid; member in struct:__user_cap_header_struct
|
/bionic/libc/kernel/uapi/linux/dvb/ |
dmx.h | 80 __u16 pid; member in struct:dmx_sct_filter_params 92 __u16 pid; member in struct:dmx_pes_filter_params
|
/bionic/libc/kernel/uapi/rdma/ |
rdma_netlink.h | 69 __s32 pid; member in struct:rdma_cm_id_stats
|
/build/ |
envsetup.sh | 865 # <pid> <procname> 874 echo "usage: qpid [[--exact] <process name|pid>" 888 function pid() function 899 local PID=`adb shell ps \ 903 echo "$PID" 905 echo "usage: pid [--exact] <process name>" 941 # $1 = PID of process (e.g., $(pid mediaserver)) 948 local PID=$1; 949 if [ -z "$PID" ]; the [all...] |
/development/ndk/platforms/android-21/include/asm-generic/ |
fcntl.h | 145 __kernel_pid_t pid; member in struct:f_owner_ex
|
/development/ndk/platforms/android-21/include/linux/ |
capability.h | 34 int pid; member in struct:__user_cap_header_struct
|
/development/ndk/platforms/android-21/include/linux/dvb/ |
dmx.h | 86 __u16 pid; member in struct:dmx_sct_filter_params 100 __u16 pid; member in struct:dmx_pes_filter_params
|