Searched refs:pid (Results 1 - 25 of 217) sorted by relevance

123456789

/system/vold/
H A DProcess.h26 static int checkSymLink(int pid, const char *path, const char *name);
27 static int checkFileMaps(int pid, const char *path);
28 static int checkFileMaps(int pid, const char *path, char *openFilename, size_t max);
29 static int checkFileDescriptorSymLinks(int pid, const char *mountPoint);
30 static int checkFileDescriptorSymLinks(int pid, const char *mountPoint, char *openFilename, size_t max);
31 static void getProcessName(int pid, char *buffer, size_t max);
H A DProcess.cpp66 void Process::getProcessName(int pid, char *buffer, size_t max) { argument
68 snprintf(buffer, max, "/proc/%d/cmdline", pid);
79 int Process::checkFileDescriptorSymLinks(int pid, const char *mountPoint) { argument
80 return checkFileDescriptorSymLinks(pid, mountPoint, NULL, 0);
83 int Process::checkFileDescriptorSymLinks(int pid, const char *mountPoint, char *openFilename, size_t max) { argument
88 sprintf(path, "/proc/%d/fd", pid);
124 int Process::checkFileMaps(int pid, const char *mountPoint) { argument
125 return checkFileMaps(pid, mountPoint, NULL, 0);
128 int Process::checkFileMaps(int pid, const char *mountPoint, char *openFilename, size_t max) { argument
132 sprintf(buffer, "/proc/%d/maps", pid);
154 checkSymLink(int pid, const char *mountPoint, const char *name) argument
191 int pid = getPid(de->d_name); local
[all...]
/system/core/include/cutils/
H A Diosched_policy.h31 extern int android_set_ioprio(int pid, IoSchedClass clazz, int ioprio);
32 extern int android_get_ioprio(int pid, IoSchedClass *clazz, int *ioprio);
/system/connectivity/shill/
H A Dprocess_manager.cc113 pid_t pid = process->pid(); local
116 pid,
119 pid)));
125 watched_processes_.emplace(pid, exit_callback);
126 return pid;
162 pid_t pid; local
164 jail, args, &pid, stdin_fd, stdout_fd, stderr_fd)) {
171 pid,
174 pid)));
180 StopProcess(pid_t pid) argument
181 SLOG(this, 2) << __func__ << "(" << pid << ")"; local
201 StopProcessAndBlock(pid_t pid) argument
202 SLOG(this, 2) << __func__ << "(" << pid << ")"; local
238 KillProcessWithTimeout(pid_t pid, bool kill_signal) argument
239 SLOG(this, 2) << __func__ << "(pid: " << pid << ")"; local
259 KillProcess(pid_t pid, int signal, bool* killed) argument
260 SLOG(this, 2) << __func__ << "(pid: " << pid << ")"; local
268 PLOG(ERROR) << "Failed to send " << signal <<"signal to process " << pid; local
274 WaitpidWithTimeout(pid_t pid, unsigned int sleep_ms, unsigned int upper_bound_ms, int tries) argument
278 SLOG(this, 2) << __func__ << "(pid: " << pid << ")"; local
292 UpdateExitCallback( pid_t pid, const base::Callback<void(int)>& new_callback) argument
295 SLOG(this, 2) << __func__ << "(pid: " << pid << ")"; local
307 OnProcessExited(pid_t pid, const siginfo_t& info) argument
308 SLOG(this, 2) << __func__ << "(pid: " << pid << ")"; local
330 ProcessTerminationTimeoutHandler(pid_t pid, bool kill_signal) argument
332 SLOG(this, 2) << __func__ << "(pid: " << pid << ")"; local
347 TerminateProcess(pid_t pid, bool kill_signal) argument
[all...]
/system/netd/server/
H A DClatdController.cpp52 pid_t pid = getClatdPid(interface); local
54 if (pid != 0) {
55 ALOGE("clatd pid=%d already started on %s", pid, interface);
85 if ((pid = fork()) < 0) {
90 if (!pid) {
109 mClatdPids[interface] = pid;
117 pid_t pid = getClatdPid(interface); local
119 if (pid == 0) {
124 ALOGD("Stopping clatd pid
137 pid_t pid = getClatdPid(interface); local
[all...]
/system/core/debuggerd/
H A Dsignal_sender.h26 // If tid is greater than zero, this performs tgkill(pid, tid, signal).
27 // Otherwise, it performs kill(pid, signal).
28 bool send_signal(pid_t pid, pid_t tid, int signal);
H A Dbacktrace.cpp42 static void dump_process_header(log_t* log, pid_t pid) { argument
48 snprintf(path, sizeof(path), "/proc/%d/cmdline", pid);
59 _LOG(log, logtype::BACKTRACE, "\n\n----- pid %d at %s -----\n", pid, timestr);
67 static void dump_process_footer(log_t* log, pid_t pid) { argument
68 _LOG(log, logtype::BACKTRACE, "\n----- end %d -----\n", pid);
71 static void dump_thread(log_t* log, BacktraceMap* map, pid_t pid, pid_t tid) { argument
91 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(pid, tid, map));
100 void dump_backtrace(int fd, BacktraceMap* map, pid_t pid, pid_t tid, argument
106 dump_process_header(&log, pid);
[all...]
H A Dbacktrace.h32 void dump_backtrace(int fd, BacktraceMap* map, pid_t pid, pid_t tid,
/system/extras/simpleperf/runtest/
H A Dfunction_fork.cpp16 pid_t pid = fork(); local
17 if (pid == 0) {
/system/extras/tests/kernel.config/
H A Dsysvipc_test.cpp33 pid_t pid = getpid(); local
34 int ret = kcmp(pid, pid, KCMP_SYSVSEM, 0, 0);
36 EXPECT_EQ(-1, kcmp(pid, pid, KCMP_SYSVSEM, 0, 0));
/system/extras/tests/cpueater/
H A Dcpueater.c30 pid_t pid; local
45 switch(pid = fork()) {
69 printf("%d\n", pid);
/system/connectivity/shill/dbus/
H A Dchromeos_dhcpcd_listener.cc117 uint32_t pid; local
123 &pid,
129 sender, pid, reason, configurations));
132 uint32_t pid; local
137 &pid,
142 sender, pid, status));
153 uint32_t pid,
156 DHCPConfigRefPtr config = provider_->GetConfig(pid);
158 if (provider_->IsRecentlyUnbound(pid)) {
160 << __func__ << ": ignoring message from recently unbound PID " << pid; local
151 EventSignal( const string& sender, uint32_t pid, const string& reason, const brillo::VariantDictionary& configuration) argument
173 StatusChangedSignal(const string& sender, uint32_t pid, const string& status) argument
180 << __func__ << ": ignoring message from recently unbound PID " << pid; local
[all...]
/system/connectivity/shill/dhcp/
H A Ddhcp_provider.cc93 base::Process process = base::Process::Open(entry->pid());
130 DHCPConfigRefPtr DHCPProvider::GetConfig(int pid) { argument
131 SLOG(this, 2) << __func__ << " pid: " << pid; local
132 PIDConfigMap::const_iterator it = configs_.find(pid);
139 void DHCPProvider::BindPID(int pid, const DHCPConfigRefPtr& config) { argument
140 SLOG(this, 2) << __func__ << " pid: " << pid; local
141 configs_[pid] = config;
144 void DHCPProvider::UnbindPID(int pid) { argument
145 SLOG(this, 2) << __func__ << " pid: " << pid; local
153 RetireUnboundPID(int pid) argument
157 IsRecentlyUnbound(int pid) argument
[all...]
H A Dmock_dhcp_provider.h47 MOCK_METHOD2(BindPID, void(int pid, const DHCPConfigRefPtr& config));
48 MOCK_METHOD1(UnbindPID, void(int pid));
/system/core/libcutils/
H A Diosched_policy.c34 int android_set_ioprio(int pid __android_unused, IoSchedClass clazz __android_unused, int ioprio __android_unused) {
36 if (syscall(SYS_ioprio_set, IOPRIO_WHO_PROCESS, pid, ioprio | (clazz << IOPRIO_CLASS_SHIFT))) {
43 int android_get_ioprio(int pid __android_unused, IoSchedClass *clazz, int *ioprio) {
47 if ((rc = syscall(SYS_ioprio_get, IOPRIO_WHO_PROCESS, pid)) < 0) {
/system/core/libmemunreachable/
H A DProcessMappings.h34 bool ProcessMappings(pid_t pid, allocator::vector<Mapping>& mappings);
/system/core/toolbox/
H A Dprlimit.c41 fprintf(stderr, "usage: %s pid resource cur max\n", s);
47 pid_t pid; local
55 if (sscanf(argv[1], "%d", &pid) != 1)
67 printf("setting resource %d of pid %d to [%llu,%llu]\n", resource, pid,
69 rc = prlimit64(pid, resource, &rl, NULL);
H A Dps.c42 static void print_exe_abi(int pid);
44 static int ps_line(int pid, int tid) argument
60 sprintf(statline, "/proc/%d", tid ? tid : 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;
206 print_exe_abi(int pid) argument
240 ps_threads(int pid) argument
324 int pid = atoi(de->d_name); local
[all...]
/system/core/fs_mgr/
H A Dfs_mgr_format.c67 int pid; local
74 pid = fork();
75 if (pid < 0) {
76 return pid;
78 if (!pid) {
84 pid_t p = waitpid(pid, &rc, 0);
85 if (p != pid) {
/system/core/libbacktrace/
H A DBacktracePtrace.h29 BacktracePtrace(pid_t pid, pid_t tid, BacktraceMap* map) : Backtrace(pid, tid, map) {} argument
H A DUnwindMap.cpp32 // aka local. If multiple maps are created for the current pid, then
36 UnwindMap::UnwindMap(pid_t pid) : BacktraceMap(pid) { argument
40 UnwindMapRemote::UnwindMapRemote(pid_t pid) : UnwindMap(pid) { argument
153 BacktraceMap* BacktraceMap::Create(pid_t pid, bool uncached) { argument
158 map = new BacktraceMap(pid);
159 } else if (pid == getpid()) {
162 map = new UnwindMapRemote(pid);
/system/core/liblog/tests/
H A Dlibc_test.cpp37 pid_t pid = getpid(); local
40 LOG_ID_EVENTS, ANDROID_LOG_RDONLY | ANDROID_LOG_NONBLOCK, 1000, pid)));
57 ASSERT_EQ(log_msg.entry.pid, pid);
97 pid_t pid = getpid(); local
100 (log_id_t)LOG_ID_CRASH, ANDROID_LOG_RDONLY | ANDROID_LOG_NONBLOCK, 1000, pid)));
118 ASSERT_EQ(log_msg.entry.pid, pid);
/system/core/logd/
H A Dlibaudit.h43 pid_t pid; member in struct:audit_sig_info
85 * Sets a pid to recieve audit netlink events from the kernel
88 * @param pid
89 * The pid whom to set as the reciever of audit messages
93 extern int audit_setup(int fd, uint32_t pid);
H A DLogStatistics.h50 std::unique_ptr<const TEntry *[]> sort(uid_t uid, pid_t pid, argument
66 if (pid && entry.getPid() && (pid != entry.getPid())) {
130 pid_t pid,
135 std::unique_ptr<const TEntry *[]> sorted = sort(uid, pid,
227 pid_t pid; member in struct:UidEntry
232 pid(element->getPid()) {
237 inline const pid_t&getPid() const { return pid; }
240 if (pid != element->getPid()) {
241 pid
127 format( const LogStatistics &stat, uid_t uid, pid_t pid, const std::string &name = std::string(�), log_id_t id = LOG_ID_MAX) const argument
255 const pid_t pid; member in struct:PidEntry
259 PidEntry(pid_t pid) argument
312 pid_t pid; member in struct:TidEntry
316 TidEntry(pid_t tid, pid_t pid) argument
375 pid_t pid; member in struct:TagEntry
454 sort(uid_t uid, pid_t pid, size_t len, log_id id) argument
458 sort(uid_t uid, pid_t pid, size_t len, log_id id, uid_t) argument
[all...]
/system/extras/iotop/
H A Dtasklist.cpp40 pid_t pid = atoi(entry->d_name); local
41 f(pid);
62 return ScanPidsInDir(filename, [&pid_list](pid_t pid) {
63 pid_list.push_back(pid);

Completed in 556 milliseconds

123456789