Searched defs:pid (Results 151 - 175 of 517) sorted by relevance

1234567891011>>

/external/valgrind/main/none/tests/
H A Dfdleak_cmsg.c149 int pid, status; local
153 pid = getpid();
154 sprintf(filea, "/tmp/data1.%d", pid);
155 sprintf(fileb, "/tmp/data2.%d", pid);
156 sprintf(sock, "/tmp/sock.%d", pid);
158 if ((pid = fork()) == 0) {
/external/blktrace/btt/
H A Dproc.c30 __u32 pid; member in union:pn_info::__anon396
65 struct p_info * __find_process_pid(__u32 pid) argument
72 if (pid < this->u.pid)
74 else if (pid > this->u.pid)
103 static void insert_pid(struct p_info *that, __u32 pid) argument
113 if (pid < this->u.pid)
115 else if (pid > thi
168 find_process(__u32 pid, char *name) argument
207 process_alloc(__u32 pid, char *name) argument
[all...]
/external/chromium_org/base/debug/
H A Dprofiler.cc33 std::string pid = StringPrintf("%d", GetCurrentProcId()); local
35 ReplaceSubstringsAfterOffset(&full_name, 0, "{pid}", pid);
/external/chromium_org/base/
H A Dlinux_util.cc132 pid_t FindThreadIDWithSyscall(pid_t pid, const std::string& expected_data, argument
135 snprintf(buf, sizeof(buf), "/proc/%d/task", pid);
161 snprintf(buf, sizeof(buf), "/proc/%d/task/%d/syscall", pid, current_tid);
/external/chromium_org/base/posix/
H A Dunix_domain_socket_linux.cc91 base::ProcessId* pid) {
92 return UnixDomainSocket::RecvMsgWithFlags(fd, buf, length, 0, fds, pid);
120 base::ProcessId pid = -1; local
136 DCHECK(pid == -1);
137 pid = reinterpret_cast<struct ucred*>(CMSG_DATA(cmsg))->pid;
155 // |pid| will legitimately be -1 if we read EOF, so only DCHECK if we
160 DCHECK_GE(pid, 0);
162 *out_pid = pid;
87 RecvMsgWithPid(int fd, void* buf, size_t length, ScopedVector<base::ScopedFD>* fds, base::ProcessId* pid) argument
/external/chromium_org/base/process/
H A Dinternal_linux.cc28 base::FilePath GetProcPidDir(pid_t pid) { argument
29 return base::FilePath(kProcDir).Append(IntToString(pid));
43 pid_t pid;
45 if (!StringToInt(pid_string, &pid)) {
49 return pid;
64 bool ReadProcStats(pid_t pid, std::string* buffer) { argument
65 FilePath stat_file = internal::GetProcPidDir(pid).Append(kStatFile);
77 // pid (process name) data1 data2 .... dataN
136 int64 ReadProcStatsAndGetFieldAsInt64(pid_t pid, ProcStatsFields field_num) { argument
138 if (!ReadProcStats(pid,
146 ReadProcStatsAndGetFieldAsSizeT(pid_t pid, ProcStatsFields field_num) argument
[all...]
H A Dprocess_iterator.h35 ProcessId pid() const { return th32ProcessID; } function in struct:base::ProcessEntry
64 ProcessId pid() const { return pid_; }
H A Dprocess_linux.cc94 std::string pid = StringPrintf("%d", process_); local
98 return base::WriteFile(file, pid.c_str(), pid.size()) > 0;
H A Dprocess_metrics_openbsd.cc91 static int GetProcessCPU(pid_t pid) { argument
94 int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, pid,
/external/chromium_org/chrome/browser/extensions/api/terminal/
H A Dterminal_private_api.cc49 pid_t pid,
55 pid, output_type, output));
60 args->Append(new base::FundamentalValue(pid));
113 pid_t pid; local
116 &pid,
119 pid = -1;
124 this, pid));
129 void TerminalPrivateOpenTerminalProcessFunction::RespondOnUIThread(pid_t pid) { argument
130 SetResult(new base::FundamentalValue(pid));
141 this, params->pid, param
47 NotifyProcessOutput(Profile* profile, const std::string& extension_id, pid_t pid, const std::string& output_type, const std::string& output) argument
145 SendInputOnFileThread(pid_t pid, const std::string& text) argument
177 CloseOnFileThread(pid_t pid) argument
207 OnResizeOnFileThread(pid_t pid, int width, int height) argument
[all...]
/external/chromium_org/chrome/browser/first_run/
H A Dupgrade_util_win.cc211 DWORD pid = ::GetProcessId(sei.hProcess); local
213 if (!pid)
219 ::AllowSetForegroundWindow(pid);
/external/chromium_org/chrome/browser/
H A Dmemory_details.h47 base::ProcessId pid; member in struct:ProcessMemoryInformation
96 // a difference between current memory usage |sample| of process |pid| and
100 // If no memory usage of |pid| has not been recorded so far or 30 minutes
103 bool UpdateSample(base::ProcessId pid, int sample, int* diff);
195 // process with PID |pid|. The collected data is added to the state of the
199 base::ProcessId pid,
H A Dmemory_details_mac.cc112 pids_by_browser[index].push_back(entry->pid());
113 all_pids.push_back(entry->pid());
136 helper_pids.push_back(entry->pid());
137 all_pids.push_back(entry->pid());
151 info.pid = *it;
160 if (process_info.GetProcInfo(info.pid, &proc_info)) {
179 process_info.GetCommittedKBytesOfPID(info.pid, &info.committed);
180 process_info.GetWorkingSetKBytesOfPID(info.pid, &info.working_set);
208 base::ProcessId pid,
211 info.pid
206 CollectProcessDataChrome( const std::vector<ProcessMemoryInformation>& child_info, base::ProcessId pid, const ProcessInfoSnapshot& process_info) argument
[all...]
H A Dprocess_info_snapshot_mac.cc30 static bool GetKInfoForProcessID(pid_t pid, kinfo_proc* kinfo) { argument
31 int mib[] = {CTL_KERN, KERN_PROC, KERN_PROC_PID, pid};
47 pid_t pid,
65 int mib[] = {CTL_KERN, KERN_PROCARGS, pid};
137 command_line.AppendArg("pid=,rss=,vsz=");
157 // "-o pid=,rss=,vsz=".
160 pid_t pid; local
161 in >> pid; local
165 ProcessInfoSnapshot::ProcInfoEntry proc_info = proc_info_entries[pid];
166 proc_info.pid
46 GetExecutableNameForProcessID( pid_t pid, std::string* executable_name) argument
229 pid_t pid; local
230 in >> pid; local
351 GetProcInfo(int pid, ProcInfoEntry* proc_info) const argument
361 GetCommittedKBytesOfPID( int pid, base::CommittedKBytes* usage) const argument
385 GetWorkingSetKBytesOfPID( int pid, base::WorkingSetKBytes* ws_usage) const argument
[all...]
/external/chromium_org/chrome/browser/task_manager/
H A Dbrowser_process_resource_provider.cc35 int pid = base::GetCurrentProcId(); local
36 bool success = base::OpenPrivilegedProcessHandle(pid, &process_);
/external/chromium_org/chrome/browser/ui/webui/signin/
H A Dinline_login_ui_browsertest.cc44 ContentInfo(int pid, content::StoragePartition* storage_partition) { argument
45 this->pid = pid;
49 int pid; member in struct:__anon5570::ContentInfo
138 ASSERT_EQ(info1.pid, info2.pid);
139 ASSERT_NE(info1.pid, info3.pid);
/external/chromium_org/chrome/test/chromedriver/chrome/
H A Dchrome_desktop_impl.cc36 pid_t pid = HANDLE_EINTR(waitpid(process_id, NULL, WNOHANG)); local
37 if (pid == process_id)
39 if (pid == -1) {
42 // the same pid, causing the process state to get cleaned up.
H A Ddevice_manager.cc128 int pid; local
131 &pid);
138 device_socket = base::StringPrintf("webview_devtools_remote_%d", pid);
/external/chromium_org/chromeos/process_proxy/
H A Dprocess_proxy_registry.cc69 pid_t* pid,
83 if (!proxy->Open(command, pid))
91 base::Unretained(this), *pid))) {
97 DCHECK(proxy_map_.find(*pid) == proxy_map_.end());
100 // created because we don't know |pid| then.
101 ProcessProxyInfo& info = proxy_map_[*pid];
104 info.process_id = *pid;
109 bool ProcessProxyRegistry::SendInput(pid_t pid, const std::string& data) { argument
112 std::map<pid_t, ProcessProxyInfo>::iterator it = proxy_map_.find(pid);
118 bool ProcessProxyRegistry::CloseProcess(pid_t pid) { argument
67 OpenProcess( const std::string& command, pid_t* pid, const ProcessOutputCallbackWithPid& callback) argument
131 OnTerminalResize(pid_t pid, int width, int height) argument
141 OnProcessOutput(pid_t pid, ProcessOutputType type, const std::string& data) argument
[all...]
/external/chromium_org/components/nacl/broker/
H A Dnacl_broker_listener.cc25 void SendReply(IPC::Channel* channel, int32 pid, bool result) { argument
26 channel->Send(new NaClProcessMsg_DebugExceptionHandlerLaunched(pid, result));
127 int32 pid, base::ProcessHandle process_handle,
132 base::Bind(SendReply, channel_.get(), pid));
126 OnLaunchDebugExceptionHandler( int32 pid, base::ProcessHandle process_handle, const std::string& startup_info) argument
/external/chromium_org/content/browser/media/
H A Dwebrtc_internals_unittest.cc76 int pid,
84 VerifyInt(dict, "pid", pid);
119 VerifyInt(dict, "pid", 1);
141 VerifyInt(dict, "pid", 1);
164 VerifyInt(dict, "pid", 1);
184 const int pid = 2; local
188 rid, pid, kUrl, true, true, audio_constraint, video_constraint);
192 observer->value(), rid, pid, kUrl, audio_constraint, video_constraint);
199 const int pid local
74 VerifyGetUserMediaData(base::Value* actual_data, int rid, int pid, const std::string& origin, const std::string& audio, const std::string& video) argument
218 const int rid = 0, pid = 1, lid = 2; local
261 const int rid = 0, pid = 1, lid = 2; local
[all...]
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/
H A DChildProcessConnection.java34 * @param pid the pid of the child process
36 void onConnected(int pid); argument
62 * @return the connection pid, or 0 if not yet connected
/external/chromium_org/ipc/
H A Dipc_message.cc25 int32 pid = trace_log ? trace_log->process_id() : 0; local
31 return ((pid << 14) | (count & 0x3fff)) << 8;
/external/chromium_org/sandbox/linux/seccomp-bpf-helpers/
H A Dbaseline_policy_unittest.cc42 // |pid| is the return value of a fork()-like call. This
45 void HandlePostForkReturn(pid_t pid) { argument
47 if (pid > 0) {
49 PCHECK(pid == HANDLE_EINTR(waitpid(pid, &status, 0)));
52 } else if (pid == 0) {
59 pid_t pid = fork(); local
60 HandlePostForkReturn(pid);
107 pid_t pid = fork(); local
109 HandlePostForkReturn(pid);
121 pid_t pid = ForkX86Glibc(); local
136 pid_t pid = ForkARMGlibc(); local
153 pid_t pid = syscall(__NR_clone, CLONE_THREAD | SIGCHLD); local
[all...]
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/
H A Ddriver_unittest.py141 def pid(self): member in class:DriverTest.test_check_for_driver_crash.FakeServerProcess
153 def assert_crash(driver, error_line, crashed, name, pid, unresponsive=False, leaked=False):
156 self.assertEqual(driver._crashed_pid, pid)
183 assert_crash(driver, '#CRASHED - WebProcess (pid 8675)\n', True, 'WebProcess', 8675)
190 assert_crash(driver, '#PROCESS UNRESPONSIVE - WebProcess (pid 8675)\n', True, 'WebProcess', 8675, True)
197 assert_crash(driver, '#CRASHED - renderer (pid 8675)\n', True, 'renderer', 8675)
204 assert_crash(driver, '#LEAK - renderer pid 8675 ({"numberOfLiveDocuments":[2,3]})\n', False, None, None, False, True)

Completed in 7958 milliseconds

1234567891011>>