Home
last modified time | relevance | path

Searched refs:Pid (Results 1 – 25 of 34) sorted by relevance

12

/llvm-project-15.0.7/compiler-rt/lib/gwp_asan/tests/
H A Denable_disable.cpp15 pid_t Pid = fork(); in TEST_F() local
16 EXPECT_GE(Pid, 0); in TEST_F()
17 if (Pid == 0) { in TEST_F()
24 waitpid(Pid, nullptr, 0); in TEST_F()
35 Pid = fork(); in TEST_F()
36 EXPECT_GE(Pid, 0); in TEST_F()
75 pid_t Pid = fork(); in TEST_F() local
76 EXPECT_GE(Pid, 0); in TEST_F()
77 if (Pid == 0) { in TEST_F()
83 waitpid(Pid, nullptr, 0); in TEST_F()
/llvm-project-15.0.7/compiler-rt/lib/fuzzer/
H A DFuzzerUtilDarwin.cpp100 pid_t Pid; in ExecuteCommand() local
111 ErrorCode = posix_spawn(&Pid, "/bin/sh", NULL, &SpawnAttributes, in ExecuteCommand()
115 pid_t SavedPid = Pid; in ExecuteCommand()
118 Pid = waitpid(SavedPid, &ProcessStatus, /*options=*/0); in ExecuteCommand()
119 } while (Pid == -1 && errno == EINTR); in ExecuteCommand()
120 if (Pid == -1) { in ExecuteCommand()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/PerfJITEvents/
H A DPerfJITEventListener.cpp82 sys::Process::Pid Pid; member in __anonaaa59aed0111::PerfJITEventListener
124 uint32_t Pid; member
139 uint32_t Pid; member
179 : Pid(sys::Process::getProcessId()) { in PerfJITEventListener()
193 FilenameBuf << JitPath << "/jit-" << Pid << ".dump"; in PerfJITEventListener()
220 Header.Pid = Pid; in PerfJITEventListener()
422 rec.Pid = Pid; in NotifyCode()
/llvm-project-15.0.7/llvm/unittests/Support/
H A DProgramTest.cpp226 ASSERT_NE(PI1.Pid, ProcessInfo::InvalidPid) << "Invalid process id"; in TEST_F()
236 if (WaitResult.Pid == PI1.Pid) in TEST_F()
245 ASSERT_NE(PI2.Pid, ProcessInfo::InvalidPid) << "Invalid process id"; in TEST_F()
253 if (WaitResult.Pid == PI2.Pid) in TEST_F()
304 ASSERT_EQ(PI.Pid, ProcessInfo::InvalidPid) in TEST()
419 ASSERT_NE(PI2.Pid, ProcessInfo::InvalidPid) << "Invalid process id"; in TEST_F()
428 ASSERT_EQ(WaitResult.Pid, PI2.Pid); in TEST_F()
/llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/tests/
H A Dwrappers_cpp_test.cpp172 pid_t Pid; in TEST() local
173 if ((Pid = fork()) == 0) { in TEST()
186 EXPECT_NE(-1, Pid); in TEST()
188 EXPECT_EQ(Pid, waitpid(Pid, &Status, 0)); in TEST()
H A Dwrappers_c_test.cpp397 pid_t Pid = fork(); in TEST() local
398 EXPECT_GE(Pid, 0) << strerror(errno); in TEST()
399 if (Pid == 0) { in TEST()
406 waitpid(Pid, nullptr, 0); in TEST()
417 Pid = fork(); in TEST()
418 EXPECT_GE(Pid, 0); in TEST()
460 pid_t Pid = fork(); in TEST() local
461 EXPECT_GE(Pid, 0); in TEST()
462 if (Pid == 0) { in TEST()
469 waitpid(Pid, nullptr, 0); in TEST()
/llvm-project-15.0.7/compiler-rt/test/profile/ContinuousSyncMode/
H A Dpid-substitution.c30 int Pid = atoi(PidStr); in main() local
32 if (Pid != getpid()) in main()
/llvm-project-15.0.7/llvm/lib/Support/
H A DTimeProfiler.cpp79 ProcName(ProcName), Pid(sys::Process::getProcessId()), in TimeTraceProfiler()
145 J.attribute("pid", Pid); in write()
201 J.attribute("pid", Pid); in write()
220 J.attribute("pid", Pid); in write()
254 const sys::Process::Pid Pid; member
H A DCodeGenCoverage.cpp86 std::string Pid = llvm::to_string(sys::Process::getProcessId()); in emit() local
88 std::string CoverageFilename = (CoveragePrefix + Pid).str(); in emit()
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DProcess.h45 using Pid = int32_t;
48 static Pid getProcessId();
/llvm-project-15.0.7/llvm/lib/Support/Unix/
H A DProgram.inc67 ProcessInfo::ProcessInfo() : Pid(0), ReturnCode(0) {}
268 PI.Pid = PID;
330 PI.Pid = child;
386 assert(PI.Pid && "invalid pid to wait on, process not started?");
389 pid_t ChildPid = PI.Pid;
413 WaitResult.Pid = sys::wait4(ChildPid, &status, WaitPidOptions, &Info);
414 } while (WaitUntilTerminates && WaitResult.Pid == -1 && errno == EINTR);
416 if (WaitResult.Pid != PI.Pid) {
417 if (WaitResult.Pid == 0) {
423 kill(PI.Pid, SIGKILL);
/llvm-project-15.0.7/compiler-rt/lib/xray/tests/unit/
H A Dfdr_log_writer_test.cpp50 createMetadataRecord<MetadataRecord::RecordKinds::Pid>(int32_t{1}), in TEST()
88 createMetadataRecord<MetadataRecord::RecordKinds::Pid>(int32_t{1}), in TEST()
138 createMetadataRecord<MetadataRecord::RecordKinds::Pid>(int32_t{1}), in TEST()
/llvm-project-15.0.7/llvm/tools/llvm-exegesis/lib/
H A DPerfHelper.cpp99 const pid_t Pid = 0; // measure current process/thread. in Counter() local
104 FileDescriptor = perf_event_open(&AttrCopy, Pid, Cpu, GroupFd, Flags); in Counter()
/llvm-project-15.0.7/lldb/test/Shell/Minidump/
H A Dmemory-region-from-module.yaml50 Pid: 29939
84 Pid: 29939
H A Ddisassemble-no-module.yaml44 Pid: 29939
/llvm-project-15.0.7/compiler-rt/lib/xray/
H A Dxray_fdr_log_records.h38 Pid, enumerator
/llvm-project-15.0.7/lldb/test/API/functionalities/postmortem/minidump-new/
H A Dlinux-x86_64_null_signal.yaml24 Pid: 8567
H A Dlinux-x86_64.yaml38 Pid: 29917
/llvm-project-15.0.7/lldb/test/Shell/SymbolFile/DWARF/x86/Inputs/
H A Ddebug_loc-aslr.yaml27 Pid: 29917
/llvm-project-15.0.7/llvm/lib/Support/Windows/
H A DProcess.inc46 Process::Pid Process::getProcessId() {
47 static_assert(sizeof(Pid) >= sizeof(DWORD),
48 "Process::Pid should be big enough to store DWORD");
49 return Pid(::GetCurrentProcessId());
459 DWORD Pid = GetCurrentProcessId();
460 return hash_combine(Time.dwHighDateTime, Time.dwLowDateTime, Pid);
/llvm-project-15.0.7/lldb/test/Shell/Minidump/Inputs/
H A Dlinux-x86_64.yaml26 Pid: 29917
/llvm-project-15.0.7/lldb/unittests/TestingSupport/Host/
H A DNativeProcessTestUtils.h45 const ArchSpec &Arch, lldb::pid_t Pid = 1)
46 : T(Pid, -1, Delegate), Arch(Arch) {}
/llvm-project-15.0.7/lldb/test/Shell/SymbolFile/Breakpad/Inputs/
H A Dstack-cfi-parsing.yaml33 Pid: 29917
H A Dunwind-via-stack-cfi.yaml37 Pid: 29939
/llvm-project-15.0.7/llvm/test/CodeGen/PowerPC/
H A Daix-static-init-no-unique-module-id.ll12 ; Use the Pid and timestamp to generate a unique module id when strong external

12