/system/extras/iotop/ |
H A D | taskstats.h | 34 pid_t pid() const { return pid_; } function in class:TaskStatistics 46 void set_pid(pid_t pid) { pid_ = pid; } argument
|
/system/core/debuggerd/ |
H A D | debuggerd.cpp | 71 pid_t pid, tid; member in struct:debugger_request_t 88 request.pid, request.tid); 100 ALOGI("debuggerd resuming process %d", request.pid); 150 snprintf(buf, len, "pid=%d uid=%d gid=%d", req->pid, req->uid, req->gid); 186 static bool pid_contains_tid(pid_t pid, pid_t tid) { argument 188 if (snprintf(task_path, PATH_MAX, "/proc/%d/task/%d", pid, tid) >= PATH_MAX) { 189 ALOGE("debuggerd: task path overflow (pid = %d, tid = %d)\n", pid, tid); 214 ALOGE("timed out reading tid (from pid 302 activity_manager_write(int pid, int signal, int amfd, const std::string& amfd_data) argument 424 ptrace_attach_thread(pid_t pid, pid_t tid) argument 441 ptrace_siblings(pid_t pid, pid_t main_tid, std::set<pid_t>& tids) argument 609 pid_t pid; local [all...] |
H A D | tombstone.cpp | 201 static void dump_thread_info(log_t* log, pid_t pid, pid_t tid) { argument 228 snprintf(path, sizeof(path), "/proc/%d/cmdline", pid); 234 _LOG(log, logtype::HEADER, "pid: %d, tid: %d, name: %s >>> %s <<<\n", pid, tid, 448 static void dump_thread(log_t* log, pid_t pid, pid_t tid, BacktraceMap* map, int signal, argument 454 dump_thread_info(log, pid, tid); 460 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(pid, tid, map)); 468 ALOGE("Unwind failed: pid = %d, tid = %d", pid, tid); 482 // that don't match the specified pid, an 487 dump_log_file( log_t* log, pid_t pid, const char* filename, unsigned int tail) argument 602 dump_logs(log_t* log, pid_t pid, unsigned int tail) argument 608 dump_crash(log_t* log, BacktraceMap* map, pid_t pid, pid_t tid, const std::set<pid_t>& siblings, int signal, int si_code, uintptr_t abort_msg_address) argument 688 engrave_tombstone(int tombstone_fd, BacktraceMap* map, pid_t pid, pid_t tid, const std::set<pid_t>& siblings, int signal, int original_si_code, uintptr_t abort_msg_address, std::string* amfd_data) argument [all...] |
/system/core/adb/ |
H A D | jdwp_service.cpp | 45 | hello I'm in process <pid> | 58 equivalent to "adb forward tcp:<hostport> jdwp:<pid>" 60 "jdwp:<pid>" is a new forward destination format used to target 116 ** for each JDWP process, we record its pid and its connected socket 129 int pid; member in struct:JdwpProcess 153 if (proc->pid < 0) 156 len = snprintf(p, end-p, "%d\n", proc->pid); 198 proc->pid = -1; 227 proc->pid = -1; 262 if (proc->pid < 401 create_jdwp_connection_fd(int pid) argument [all...] |
/system/core/libbacktrace/ |
H A D | ThreadEntry.cpp | 33 ThreadEntry::ThreadEntry(pid_t pid, pid_t tid) argument 34 : pid_(pid), tid_(tid), ref_count_(1), mutex_(PTHREAD_MUTEX_INITIALIZER), 49 ThreadEntry* ThreadEntry::Get(pid_t pid, pid_t tid, bool create) { argument 53 if (entry->Match(pid, tid)) { 61 entry = new ThreadEntry(pid, tid);
|
H A D | UnwindPtrace.h | 34 UnwindPtrace(pid_t pid, pid_t tid, BacktraceMap* map);
|
/system/core/logd/ |
H A D | LogAudit.cpp | 117 pid_t pid = getpid(); local 144 static const char pid_str[] = " pid="; 148 pid = 0; 150 pid = (pid * 10) + (*cp - '0'); 153 tid = pid; 155 uid = logbuf->pidToUid(pid); 177 rc = logbuf->log(LOG_ID_EVENTS, now, uid, pid, tid, 195 } else if (pid == getpid()) { 196 pid [all...] |
H A D | LogStatistics.cpp | 39 char *pidToName(pid_t pid) { argument 41 if (pid == 0) { // special case from auditd/klogd for kernel 45 snprintf(buffer, sizeof(buffer), "/proc/%u/cmdline", pid); 182 // report uid -> pid(s) -> pidToName if unique 335 pid_t pid = getPid(); local 336 std::string name = android::base::StringPrintf("%5u/%u", pid, uid); 436 std::string LogStatistics::format(uid_t uid, pid_t pid, argument 510 output += uidTable[id].format(*this, uid, pid, name, id); 514 name = ((uid == AID_ROOT) && !pid) 517 output += pidTable.format(*this, uid, pid, nam 549 pidToUid(pid_t pid) argument 568 pidToUid(pid_t pid) argument [all...] |
H A D | FlushCommand.h | 42 pid_t pid = 0,
|
/system/update_engine/common/ |
H A D | subprocess.cc | 187 pid_t pid = record->proc.pid(); local 188 CHECK(process_reaper_.WatchForChild(FROM_HERE, pid, base::Bind( 207 subprocess_records_[pid].reset(record.release()); 208 return pid; 211 void Subprocess::KillExec(pid_t pid) { argument 212 auto pid_record = subprocess_records_.find(pid); 216 if (kill(pid, SIGTERM) != 0) { 217 PLOG(WARNING) << "Error sending SIGTERM to " << pid; 219 // Release the pid no 224 GetPipeFd(pid_t pid, int fd) const argument [all...] |
/system/core/include/log/ |
H A D | logger.h | 33 int32_t pid; /* generating process's pid */ member in struct:logger_entry 48 int32_t pid; /* generating process's pid */ member in struct:logger_entry_v2 59 int32_t pid; /* generating process's pid */ member in struct:logger_entry_v3 70 int32_t pid; /* generating process's pid */ member in struct:logger_entry_v4 185 pid_t pid); 188 pid_t pid); [all...] |
/system/core/libmemtrack/ |
H A D | 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) argument 135 p->pid = pid; 137 memtrack_proc_get_type(&p->types[i], pid, i); 83 memtrack_proc_get_type(struct memtrack_proc_type *t, pid_t pid, enum memtrack_type type) argument
|
/system/extras/perfprofd/quipper/kernel-headers/tools/perf/util/ |
H A D | event.h | 25 u32 pid, tid; member in struct:mmap_event 35 u32 pid, tid; member in struct:mmap2_event 50 u32 pid, tid; member in struct:comm_event 56 u32 pid, ppid; member in struct:fork_event 70 u32 pid, tid; member in struct:read_event 116 u32 pid, tid; member in struct:perf_sample 141 pid_t pid; member in struct:build_id_event
|
/system/extras/perfprofd/quipper/ |
H A D | perf_parser.cc | 34 // Kernel MMAP entry pid appears as -1 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, 301 const uint32_t pid, 300 MapCallchain(const uint64_t ip, const uint32_t pid, const uint64_t original_event_addr, struct ip_callchain* callchain, ParsedEvent* parsed_event) argument 345 MapBranchStack(const uint32_t pid, struct branch_stack* branch_stack, ParsedEvent* parsed_event) argument 405 MapIPAndPidAndGetNameAndOffset( uint64_t ip, uint32_t pid, uint64_t* new_ip, ParsedEvent::DSOAndOffset* dso_and_offset) argument 459 MapMmapEvent(uint64_t id, uint32_t pid, uint64_t* p_start, uint64_t* p_len, uint64_t* p_pgoff) argument 529 GetOrCreateProcessMapper( uint32_t pid, uint32_t *ppid) argument 561 const uint32_t pid = event.pid; local [all...] |
H A D | perf_parser.h | 160 // Defines a type for a pid:tid pair. 176 event->pid, 182 uint32_t pid, 199 // Maps pid/tid to commands. 213 const uint32_t pid, 220 bool MapBranchStack(const uint32_t pid, 230 uint32_t pid, 234 // Create a process mapper for a process. Optionally pass in a parent pid 238 std::pair<AddressMapper*, bool> GetOrCreateProcessMapper(uint32_t pid,
|
/system/core/crash_reporter/ |
H A D | user_collector.cc | 178 void UserCollector::EnqueueCollectionErrorLog(pid_t pid, argument 189 std::string dump_basename = FormatDumpBasename(exec, time(nullptr), pid); 214 bool UserCollector::CopyOffProcFiles(pid_t pid, argument 232 FilePath process_path = GetProcessPath(pid); 304 bool UserCollector::GetCreatedCrashDirectory(pid_t pid, uid_t supplied_ruid, argument 307 FilePath process_path = GetProcessPath(pid); 324 LOG(INFO) << "State of crashed process [" << pid << "]: " << process_state; 335 << " for crashed process [" << pid local 402 pid_t pid, 410 CopyOffProcFiles(pid, container_di 401 ConvertCoreToMinidump( pid_t pid, const FilePath &container_dir, const FilePath &core_path, const FilePath &minidump_path) argument 482 ConvertAndEnqueueCrash( pid_t pid, const std::string &exec, uid_t supplied_ruid, bool *out_of_capacity) argument 557 ParseCrashAttributes(const std::string &crash_attributes, pid_t *pid, int *signal, uid_t *uid, gid_t *gid, std::string *kernel_supplied_name) argument 600 pid_t pid = 0; local [all...] |
H A D | user_collector.h | 130 void EnqueueCollectionErrorLog(pid_t pid, ErrorType error_type, 133 bool CopyOffProcFiles(pid_t pid, const base::FilePath &container_dir); 138 // takes place, some proc files like /proc/<pid>/maps may contain nothing 149 // Determines the crash directory for given pid based on pid's owner, 153 bool GetCreatedCrashDirectory(pid_t pid, uid_t supplied_ruid, 161 ErrorType ConvertCoreToMinidump(pid_t pid, 165 ErrorType ConvertAndEnqueueCrash(pid_t pid, const std::string &exec_name, 168 pid_t *pid, int *signal, uid_t *uid, gid_t *gid,
|
/system/core/toolbox/ |
H A D | top.c | 56 pid_t pid; member in struct:proc_info 98 static void read_policy(int pid, struct proc_info *proc); 103 static struct proc_info *find_old_proc(pid_t pid, pid_t tid); 231 pid_t pid, tid; local 252 pid = atoi(pid_dir->d_name); 259 proc->pid = proc->tid = pid; 261 sprintf(filename, "/proc/%d/stat", pid); 264 sprintf(filename, "/proc/%d/cmdline", pid); 267 sprintf(filename, "/proc/%d/status", pid); 401 read_policy(int pid, struct proc_info *proc) argument 506 find_old_proc(pid_t pid, pid_t tid) argument [all...] |
/system/extras/simpleperf/ |
H A D | environment.cpp | 277 static std::vector<pid_t> GetThreadsInProcess(pid_t pid) { argument 279 std::string task_dirname = android::base::StringPrintf("/proc/%d/task", pid); 292 static bool GetThreadComm(pid_t pid, std::vector<ThreadComm>* thread_comms) { argument 293 std::vector<pid_t> tids = GetThreadsInProcess(pid); 295 std::string status_file = android::base::StringPrintf("/proc/%d/task/%d/status", pid, tid); 302 CHECK_EQ(pid, tgid); 305 thread.pid = pid; 317 int pid; local 318 if (!android::base::ParseInt(name.c_str(), &pid, 328 GetThreadMmapsInProcess(pid_t pid, std::vector<ThreadMmap>* thread_mmaps) argument 374 int pid; local [all...] |
/system/core/include/memtrack/ |
H A D | memtrack.h | 67 * Fill a process memory stats handle with data about the given pid. Can be 76 int memtrack_proc_get(struct memtrack_proc *p, pid_t pid); 83 * accounted for by reading /proc/pid/smaps and memory that has not been 94 * buffers, but has not already been accounted for by reading /proc/pid/smaps.
|
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/ |
H A D | perf.h | 155 void test_attr__open(struct perf_event_attr *attr, pid_t pid, int cpu, 160 pid_t pid, int cpu, int group_fd, 165 fd = syscall(__NR_perf_event_open, attr, pid, cpu, 169 test_attr__open(attr, pid, cpu, fd, group_fd, flags); 159 sys_perf_event_open(struct perf_event_attr *attr, pid_t pid, int cpu, int group_fd, unsigned long flags) argument
|
/system/netd/server/ |
H A D | PppController.cpp | 54 pid_t pid; local 74 if ((pid = fork()) < 0) { 79 if (!pid) { 105 mPid = pid;
|
/system/connectivity/shill/dbus/ |
H A D | chromeos_dhcpcd_listener.h | 65 uint32_t pid, 69 uint32_t pid,
|
/system/connectivity/shill/ |
H A D | process_manager_unittest.cc | 58 void AddWatchedProcess(pid_t pid, const Callback<void(int)>& callback) { argument 59 process_manager_->watched_processes_.emplace(pid, callback); 62 void AddTerminateProcess(pid_t pid, argument 65 pid, std::move(timeout_handler)); 80 void OnProcessExited(pid_t pid, int exit_status) { argument 83 process_manager_->OnProcessExited(pid, info); 86 void OnTerminationTimeout(pid_t pid, bool kill_signal) { argument 87 process_manager_->ProcessTerminationTimeoutHandler(pid, kill_signal);
|
/system/core/libmemunreachable/ |
H A D | ProcessMappings.cpp | 30 bool ProcessMappings(pid_t pid, allocator::vector<Mapping>& mappings) { argument 32 snprintf(map_buffer, sizeof(map_buffer), "/proc/%d/maps", pid);
|