/system/extras/iotop/ |
H A D | tasklist.h | 27 static bool ScanPid(pid_t pid, std::vector<pid_t>&);
|
/system/extras/perfprofd/quipper/kernel-headers/tools/perf/util/ |
H A D | target.h | 23 const char * pid; member in struct:perf_target
|
/system/extras/tests/cpueater/ |
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/libmemtrack/ |
H A D | memtrack_test.c | 28 static int getprocname(pid_t pid, char *buf, int len) { argument 38 if (asprintf(&filename, "/proc/%d/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/core/libbacktrace/ |
H A D | Backtrace.cpp | 40 Backtrace::Backtrace(pid_t pid, pid_t tid, BacktraceMap* map) argument 41 : pid_(pid), tid_(tid), map_(map), map_shared_(true) { 43 map_ = BacktraceMap::Create(pid); 119 Backtrace* Backtrace::Create(pid_t pid, pid_t tid, BacktraceMap* map) { argument 120 if (pid == BACKTRACE_CURRENT_PROCESS) { 121 pid = getpid(); 126 tid = pid; 129 if (pid == getpid()) { 130 return new UnwindCurrent(pid, tid, map); 132 return new UnwindPtrace(pid, ti [all...] |
H A D | backtrace_test.cpp | 106 void WaitForStop(pid_t pid) { argument 110 while (ptrace(PTRACE_GETSIGINFO, pid, 0, &si) < 0 && (errno == EINTR || errno == ESRCH)) { 299 void VerifyProcTest(pid_t pid, pid_t tid, bool share_map, argument 304 ptrace_tid = pid; 319 map.reset(BacktraceMap::Create(pid)); 321 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(pid, tid, map.get())); 340 pid_t pid; local 341 if ((pid = fork()) == 0) { 345 VerifyProcTest(pid, BACKTRACE_CURRENT_THREAD, false, ReadyLevelBacktrace, VerifyLevelDump); 347 kill(pid, SIGKIL 349 ASSERT_EQ(waitpid(pid, &status, 0), pid); local 353 pid_t pid; local 363 ASSERT_EQ(waitpid(pid, &status, 0), pid); local 367 pid_t pid; local 376 ASSERT_EQ(waitpid(pid, &status, 0), pid); local 394 pid_t pid; local 403 ASSERT_EQ(waitpid(pid, &status, 0), pid); local 412 GetThreads(pid_t pid, std::vector<pid_t>* threads) argument 431 pid_t pid; local 469 ASSERT_EQ(waitpid(pid, &status, 0), pid); local 881 VerifyMap(pid_t pid) argument 911 pid_t pid; local 931 ASSERT_EQ(waitpid(pid, nullptr, 0), pid); local 1075 pid_t pid; local 1116 ASSERT_EQ(waitpid(pid, nullptr, 0), pid); local 1221 pid_t pid; local 1292 ASSERT_EQ(waitpid(pid, nullptr, 0), pid); local 1371 pid_t pid; local 1409 ASSERT_EQ(waitpid(pid, nullptr, 0), pid); local 1427 CheckForLeak(pid_t pid, pid_t tid) argument 1475 pid_t pid; local 1494 ASSERT_EQ(waitpid(pid, nullptr, 0), pid); local [all...] |
H A D | BacktraceMap.cpp | 28 BacktraceMap::BacktraceMap(pid_t pid) : pid_(pid) { argument 62 // Linux /proc/<pid>/maps lines: 135 BacktraceMap* BacktraceMap::Create(pid_t pid, bool /*uncached*/) { argument 136 BacktraceMap* map = new BacktraceMap(pid); 145 BacktraceMap* BacktraceMap::Create(pid_t pid, const std::vector<backtrace_map_t>& maps) { argument 146 BacktraceMap* backtrace_map = new BacktraceMap(pid);
|
H A D | BacktraceCurrent.h | 40 BacktraceCurrent(pid_t pid, pid_t tid, BacktraceMap* map) : Backtrace(pid, tid, map) {} argument
|
H A D | ThreadEntry.h | 26 static ThreadEntry* Get(pid_t pid, pid_t tid, bool create = true); 51 ThreadEntry(pid_t pid, pid_t tid);
|
H A D | UnwindCurrent.h | 36 UnwindCurrent(pid_t pid, pid_t tid, BacktraceMap* map) : BacktraceCurrent(pid, tid, map) {} argument
|
H A D | UnwindMap.h | 32 UnwindMap(pid_t pid); 42 UnwindMapRemote(pid_t pid);
|
/system/connectivity/shill/dhcp/ |
H A D | dhcp_provider.h | 93 // Returns the DHCP configuration associated with DHCP client |pid|. Return 94 // nullptr if |pid| is not bound to a configuration. 95 DHCPConfigRefPtr GetConfig(int pid); 97 // Binds a |pid| to a DHCP |config|. When a DHCP config spawns a new DHCP 98 // client, it binds itself to that client's |pid|. 99 virtual void BindPID(int pid, const DHCPConfigRefPtr& config); 101 // Unbinds a |pid|. This method is used by a DHCP config to signal the 104 virtual void UnbindPID(int pid); 109 // Returns true if |pid| was recently unbound from the provider. 110 bool IsRecentlyUnbound(int pid); [all...] |
/system/core/libprocessgroup/ |
H A D | processgroup.cpp | 95 static int convertUidPidToPath(char *path, size_t size, uid_t uid, int pid) argument 102 pid); 105 static int initCtx(uid_t uid, int pid, struct ctx *ctx) argument 109 convertUidPidToPath(path, sizeof(path), uid, pid); 174 long pid = strtol(ctx->buf_ptr, &pid_eptr, 10); local 185 return (pid_t)pid; 188 static int removeProcessGroup(uid_t uid, int pid) argument 193 convertUidPidToPath(path, sizeof(path), uid, pid); 260 pid_t pid; local 264 while ((pid 370 char pid[PROCESSGROUP_MAX_PID_LEN + 1] = {0}; local [all...] |
/system/connectivity/shill/ |
H A D | process_manager.h | 59 // if failed to start the process, otherwise, return the pid of the child 104 // Stop the given |pid|. Previously registered |exit_callback| will be 112 virtual bool StopProcess(pid_t pid); 114 // Stop the given |pid| in a synchronous manner. 115 virtual bool StopProcessAndBlock(pid_t pid); 117 // Replace the current exit callback for |pid| with |new_callback|. 119 pid_t pid, 131 // Invoked when process |pid| exited. 132 void OnProcessExited(pid_t pid, const siginfo_t& info); 134 // Invoked when process |pid| di [all...] |
H A D | dns_server_proxy.cc | 34 const char kDnsmasqPidFilePath[] = "/data/misc/shill/dnsmasq.pid"; 67 args.push_back(base::StringPrintf("--pid-file=%s", kDnsmasqPidFilePath)); 71 pid_t pid = local 80 if (pid < 0) { 84 pid_ = pid; 85 LOG(INFO) << "Spawned " << kDnsmasqPath << " with pid: " << pid_; 100 LOG(WARNING) << "pid " << pid_ << " exit status " << exit_status;
|
H A D | mock_process_manager.h | 64 MOCK_METHOD1(StopProcess, bool(pid_t pid)); 65 MOCK_METHOD1(StopProcessAndBlock, bool(pid_t pid)); 67 bool(pid_t pid, const base::Callback<void(int)>& new_callback));
|
/system/extras/latencytop/ |
H A D | 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) { 202 read_process_stats(struct latency_entry *list, int erase, int pid) argument 232 read_thread_stats(struct latency_entry *list, int erase, int pid, int tid, int fatal) argument [all...] |
/system/core/debuggerd/ |
H A D | signal_sender.cpp | 34 pid_t pid; member in struct:signal_message 101 if (syscall(SYS_tgkill, msg.pid, msg.tid, msg.signal) != 0) { 105 if (kill(msg.pid, msg.signal) != 0) { 148 bool send_signal(pid_t pid, pid_t tid, int signal) { argument 155 signal_message msg = {.pid = pid, .tid = tid, .signal = signal };
|
H A D | tombstone.h | 35 void engrave_tombstone(int tombstone_fd, BacktraceMap* map, pid_t pid, pid_t tid,
|
/system/core/logd/ |
H A D | LogBuffer.h | 93 // watermark of any worst/chatty pid of system processing 111 uid_t uid, pid_t pid, pid_t tid, 123 std::string formatStatistics(uid_t uid, pid_t pid, unsigned int logMask); 133 const char *pidToName(pid_t pid) { return stats.pidToName(pid); } argument 134 uid_t pidToUid(pid_t pid) { return stats.pidToUid(pid); } argument
|
H A D | LogWhiteBlackList.cpp | 26 Prune::Prune(uid_t uid, pid_t pid) : mUid(uid), mPid(pid) { argument 29 int Prune::cmp(uid_t uid, pid_t pid) const { 34 return pid - mPid; 165 pid_t pid = Prune::pid_all; local 169 pid = 0; 171 pid = pid * 10 + *str++ - '0'; 176 if ((uid == Prune::uid_all) && (pid == Prune::pid_all)) { 193 if ((pid [all...] |
/system/core/lmkd/ |
H A D | lmkd.c | 102 int pid; member in struct:proc 146 static struct proc *pid_lookup(int pid) { argument 149 for (procp = pidhash[pid_hashfn(pid)]; procp && procp->pid != pid; 190 int hval = pid_hashfn(procp->pid); 197 static int pid_remove(int pid) { argument 198 int hval = pid_hashfn(pid); 202 for (procp = pidhash[hval], prevp = NULL; procp && procp->pid != pid; 239 cmd_procprio(int pid, int uid, int oomadj) argument 275 cmd_procremove(int pid) argument 499 proc_get_size(int pid) argument 523 proc_get_name(int pid) argument 555 int pid = procp->pid; local [all...] |
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/ |
H A D | target.h | 8 const char *pid; member in struct:perf_target 52 return target->tid || target->pid || target->uid_str;
|
/system/extras/simpleperf/ |
H A D | thread_tree.cpp | 45 void ThreadTree::AddThread(int pid, int tid, const std::string& comm) { argument 49 pid, tid, 61 void ThreadTree::ForkThread(int pid, int tid, int ppid, int ptid) { argument 63 ThreadEntry* child = FindThreadOrNew(pid, tid); 68 ThreadEntry* ThreadTree::FindThreadOrNew(int pid, int tid) { argument 71 AddThread(pid, tid, "unknown"); 74 if (pid != it->second.get()->pid) { 76 LOG(DEBUG) << "unexpected (pid, tid) pair: expected (" << it->second.get()->pid << ", " << ti 111 AddThreadMap(int pid, int tid, uint64_t start_addr, uint64_t len, uint64_t pgoff, uint64_t time, const std::string& filename) argument [all...] |
/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) {
|