/system/netd/server/ |
H A D | SoftapController.cpp | 60 pid_t pid = 1; local 71 if ((pid = fork()) < 0) { 76 if (!pid) { 86 mPid = pid;
|
/system/extras/librank/ |
H A D | librank.c | 32 pid_t pid; member in struct:process_info 51 static int getprocname(pid_t pid, char *buf, size_t len); 159 struct process_info *get_process(pid_t pid) { argument 168 process->pid = pid; 169 getprocname(pid, process->cmdline, sizeof(process->cmdline)); 345 fprintf(stderr, "Error listing maps for process %d.\n", proc->pid); 367 pm_map_name(maps[j]), proc->pid); 416 pi->pid); 446 static int getprocname(pid_t pid, cha argument [all...] |
/system/connectivity/shill/test-scripts/ |
H A D | veth | 26 pid_file="/tmp/dnsmasq.${iface}.pid" 33 dnsmasq --pid-file="$pid_file" \ 43 pid_file="/tmp/dnsmasq.${iface}.pid"
|
/system/core/include/binderwrapper/ |
H A D | stub_binder_wrapper.h | 81 void set_calling_pid(pid_t pid) { calling_pid_ = pid; } argument
|
/system/core/logd/ |
H A D | LogCommand.cpp | 60 bool clientHasLogCredentials(uid_t uid, gid_t gid, pid_t pid) { argument 71 snprintf(filename, sizeof(filename), "/proc/%u/status", pid); 79 // Reading /proc/<pid>/status is rife with race conditions. All of /proc
|
H A D | LogReader.cpp | 102 pid_t pid = 0; local 103 static const char _pid[] = " pid="; 106 pid = atol(cp + sizeof(_pid) - 1); 132 LogFindStart(unsigned logMask, pid_t pid, log_time &start, uint64_t &sequence, bool isMonotonic) : argument 133 mPid(pid), 166 } logFindStart(logMask, pid, start, sequence, 182 FlushCommand command(*this, nonBlock, tail, logMask, pid, sequence, timeout);
|
H A D | libaudit.c | 165 int audit_setup(int fd, uint32_t pid) argument 175 * socket with the pid field of the status struct set to our current pid, 178 status.pid = pid; 182 /* Let the kernel know this pid will be registering for audit events */ 185 SLOGE("Could net set pid for audit events, error: %s", strerror(-rc)); 254 SLOGE("Invalid netlink pid received, expected 0 got: %d", nladdr.nl_pid);
|
/system/update_engine/common/ |
H A D | subprocess.h | 79 void KillExec(pid_t pid); 81 // Return the parent end of the pipe mapped onto |fd| in the child |pid|. This 82 // file descriptor is available until the callback for the child |pid| 86 int GetPipeFd(pid_t pid, int fd) const;
|
/system/connectivity/shill/ |
H A D | external_task_unittest.cc | 83 void FakeUpRunningProcess(unsigned int tag, int pid); 85 void ExpectStop(unsigned int tag, int pid) { argument 86 EXPECT_CALL(process_manager_, StopProcess(pid)); 105 MOCK_METHOD2(TaskDiedCallback, void(pid_t pid, int exit_status)); 140 void ExternalTaskTest::FakeUpRunningProcess(unsigned int tag, int pid) { argument 141 external_task_->pid_ = pid;
|
/system/core/crash_reporter/ |
H A D | user_collector_test.cc | 95 pid_t pid; local 101 &pid, &signal, &uid, &gid, &exec_name)); 102 EXPECT_EQ(123456, pid); 108 &pid, &signal, &uid, &gid, &exec_name)); 109 EXPECT_EQ(4321, pid); 116 &pid, &signal, &uid, &gid, &exec_name)); 119 &pid, &signal, &uid, &gid, &exec_name)); 123 &pid, &signal, &uid, &gid, &exec_name)); 126 &pid, &signal, &uid, &gid, &exec_name)); 129 &pid, [all...] |
H A D | crash_collector.h | 107 pid_t pid); 115 base::FilePath GetProcessPath(pid_t pid); 118 bool GetExecutableBaseNameFromPid(pid_t pid,
|
/system/core/liblog/tests/ |
H A D | liblog_test.cpp | 130 pid_t pid = getpid(); local 133 LOG_ID_EVENTS, ANDROID_LOG_RDONLY | ANDROID_LOG_NONBLOCK, 1000, pid))); 153 ASSERT_EQ(log_msg.entry.pid, pid); 188 pid_t pid = getpid(); local 191 LOG_ID_EVENTS, ANDROID_LOG_RDONLY | ANDROID_LOG_NONBLOCK, 1000, pid))); 207 ASSERT_EQ(log_msg.entry.pid, pid); 249 pid_t pid = getpid(); local 252 LOG_ID_EVENTS, ANDROID_LOG_RDONLY | ANDROID_LOG_NONBLOCK, 1000, pid))); 425 pid_t pid = getpid(); local 510 pid_t pid = getpid(); local 544 pid_t pid = getpid(); local 694 pid_t pid = getpid(); local 913 pid_t pid = getpid(); local 975 pid_t pid = getpid(); local 1029 pid_t pid = getpid(); local 1527 pid_t pid = getpid(); local 1608 pid_t pid = getpid(); local 1695 pid_t pid = getpid(); local 1738 pid_t pid = getpid(); local 1818 pid_t pid = getpid(); local 1875 pid_t pid = getpid(); local 2326 pid_t pid = getpid(); local [all...] |
/system/extras/simpleperf/ |
H A D | record.cpp | 129 PrintIndented(indent, "sample_id: pid %u, tid %u\n", tid_data.pid, tid_data.tid); 214 PrintIndented(indent, "pid %u, tid %u, addr 0x%" PRIx64 ", len 0x%" PRIx64 "\n", data.pid, 246 PrintIndented(indent, "pid %u, tid %u, addr 0x%" PRIx64 ", len 0x%" PRIx64 "\n", data.pid, 278 PrintIndented(indent, "pid %u, tid %u, comm %s\n", data.pid, data.tid, comm.c_str()); 300 PrintIndented(indent, "pid %u, ppid %u, tid %u, ptid %u\n", data.pid, dat 631 CreateMmapRecord(const perf_event_attr& attr, bool in_kernel, uint32_t pid, uint32_t tid, uint64_t addr, uint64_t len, uint64_t pgoff, const std::string& filename) argument 649 CreateCommRecord(const perf_event_attr& attr, uint32_t pid, uint32_t tid, const std::string& comm) argument 663 CreateForkRecord(const perf_event_attr& attr, uint32_t pid, uint32_t tid, uint32_t ppid, uint32_t ptid) argument 678 CreateBuildIdRecord(bool in_kernel, pid_t pid, const BuildId& build_id, const std::string& filename) argument [all...] |
H A D | cpu_hotplug_test.cpp | 151 pid_t pid = fork(); local 152 CHECK(pid != -1); 153 if (pid == 0) { 169 pid_t ret = waitpid(pid, &exit_state, WNOHANG); 170 if (ret == pid) {
|
H A D | sample_tree.h | 93 SampleEntry* AddSample(int pid, int tid, uint64_t ip, uint64_t time, uint64_t period, 95 void AddBranchSample(int pid, int tid, uint64_t from_ip, uint64_t to_ip, uint64_t branch_flags, 97 SampleEntry* AddCallChainSample(int pid, int tid, uint64_t ip, uint64_t time, uint64_t period,
|
/system/extras/memtrack/ |
H A D | memtrack.cpp | 127 bool ProcessInfo::getInformation(int pid, char *pid_str, size_t pid_str_len) { argument 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/tests/sdcard/ |
H A D | sdcard_perf_test.cpp | 148 // Print command line, pid, kernel version, OOM adj and scheduler. 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 chunk 375 sprintf(filename, "%s/file-%d-%d", kTestDir, i, testCase->pid()); [all...] |
/system/connectivity/shill/dhcp/ |
H A D | dhcp_config.cc | 203 pid_t pid = process_manager_->StartProcessInMinijail( local 212 if (pid < 0) { 215 pid_ = pid; 216 LOG(INFO) << "Spawned " << kDHCPCDPath << " with pid: " << pid_; 253 SLOG(nullptr, 2) << "pid " << pid_ << " exit status " << exit_status; 255 LOG(WARNING) << "pid " << pid_ << " exit status " << exit_status; 267 int pid = pid_; local 270 provider_->UnbindPID(pid);
|
/system/core/libutils/ |
H A D | ProcessCallStack.cpp | 47 static void dumpProcessHeader(Printer& printer, pid_t pid, const char* timeStr) { argument 58 snprintf(path, sizeof(path), "/proc/%d/cmdline", pid); 70 printer.printFormatLine("----- pid %d at %s -----", pid, timeStr); 74 static void dumpProcessFooter(Printer& printer, pid_t pid) { argument 76 printer.printFormatLine("----- end %d -----", pid);
|
/system/extras/iotop/ |
H A D | taskstats.cpp | 109 LOG(WARNING) << "got taskstats for unexpected pid " << ret << 123 bool TaskstatsSocket::GetStats(int pid, int type, TaskStatistics& stats) { argument 125 taskstats_request.requested_pid = pid; 132 nla_put_u32(message.get(), type, pid); 155 bool TaskstatsSocket::GetPidStats(int pid, TaskStatistics& stats) { argument 156 return GetStats(pid, TASKSTATS_CMD_ATTR_PID, stats);
|
/system/vold/ |
H A D | CommandListener.cpp | 321 int pid = Process::getPid(de->d_name); local 323 if (pid < 0) { 328 Process::getProcessName(pid, processName, sizeof(processName)); 330 if (Process::checkFileDescriptorSymLinks(pid, argv[2]) || 331 Process::checkFileMaps(pid, argv[2]) || 332 Process::checkSymLink(pid, argv[2], "cwd") || 333 Process::checkSymLink(pid, argv[2], "root") || 334 Process::checkSymLink(pid, argv[2], "exe")) { 337 snprintf(msg, sizeof(msg), "%d %s", pid, processName); 675 pid_t pid, 673 runCommandInNamespace(const std::string& command, uid_t uid, pid_t pid, const std::string& path, int device_fd) argument 782 const pid_t pid = atoi(argv[3]); local 821 const uid_t pid = atoi(argv[3]); local [all...] |
/system/core/include/backtrace/ |
H A D | Backtrace.h | 82 // If pid < 0 or equals the current pid, then the Backtrace object 84 // If pid < 0 or equals the current pid and tid >= 0, then the Backtrace 86 // If pid >= 0 and tid < 0, then the Backtrace object corresponds to a 91 static Backtrace* Create(pid_t pid, pid_t tid, BacktraceMap* map = NULL); 98 static Backtrace* CreateOffline(pid_t pid, pid_t tid, BacktraceMap* map, 153 Backtrace(pid_t pid, pid_t tid, BacktraceMap* map);
|
/system/core/libcutils/ |
H A D | trace-dev.c | 35 * Note this message includes a tag, the pid, and the string given as the name. 199 #define WRITE_MSG(format_begin, format_end, pid, name, value) { \ 201 int len = snprintf(buf, sizeof(buf), format_begin "%s" format_end, pid, \ 209 len = snprintf(buf, sizeof(buf), format_begin "%.*s" format_end, pid, \
|
/system/extras/libpagemap/include/pagemap/ |
H A D | pagemap.h | 91 pid_t pid; member in struct:pm_process 164 #define pm_process_pid(proc) ((proc)->pid) 168 int pm_process_create(pm_kernel_t *ker, pid_t pid, pm_process_t **proc_out);
|
/system/security/keystore/ |
H A D | permissions.cpp | 61 pid_t pid; member in struct:audit_data 82 snprintf(buf, len, "pid=%d uid=%d", ad->pid, ad->uid); 123 ALOGE("SELinux: Failed to get source pid context.\n"); 127 ad.pid = spid;
|