Home
last modified time | relevance | path

Searched refs:process_info (Results 1 – 25 of 63) sorted by relevance

123

/external/chromium_org/base/win/
Dscoped_process_information_unittest.cc22 void MockCreateProcess(base::win::ScopedProcessInformation* process_info) { in MockCreateProcess() argument
28 process_info->Set(process_information); in MockCreateProcess()
59 base::win::ScopedProcessInformation process_info; in TEST_F() local
60 ASSERT_FALSE(process_info.IsValid()); in TEST_F()
64 base::win::ScopedProcessInformation process_info; in TEST_F() local
65 MockCreateProcess(&process_info); in TEST_F()
67 EXPECT_TRUE(process_info.IsValid()); in TEST_F()
68 EXPECT_EQ(kProcessId, process_info.process_id()); in TEST_F()
69 EXPECT_EQ(kThreadId, process_info.thread_id()); in TEST_F()
70 EXPECT_EQ(kProcessHandle, process_info.process_handle()); in TEST_F()
[all …]
Dscoped_process_information.cc40 const PROCESS_INFORMATION& process_info) : process_id_(0), thread_id_(0) { in ScopedProcessInformation() argument
41 Set(process_info); in ScopedProcessInformation()
60 void ScopedProcessInformation::Set(const PROCESS_INFORMATION& process_info) { in Set() argument
64 process_handle_.Set(process_info.hProcess); in Set()
65 thread_handle_.Set(process_info.hThread); in Set()
66 process_id_ = process_info.dwProcessId; in Set()
67 thread_id_ = process_info.dwThreadId; in Set()
Dscoped_process_information.h22 explicit ScopedProcessInformation(const PROCESS_INFORMATION& process_info);
32 void Set(const PROCESS_INFORMATION& process_info);
/external/lldb/source/Host/freebsd/
DHost.cpp187 ProcessInstanceInfo &process_info) in GetFreeBSDProcessArgs() argument
189 if (process_info.ProcessIDIsValid()) { in GetFreeBSDProcessArgs()
190 int mib[4] = { CTL_KERN, KERN_PROC, KERN_PROC_ARGS, (int)process_info.GetProcessID() }; in GetFreeBSDProcessArgs()
203 process_info.GetExecutableFile().SetFile(cstr, false); in GetFreeBSDProcessArgs()
206 NameMatches (process_info.GetExecutableFile().GetFilename().GetCString(), in GetFreeBSDProcessArgs()
211 Args &proc_args = process_info.GetArguments(); in GetFreeBSDProcessArgs()
236 GetFreeBSDProcessCPUType (ProcessInstanceInfo &process_info) in GetFreeBSDProcessCPUType() argument
238 if (process_info.ProcessIDIsValid()) { in GetFreeBSDProcessCPUType()
239 process_info.GetArchitecture() = Host::GetArchitecture (Host::eSystemDefaultArchitecture); in GetFreeBSDProcessCPUType()
242 process_info.GetArchitecture().Clear(); in GetFreeBSDProcessCPUType()
[all …]
/external/lldb/source/Host/linux/
DHost.cpp52 static bool GetProcessAndStatInfo (lldb::pid_t pid, ProcessInstanceInfo &process_info, ProcessStatI…
158 GetLinuxProcessUserAndGroup (lldb::pid_t pid, ProcessInstanceInfo &process_info, lldb::pid_t &trace… in GetLinuxProcessUserAndGroup() argument
198 process_info.SetUserID (rUid); in GetLinuxProcessUserAndGroup()
199 process_info.SetEffectiveUserID (eUid); in GetLinuxProcessUserAndGroup()
200 process_info.SetGroupID (rGid); in GetLinuxProcessUserAndGroup()
201 process_info.SetEffectiveGroupID (eGid); in GetLinuxProcessUserAndGroup()
270 ProcessInstanceInfo process_info; in FindProcesses() local
272 if (!GetProcessAndStatInfo (pid, process_info, stat_info, tracerpid)) in FindProcesses()
284 if (!all_users && (our_uid != 0) && (process_info.GetUserID() != our_uid)) in FindProcesses()
287 if (match_info.Matches (process_info)) in FindProcesses()
[all …]
/external/chromium_org/sandbox/linux/services/
Dscoped_process.cc65 siginfo_t process_info; in ~ScopedProcess() local
68 waitid(P_PID, child_process_id_, &process_info, WEXITED))); in ~ScopedProcess()
81 siginfo_t process_info; in WaitForExit() local
84 waitid(P_PID, child_process_id_, &process_info, WEXITED | WNOWAIT)); in WaitForExit()
87 if (process_info.si_code == CLD_EXITED) { in WaitForExit()
89 } else if (process_info.si_code == CLD_KILLED || in WaitForExit()
90 process_info.si_code == CLD_DUMPED) { in WaitForExit()
94 << process_info.si_code; in WaitForExit()
96 return process_info.si_status; in WaitForExit()
Dyama_unittests.cc49 siginfo_t process_info; in CanPtrace() local
50 int wait_ret = HANDLE_EINTR(waitid(P_PID, pid, &process_info, WSTOPPED)); in CanPtrace()
/external/chromium_org/sandbox/win/src/
Dtarget_process.cc148 base::win::ScopedProcessInformation process_info(temp_process_info); in Create() local
155 if (!::AssignProcessToJobObject(job_, process_info.process_handle())) { in Create()
157 ::TerminateProcess(process_info.process_handle(), 0); in Create()
166 HANDLE temp_thread = process_info.thread_handle(); in Create()
171 ::TerminateProcess(process_info.process_handle(), 0); in Create()
179 if (!::GetThreadContext(process_info.thread_handle(), &context)) { in Create()
181 ::TerminateProcess(process_info.process_handle(), 0); in Create()
195 if (!target_info->DuplicateFrom(process_info)) { in Create()
197 ::TerminateProcess(process_info.process_handle(), 0); in Create()
202 sandbox_process_info_.Set(process_info.Take()); in Create()
[all …]
Drestricted_token_utils.cc208 base::win::ScopedProcessInformation process_info(temp_process_info); in StartRestrictedProcessInJob() local
213 HANDLE temp_thread = process_info.thread_handle(); in StartRestrictedProcessInJob()
215 ::TerminateProcess(process_info.process_handle(), in StartRestrictedProcessInJob()
221 err_code = job.AssignProcessToJob(process_info.process_handle()); in StartRestrictedProcessInJob()
223 ::TerminateProcess(process_info.process_handle(), in StartRestrictedProcessInJob()
229 ::ResumeThread(process_info.thread_handle()); in StartRestrictedProcessInJob()
DWow64.cc165 base::win::ScopedProcessInformation process_info(temp_process_info); in RunWowHelper() local
167 DWORD reason = ::WaitForSingleObject(process_info.process_handle(), INFINITE); in RunWowHelper()
171 ::GetExitCodeProcess(process_info.process_handle(), &code) ? true : false; in RunWowHelper()
/external/chromium_org/chrome/browser/
Dmemory_details_mac.cc142 ProcessInfoSnapshot process_info; in CollectProcessData() local
143 process_info.Sample(all_pids); in CollectProcessData()
160 if (process_info.GetProcInfo(info.pid, &proc_info)) { in CollectProcessData()
179 process_info.GetCommittedKBytesOfPID(info.pid, &info.committed); in CollectProcessData()
180 process_info.GetWorkingSetKBytesOfPID(info.pid, &info.working_set); in CollectProcessData()
191 CollectProcessDataChrome(child_info, *it, process_info); in CollectProcessData()
197 CollectProcessDataChrome(child_info, *it, process_info); in CollectProcessData()
209 const ProcessInfoSnapshot& process_info) { in CollectProcessDataChrome() argument
237 process_info.GetCommittedKBytesOfPID(info.pid, &info.committed); in CollectProcessDataChrome()
238 process_info.GetWorkingSetKBytesOfPID(info.pid, &info.working_set); in CollectProcessDataChrome()
/external/chromium_org/chrome/test/base/
Dchrome_process_util_mac.cc76 MacChromeProcessInfoList process_info = GetRunningMacProcessInfo(processes); in GetMemoryValuesHack() local
77 if (process_info.empty()) in GetMemoryValuesHack()
84 MacChromeProcessInfoList::iterator it = process_info.begin(); in GetMemoryValuesHack()
85 for (; it != process_info.end(); ++it) { in GetMemoryValuesHack()
/external/chromium_org/tools/win/link_limiter/
Dlimiter.cc62 PROCESS_INFORMATION process_info; in RunExe() local
85 &process_info)) { in RunExe()
90 CloseHandle(process_info.hThread); in RunExe()
91 WaitForSingleObject(process_info.hProcess, INFINITE); in RunExe()
92 GetExitCodeProcess(process_info.hProcess, &exit_code); in RunExe()
93 CloseHandle(process_info.hProcess); in RunExe()
/external/chromium_org/tools/win/split_link/
Dsplit_link.cc111 PROCESS_INFORMATION process_info; in RunLinker() local
145 &startup_info, &process_info)) { in RunLinker()
149 CloseHandle(process_info.hThread); in RunLinker()
150 WaitForSingleObject(process_info.hProcess, INFINITE); in RunLinker()
151 GetExitCodeProcess(process_info.hProcess, &exit_code); in RunLinker()
152 CloseHandle(process_info.hProcess); in RunLinker()
/external/lldb/source/Host/macosx/
DHost.mm1069 ProcessInstanceInfo &process_info)
1071 if (process_info.ProcessIDIsValid())
1074 int name_len = ::proc_name(process_info.GetProcessID(), process_name, MAXCOMLEN * 2);
1082 process_info.GetExecutableFile().SetFile (process_name, false);
1086 process_info.GetExecutableFile().Clear();
1092 GetMacOSXProcessCPUType (ProcessInstanceInfo &process_info)
1094 if (process_info.ProcessIDIsValid())
1102 mib[mib_len] = process_info.GetProcessID();
1125 process_info.GetArchitecture ().SetArchitecture (eArchTypeMachO, cpu, sub);
1129 process_info.GetArchitecture().Clear();
[all …]
/external/chromium_org/base/process/
Dlaunch_win.cc212 base::win::ScopedProcessInformation process_info(temp_process_info); in LaunchProcess() local
216 process_info.process_handle())) { in LaunchProcess()
218 KillProcess(process_info.process_handle(), kProcessKilledExitCode, true); in LaunchProcess()
222 ResumeThread(process_info.thread_handle()); in LaunchProcess()
226 WaitForSingleObject(process_info.process_handle(), INFINITE); in LaunchProcess()
230 process_handle->Set(process_info.TakeProcessHandle()); in LaunchProcess()
/external/chromium_org/sandbox/linux/tests/
Dtest_utils.cc20 siginfo_t process_info; in CurrentProcessHasChildren() local
22 waitid(P_ALL, 0, &process_info, WEXITED | WNOHANG | WNOWAIT)); in CurrentProcessHasChildren()
/external/qemu/distrib/sdl-1.2.15/src/main/macos/
DSDL_main.c163 ProcessInfoRec process_info; in getCurrentAppName() local
168 process_info.processInfoLength = sizeof (process_info); in getCurrentAppName()
169 process_info.processName = NULL; in getCurrentAppName()
170 process_info.processAppSpec = &process_fsp; in getCurrentAppName()
172 if ( noErr != GetProcessInformation (&process, &process_info) ) in getCurrentAppName()
/external/oprofile/libpp/
Dxml_utils.cpp463 class process_info : public module_info { class
465 process_info() { nr_threads = 0; } in process_info() function in process_info
483 process_info * add_process(string const & pid, size_t lo, size_t hi);
494 growable_vector<process_info> processes;
696 process_info *
814 void process_info::build_process(string const & pid, size_t l, size_t h) in build_process()
822 void process_info::add_thread(string const & tid, size_t l, size_t h) in add_thread()
828 void process_info::add_modules(string const & module, in add_modules()
838 void process_info::summarize() in summarize()
932 void process_info::set_end(sym_iterator end) in set_end()
[all …]
/external/protobuf/src/google/protobuf/compiler/
Dsubprocess.cc116 PROCESS_INFORMATION process_info; in Start() local
127 &process_info)) { in Start()
128 child_handle_ = process_info.hProcess; in Start()
129 CloseHandleOrDie(process_info.hThread); in Start()
/external/chromium_org/third_party/protobuf/src/google/protobuf/compiler/
Dsubprocess.cc119 PROCESS_INFORMATION process_info; in Start() local
130 &process_info)) { in Start()
131 child_handle_ = process_info.hProcess; in Start()
132 CloseHandleOrDie(process_info.hThread); in Start()
/external/lldb/source/Plugins/Process/gdb-remote/
DGDBRemoteCommunicationClient.cpp1720 …::DecodeProcessInfoResponse (StringExtractorGDBRemote &response, ProcessInstanceInfo &process_info) in DecodeProcessInfoResponse() argument
1732process_info.SetProcessID (Args::StringToUInt32 (value.c_str(), LLDB_INVALID_PROCESS_ID, 0)); in DecodeProcessInfoResponse()
1736process_info.SetParentProcessID (Args::StringToUInt32 (value.c_str(), LLDB_INVALID_PROCESS_ID, 0)); in DecodeProcessInfoResponse()
1740 process_info.SetUserID (Args::StringToUInt32 (value.c_str(), UINT32_MAX, 0)); in DecodeProcessInfoResponse()
1744process_info.SetEffectiveUserID (Args::StringToUInt32 (value.c_str(), UINT32_MAX, 0)); in DecodeProcessInfoResponse()
1748 process_info.SetGroupID (Args::StringToUInt32 (value.c_str(), UINT32_MAX, 0)); in DecodeProcessInfoResponse()
1752process_info.SetEffectiveGroupID (Args::StringToUInt32 (value.c_str(), UINT32_MAX, 0)); in DecodeProcessInfoResponse()
1760 process_info.GetArchitecture ().SetTriple (value.c_str()); in DecodeProcessInfoResponse()
1770 process_info.GetExecutableFile().SetFile (value.c_str(), false); in DecodeProcessInfoResponse()
1774 if (process_info.GetProcessID() != LLDB_INVALID_PROCESS_ID) in DecodeProcessInfoResponse()
[all …]
/external/chromium_org/remoting/host/win/
Dlaunch_process_with_token.cc516 base::win::ScopedProcessInformation process_info(temp_process_info); in LaunchProcessWithToken() local
518 CHECK(process_info.IsValid()); in LaunchProcessWithToken()
519 process_out->Set(process_info.TakeProcessHandle()); in LaunchProcessWithToken()
520 thread_out->Set(process_info.TakeThreadHandle()); in LaunchProcessWithToken()
/external/chromium_org/chrome/browser/ui/webui/memory_internals/
Dmemory_internals_proxy.cc232 base::ListValue* process_info = new base::ListValue(); in OnProcessAvailable() local
234 information_->Set("processes", process_info); in OnProcessAvailable()
242 process_info->Append(process); in OnProcessAvailable()
259 ConvertTabsInformation(web_contents, process_info); in OnProcessAvailable()
/external/lldb/source/Plugins/Platform/Linux/
DPlatformLinux.cpp320 PlatformLinux::GetProcessInfo (lldb::pid_t pid, ProcessInstanceInfo &process_info) in GetProcessInfo() argument
325 success = Platform::GetProcessInfo (pid, process_info); in GetProcessInfo()
330 success = m_remote_platform_sp->GetProcessInfo (pid, process_info); in GetProcessInfo()

123