Home
last modified time | relevance | path

Searched refs:pid (Results 1 – 25 of 385) sorted by relevance

12345678910>>...16

/llvm-project/bolt/test/runtime/
H A Dinstrumentation-indirect-2.c9 __attribute__((noinline)) void funcA(int pid) { printf("funcA %d\n", pid); } in funcA() argument
10 __attribute__((noinline)) void funcB(int pid) { printf("funcB %d\n", pid); } in funcB() argument
11 __attribute__((noinline)) void funcC(int pid) { printf("funcC %d\n", pid); } in funcC() argument
12 __attribute__((noinline)) void funcD(int pid) { printf("funcD %d\n", pid); } in funcD() argument
13 __attribute__((noinline)) void funcE(int pid) { printf("funcE %d\n", pid); } in funcE() argument
14 __attribute__((noinline)) void funcF(int pid) { printf("funcF %d\n", pid); } in funcF() argument
15 __attribute__((noinline)) void funcG(int pid) { printf("funcG %d\n", pid); } in funcG() argument
16 __attribute__((noinline)) void funcH(int pid) { printf("funcH %d\n", pid); } in funcH() argument
17 __attribute__((noinline)) void funcI(int pid) { printf("funcI %d\n", pid); } in funcI() argument
18 __attribute__((noinline)) void funcJ(int pid) { printf("funcJ %d\n", pid); } in funcJ() argument
[all …]
/llvm-project/lldb/tools/debugserver/source/
H A DDNB.h54 nub_process_t DNBProcessAttach(nub_process_t pid, struct timespec *timeout,
79 nub_bool_t DNBProcessResume(nub_process_t pid,
82 nub_bool_t DNBProcessHalt(nub_process_t pid) DNB_EXPORT;
83 nub_bool_t DNBProcessDetach(nub_process_t pid) DNB_EXPORT;
84 nub_bool_t DNBProcessSignal(nub_process_t pid, int signal) DNB_EXPORT;
85 nub_bool_t DNBProcessInterrupt(nub_process_t pid) DNB_EXPORT;
86 nub_bool_t DNBProcessKill(nub_process_t pid) DNB_EXPORT;
87 nub_bool_t DNBProcessSendEvent(nub_process_t pid, const char *event) DNB_EXPORT;
88 nub_size_t DNBProcessMemoryRead(nub_process_t pid, nub_addr_t addr,
90 uint64_t DNBProcessMemoryReadInteger(nub_process_t pid, nub_addr_t addr,
[all …]
H A DDNB.cpp85 static nub_bool_t AddProcessToMap(nub_process_t pid, MachProcessSP &procSP) { in AddProcessToMap() argument
88 process_map->insert(std::make_pair(pid, procSP)); in AddProcessToMap()
98 // RemoveProcessFromMap (nub_process_t pid)
103 // return process_map->erase(pid);
112 static nub_bool_t GetProcessSP(nub_process_t pid, MachProcessSP &procSP) { in GetProcessSP() argument
115 ProcessMapIter pos = process_map->find(pid); in GetProcessSP()
163 const pid_t pid = (pid_t)death_event.ident; in kqueue_thread() local
164 const pid_t child_pid = waitpid(pid, &status, 0); in kqueue_thread()
180 if (child_pid == abs(pid)) { in kqueue_thread()
208 "waitpid_process_thread (): setting exit status for pid in kqueue_thread()
217 spawn_kqueue_thread(pid_t pid) spawn_kqueue_thread() argument
253 const pid_t pid = (pid_t)(intptr_t)arg; waitpid_thread() local
303 spawn_waitpid_thread(pid_t pid) spawn_waitpid_thread() argument
353 pid_t pid = processSP->LaunchForDebug( DNBProcessLaunch() local
499 pid_t pid = INVALID_NUB_PROCESS; DNBProcessAttach() local
616 DNBGetDyldProcessState(nub_process_t pid) DNBGetDyldProcessState() argument
742 nub_process_t pid; DNBProcessAttachWait() local
855 DNBProcessDetach(nub_process_t pid) DNBProcessDetach() argument
868 DNBProcessKill(nub_process_t pid) DNBProcessKill() argument
876 DNBProcessSignal(nub_process_t pid,int signal) DNBProcessSignal() argument
884 DNBProcessInterrupt(nub_process_t pid) DNBProcessInterrupt() argument
891 DNBProcessSendEvent(nub_process_t pid,const char * event) DNBProcessSendEvent() argument
901 DNBProcessIsAlive(nub_process_t pid) DNBProcessIsAlive() argument
910 DNBProcessGetState(nub_process_t pid) DNBProcessGetState() argument
919 DNBProcessGetExitStatus(nub_process_t pid,int * status) DNBProcessGetExitStatus() argument
927 DNBProcessSetExitStatus(nub_process_t pid,int status) DNBProcessSetExitStatus() argument
936 DNBProcessGetExitInfo(nub_process_t pid) DNBProcessGetExitInfo() argument
944 DNBProcessSetExitInfo(nub_process_t pid,const char * info) DNBProcessSetExitInfo() argument
953 DNBThreadGetName(nub_process_t pid,nub_thread_t tid) DNBThreadGetName() argument
961 DNBThreadGetIdentifierInfo(nub_process_t pid,nub_thread_t tid,thread_identifier_info_data_t * ident_info) DNBThreadGetIdentifierInfo() argument
969 DNBThreadGetState(nub_process_t pid,nub_thread_t tid) DNBThreadGetState() argument
1005 DNBGetGenealogyInfoForThread(nub_process_t pid,nub_thread_t tid,bool & timed_out) DNBGetGenealogyInfoForThread() argument
1015 DNBGetGenealogyImageInfo(nub_process_t pid,size_t idx) DNBGetGenealogyImageInfo() argument
1025 DNBGetRequestedQoSForThread(nub_process_t pid,nub_thread_t tid,nub_addr_t tsd,uint64_t dti_qos_class_index) DNBGetRequestedQoSForThread() argument
1035 DNBGetPThreadT(nub_process_t pid,nub_thread_t tid) DNBGetPThreadT() argument
1043 DNBGetDispatchQueueT(nub_process_t pid,nub_thread_t tid) DNBGetDispatchQueueT() argument
1052 DNBGetTSDAddressForThread(nub_process_t pid,nub_thread_t tid,uint64_t plo_pthread_tsd_base_address_offset,uint64_t plo_pthread_tsd_base_offset,uint64_t plo_pthread_tsd_entry_size) DNBGetTSDAddressForThread() argument
1066 DNBGetMainBinaryCPUTypes(nub_process_t pid) DNBGetMainBinaryCPUTypes() argument
1074 DNBGetAllLoadedLibrariesInfos(nub_process_t pid,bool report_load_commands) DNBGetAllLoadedLibrariesInfos() argument
1083 DNBGetLibrariesInfoForAddresses(nub_process_t pid,std::vector<uint64_t> & macho_addresses) DNBGetLibrariesInfoForAddresses() argument
1092 DNBGetSharedCacheInfo(nub_process_t pid) DNBGetSharedCacheInfo() argument
1100 DNBProcessGetExecutablePath(nub_process_t pid) DNBProcessGetExecutablePath() argument
1108 DNBProcessGetArgumentCount(nub_process_t pid) DNBProcessGetArgumentCount() argument
1116 DNBProcessGetArgumentAtIndex(nub_process_t pid,nub_size_t idx) DNBProcessGetArgumentAtIndex() argument
1125 DNBProcessResume(nub_process_t pid,const DNBThreadResumeAction * actions,size_t num_actions) DNBProcessResume() argument
1148 DNBProcessHalt(nub_process_t pid) DNBProcessHalt() argument
1183 DNBProcessWaitForEvents(nub_process_t pid,nub_event_t event_mask,bool wait_for_set,struct timespec * timeout) DNBProcessWaitForEvents() argument
1197 DNBProcessResetEvents(nub_process_t pid,nub_event_t event_mask) DNBProcessResetEvents() argument
1204 DNBBreakpointSet(nub_process_t pid,nub_addr_t addr,nub_size_t size,nub_bool_t hardware) DNBBreakpointSet() argument
1212 DNBBreakpointClear(nub_process_t pid,nub_addr_t addr) DNBBreakpointClear() argument
1220 DNBWatchpointSet(nub_process_t pid,nub_addr_t addr,nub_size_t size,uint32_t watch_flags,nub_bool_t hardware) DNBWatchpointSet() argument
1228 DNBWatchpointClear(nub_process_t pid,nub_addr_t addr) DNBWatchpointClear() argument
1236 DNBWatchpointGetNumSupportedHWP(nub_process_t pid) DNBWatchpointGetNumSupportedHWP() argument
1248 DNBProcessMemoryRead(nub_process_t pid,nub_addr_t addr,nub_size_t size,void * buf) DNBProcessMemoryRead() argument
1256 DNBProcessMemoryReadInteger(nub_process_t pid,nub_addr_t addr,nub_size_t integer_size,uint64_t fail_value) DNBProcessMemoryReadInteger() argument
1292 DNBProcessMemoryReadPointer(nub_process_t pid,nub_addr_t addr) DNBProcessMemoryReadPointer() argument
1301 DNBProcessMemoryReadCString(nub_process_t pid,nub_addr_t addr) DNBProcessMemoryReadCString() argument
1320 DNBProcessMemoryReadCStringFixed(nub_process_t pid,nub_addr_t addr,nub_size_t fixed_length) DNBProcessMemoryReadCStringFixed() argument
1336 DNBProcessMemoryWrite(nub_process_t pid,nub_addr_t addr,nub_size_t size,const void * buf) DNBProcessMemoryWrite() argument
1344 DNBProcessMemoryAllocate(nub_process_t pid,nub_size_t size,uint32_t permissions) DNBProcessMemoryAllocate() argument
1352 DNBProcessMemoryDeallocate(nub_process_t pid,nub_addr_t addr) DNBProcessMemoryDeallocate() argument
1371 DNBProcessMemoryRegionInfo(nub_process_t pid,nub_addr_t addr,DNBRegionInfo * region_info) DNBProcessMemoryRegionInfo() argument
1380 DNBProcessGetProfileData(nub_process_t pid,DNBProfileDataScanType scanType) DNBProcessGetProfileData() argument
1389 DNBProcessSetEnableAsyncProfiling(nub_process_t pid,nub_bool_t enable,uint64_t interval_usec,DNBProfileDataScanType scan_type) DNBProcessSetEnableAsyncProfiling() argument
1403 DNBProcessGetNumThreads(nub_process_t pid) DNBProcessGetNumThreads() argument
1411 DNBProcessGetCurrentThread(nub_process_t pid) DNBProcessGetCurrentThread() argument
1419 DNBProcessGetCurrentThreadMachPort(nub_process_t pid) DNBProcessGetCurrentThreadMachPort() argument
1427 DNBProcessSetCurrentThread(nub_process_t pid,nub_thread_t tid) DNBProcessSetCurrentThread() argument
1436 DNBThreadGetStopReason(nub_process_t pid,nub_thread_t tid,struct DNBThreadStopInfo * stop_info) DNBThreadGetStopReason() argument
1449 DNBThreadGetInfo(nub_process_t pid,nub_thread_t tid) DNBThreadGetInfo() argument
1457 DNBProcessGetThreadAtIndex(nub_process_t pid,size_t thread_idx) DNBProcessGetThreadAtIndex() argument
1466 DNBProcessSyncThreadState(nub_process_t pid,nub_thread_t tid) DNBProcessSyncThreadState() argument
1473 DNBProcessGetSharedLibraryInfoAddress(nub_process_t pid) DNBProcessGetSharedLibraryInfoAddress() argument
1481 DNBProcessSharedLibrariesUpdated(nub_process_t pid) DNBProcessSharedLibrariesUpdated() argument
1491 DNBGetDeploymentInfo(nub_process_t pid,bool is_executable,const struct load_command & lc,uint64_t load_command_address,uint32_t & major_version,uint32_t & minor_version,uint32_t & patch_version) DNBGetDeploymentInfo() argument
1519 DNBProcessGetSharedLibraryInfo(nub_process_t pid,nub_bool_t only_changed,struct DNBExecutableImageInfo ** image_infos) DNBProcessGetSharedLibraryInfo() argument
1540 DNBThreadGetRegisterValueByID(nub_process_t pid,nub_thread_t tid,uint32_t set,uint32_t reg,DNBRegisterValue * value) DNBThreadGetRegisterValueByID() argument
1552 DNBThreadSetRegisterValueByID(nub_process_t pid,nub_thread_t tid,uint32_t set,uint32_t reg,const DNBRegisterValue * value) DNBThreadSetRegisterValueByID() argument
1563 DNBThreadGetRegisterContext(nub_process_t pid,nub_thread_t tid,void * buf,size_t buf_len) DNBThreadGetRegisterContext() argument
1574 DNBThreadSetRegisterContext(nub_process_t pid,nub_thread_t tid,const void * buf,size_t buf_len) DNBThreadSetRegisterContext() argument
1584 DNBThreadSaveRegisterState(nub_process_t pid,nub_thread_t tid) DNBThreadSaveRegisterState() argument
1592 DNBThreadRestoreRegisterState(nub_process_t pid,nub_thread_t tid,uint32_t save_id) DNBThreadRestoreRegisterState() argument
1603 DNBThreadGetRegisterValueByName(nub_process_t pid,nub_thread_t tid,uint32_t reg_set,const char * reg_name,DNBRegisterValue * value) DNBThreadGetRegisterValueByName() argument
1671 DNBProcessSetNameToAddressCallback(nub_process_t pid,DNBCallbackNameToAddress callback,void * baton) DNBProcessSetNameToAddressCallback() argument
1685 DNBProcessSetSharedLibraryInfoCallback(nub_process_t pid,DNBCallbackCopyExecutableImageInfos callback,void * baton) DNBProcessSetSharedLibraryInfoCallback() argument
1695 DNBProcessLookupAddress(nub_process_t pid,const char * name,const char * shlib) DNBProcessLookupAddress() argument
1704 DNBProcessGetAvailableSTDOUT(nub_process_t pid,char * buf,nub_size_t buf_size) DNBProcessGetAvailableSTDOUT() argument
1712 DNBProcessGetAvailableSTDERR(nub_process_t pid,char * buf,nub_size_t buf_size) DNBProcessGetAvailableSTDERR() argument
1720 DNBProcessGetAvailableProfileData(nub_process_t pid,char * buf,nub_size_t buf_size) DNBProcessGetAvailableProfileData() argument
1728 DNBProcessGetStopCount(nub_process_t pid) DNBProcessGetStopCount() argument
1735 DNBProcessGetCPUType(nub_process_t pid) DNBProcessGetCPUType() argument
1903 DNBProcessIsBeingDebugged(nub_process_t pid) DNBProcessIsBeingDebugged() argument
[all...]
H A DRNBContext.cpp77 void RNBContext::SetProcessID(nub_process_t pid) { in SetProcessID() argument
84 m_pid = pid; in SetProcessID()
86 if (pid != INVALID_NUB_PROCESS) { in SetProcessID()
143 nub_process_t pid = ctx.ProcessID(); in ThreadFunctionProcessStatus() local
146 __FUNCTION__, arg, pid); in ThreadFunctionProcessStatus()
171 pid, in ThreadFunctionProcessStatus()
185 __FUNCTION__, pid); in ThreadFunctionProcessStatus()
192 __FUNCTION__, pid); in ThreadFunctionProcessStatus()
203 __FUNCTION__, pid); in ThreadFunctionProcessStatus()
212 nub_state_t pid_state = DNBProcessGetState(pid); in ThreadFunctionProcessStatus()
[all …]
H A Ddebugserver.cpp247 nub_process_t pid = DNBProcessLaunch( in RNBRunLoopLaunchInferior() local
252 g_pid = pid; in RNBRunLoopLaunchInferior()
254 if (pid == INVALID_NUB_PROCESS && strlen(launch_err_str) > 0) { in RNBRunLoopLaunchInferior()
259 } else if (pid == INVALID_NUB_PROCESS) { in RNBRunLoopLaunchInferior()
297 while (pid != INVALID_NUB_PROCESS) { in RNBRunLoopLaunchInferior()
303 __FUNCTION__, pid); in RNBRunLoopLaunchInferior()
305 DNBProcessWaitForEvents(pid, eEventProcessRunningStateChanged | in RNBRunLoopLaunchInferior()
312 __FUNCTION__, pid, set_events); in RNBRunLoopLaunchInferior()
315 pid = INVALID_NUB_PROCESS; in RNBRunLoopLaunchInferior()
316 g_pid = pid; in RNBRunLoopLaunchInferior()
365 RNBRunLoopLaunchAttaching(RNBRemote * remote,nub_process_t attach_pid,nub_process_t & pid) RNBRunLoopLaunchAttaching() argument
423 nub_process_t pid = ctx.ProcessID(); HandleProcessStateChange() local
587 nub_process_t pid = ctx.ProcessID(); RNBRunLoopInferiorExecuting() local
1541 nub_process_t pid = DNBProcessAttachWait( main() local
1577 nub_process_t pid = DNBProcessAttachByName( main() local
[all...]
/llvm-project/libc/test/integration/src/unistd/
H A Dfork_test.cpp32 pid_t pid = LIBC_NAMESPACE::fork(); in fork_and_wait_normal_exit()
33 if (pid == 0) in fork_and_wait_normal_exit()
35 ASSERT_TRUE(pid > 0); in fork_and_wait_normal_exit()
39 ASSERT_EQ(cpid, pid);
44 pid_t pid = LIBC_NAMESPACE::fork(); in fork_and_wait4_normal_exit()
45 if (pid == 0) in fork_and_wait4_normal_exit()
47 ASSERT_TRUE(pid > 0); in fork_and_wait4_normal_exit()
52 pid_t cpid = LIBC_NAMESPACE::wait4(pid, &status, 0, &usage); in fork_and_wait4_normal_exit()
54 ASSERT_EQ(cpid, pid);
59 pid_t pid in fork_and_waitpid_normal_exit()
29 pid_t pid = LIBC_NAMESPACE::fork(); fork_and_wait_normal_exit() local
41 pid_t pid = LIBC_NAMESPACE::fork(); fork_and_wait4_normal_exit() local
56 pid_t pid = LIBC_NAMESPACE::fork(); fork_and_waitpid_normal_exit() local
68 pid_t pid = LIBC_NAMESPACE::fork(); fork_and_wait_signal_exit() local
81 pid_t pid = LIBC_NAMESPACE::fork(); fork_and_wait4_signal_exit() local
97 pid_t pid = LIBC_NAMESPACE::fork(); fork_and_waitpid_signal_exit() local
123 pid_t pid = LIBC_NAMESPACE::fork(); fork_with_atfork_callbacks() local
[all...]
H A Dexecv_test.cpp19 pid_t pid = LIBC_NAMESPACE::fork(); in fork_and_execv_normal_exit() local
20 if (pid == 0) { in fork_and_execv_normal_exit()
28 ASSERT_TRUE(pid > 0); in fork_and_execv_normal_exit()
30 pid_t cpid = LIBC_NAMESPACE::waitpid(pid, &status, 0); in fork_and_execv_normal_exit()
32 ASSERT_EQ(cpid, pid); in fork_and_execv_normal_exit()
37 pid_t pid = LIBC_NAMESPACE::fork(); in fork_and_execv_signal_exit() local
38 if (pid == 0) { in fork_and_execv_signal_exit()
46 ASSERT_TRUE(pid > 0); in fork_and_execv_signal_exit()
48 pid_t cpid = LIBC_NAMESPACE::waitpid(pid, &status, 0); in fork_and_execv_signal_exit()
50 ASSERT_EQ(cpid, pid); in fork_and_execv_signal_exit()
H A Dexecve_test.cpp19 pid_t pid = LIBC_NAMESPACE::fork(); in fork_and_execv_normal_exit() local
20 if (pid == 0) { in fork_and_execv_normal_exit()
28 ASSERT_TRUE(pid > 0); in fork_and_execv_normal_exit()
30 pid_t cpid = LIBC_NAMESPACE::waitpid(pid, &status, 0); in fork_and_execv_normal_exit()
32 ASSERT_EQ(cpid, pid); in fork_and_execv_normal_exit()
37 pid_t pid = LIBC_NAMESPACE::fork(); in fork_and_execv_signal_exit() local
38 if (pid == 0) { in fork_and_execv_signal_exit()
46 ASSERT_TRUE(pid > 0); in fork_and_execv_signal_exit()
48 pid_t cpid = LIBC_NAMESPACE::waitpid(pid, &status, 0); in fork_and_execv_signal_exit()
50 ASSERT_EQ(cpid, pid); in fork_and_execv_signal_exit()
H A Dstack_smashing_test.cpp25 pid_t pid = LIBC_NAMESPACE::fork(); in no_stack_smashing_normal_exit()
26 if (pid == 0) { in no_stack_smashing_normal_exit() local
33 ASSERT_TRUE(pid > 0); in no_stack_smashing_normal_exit()
37 ASSERT_EQ(cpid, pid); in no_stack_smashing_normal_exit()
42 pid_t pid = LIBC_NAMESPACE::fork(); in stack_smashing_abort()
43 if (pid == 0) { in stack_smashing_abort() local
55 ASSERT_TRUE(pid > 0); in stack_smashing_abort()
59 ASSERT_EQ(cpid, pid); in stack_smashing_abort()
/llvm-project/libc/src/sys/wait/
H A Dwait4Impl.h28 LIBC_INLINE ErrorOr<pid_t> wait4impl(pid_t pid, int *wait_status, int options, in wait4impl()
31 pid = LIBC_NAMESPACE::syscall_impl<pid_t>(SYS_wait4, pid, wait_status, in wait4impl()
35 if (pid == -1) { in wait4impl()
37 } else if (pid < -1) { in wait4impl()
39 pid *= -1; in wait4impl()
40 } else if (pid == 0) { in wait4impl()
47 pid = LIBC_NAMESPACE::syscall_impl<pid_t>(SYS_waitid, idtype, pid, &info, in wait4impl()
49 if (pid > in wait4impl()
27 wait4impl(pid_t pid,int * wait_status,int options,struct rusage * usage) wait4impl() argument
[all...]
/llvm-project/lldb/examples/interposing/darwin/fd_interposing/
H A DFDInterposing.cpp320 const pid_t pid = getpid(); in get_interposed_pid() local
321 if (g_pid != pid) { in get_interposed_pid()
323 g_pid = pid; in get_interposed_pid()
326 get_process_fullpath(true), pid); in get_interposed_pid()
330 g_pid, get_process_fullpath(true), pid); in get_interposed_pid()
346 const pid_t pid = get_interposed_pid(); in get_logging_fd() local
448 const int pid = get_interposed_pid(); in backtrace_error() local
449 if (pid >= 0) { in backtrace_error()
452 log("\nerror: %s (pid=%i): ", get_process_fullpath(), pid); in backtrace_error()
528 const int pid = get_interposed_pid(); in socket$__interposed__() local
[all …]
/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/
H A Dptrace.cpp26 pid_t pid; in main() local
27 pid = fork(); in main()
28 if (pid == 0) { // child in main()
37 res = ptrace(PTRACE_GETREGS, pid, NULL, &regs); in main()
43 res = ptrace(PTRACE_GETFPREGS, pid, NULL, &fpregs); in main()
54 res = ptrace((enum __ptrace_request)PTRACE_GETREGS, pid, NULL, &regs); in main()
70 res = ptrace((enum __ptrace_request)PTRACE_GETFPREGS, pid, NULL, &fpregs); in main()
76 res = ptrace((enum __ptrace_request)PTRACE_GETVFPREGS, pid, 0, regbuf); in main()
89 res = ptrace(PTRACE_GETREGSET, pid, (void*)NT_PRSTATUS, (void*)&regset_io); in main()
97 res = ptrace(PTRACE_GETREGSET, pid, (void*)NT_FPREGSET, (void*)&regset_io); in main()
[all …]
/llvm-project/lldb/source/Plugins/Process/gdb-remote/
H A DGDBRemoteCommunicationServerPlatform.cpp95 const lldb_private::Args &args, lldb::pid_t &pid, std::string &socket_name, in FreePortForProcess()
133 pid = debugserver_launch_info.GetProcessID(); in GDBRemoteCommunicationServerPlatform()
134 AddSpawnedProcess(pid); in GDBRemoteCommunicationServerPlatform()
137 "debugserver launched successfully as pid %" PRIu64, in GDBRemoteCommunicationServerPlatform()
138 __FUNCTION__, pid); in GDBRemoteCommunicationServerPlatform()
185 response.Printf("pid:%" PRIu64 ";port:%u;", debugserver_pid, gdbserver_port); in LaunchGDBServer()
232 lldb::pid_t pid = packet.GetU64(LLDB_INVALID_PROCESS_ID); in Handle_qLaunchGDBServer()
234 // verify that we know anything about this pid. in Handle_qLaunchGDBServer()
235 if (!SpawnedProcessIsRunning(pid)) { in Handle_qLaunchGDBServer()
236 // not a pid w in Handle_qLaunchGDBServer()
75 AssociatePortWithProcess(uint16_t port,lldb::pid_t pid) AssociatePortWithProcess() argument
94 FreePortForProcess(lldb::pid_t pid) FreePortForProcess() argument
161 LaunchGDBServer(const lldb_private::Args & args,std::string hostname,lldb::pid_t & pid,std::optional<uint16_t> & port,std::string & socket_name) LaunchGDBServer() argument
316 lldb::pid_t pid = packet.GetU64(LLDB_INVALID_PROCESS_ID); Handle_qKillSpawnedProcess() local
334 KillSpawnedProcess(lldb::pid_t pid) KillSpawnedProcess() argument
392 lldb::pid_t pid = m_process_launch_info.GetProcessID(); Handle_qProcessInfo() local
472 lldb::pid_t pid = m_process_launch_info.GetProcessID(); Handle_qC() local
520 DebugserverProcessReaped(lldb::pid_t pid) DebugserverProcessReaped() argument
551 const auto pid = m_process_launch_info.GetProcessID(); LaunchProcess() local
600 SetPendingGdbServer(lldb::pid_t pid,uint16_t port,const std::string & socket_name) SetPendingGdbServer() argument
[all...]
/llvm-project/lldb/source/Plugins/Trace/intel-pt/
H A DPerfContextSwitchDecoder.cpp78 uint32_t pid, tid; member
93 lldb::pid_t pid; member
147 lldb::cpu_id_t cpu_id, lldb::tid_t tid, lldb::pid_t pid, uint64_t start, in CreateCompleteExecution() argument
149 ThreadContinuousExecution o(cpu_id, tid, pid); in CreateCompleteExecution()
157 lldb::cpu_id_t cpu_id, lldb::tid_t tid, lldb::pid_t pid, in CreateHintedStartExecution() argument
159 ThreadContinuousExecution o(cpu_id, tid, pid); in CreateHintedStartExecution()
167 lldb::cpu_id_t cpu_id, lldb::tid_t tid, lldb::pid_t pid, uint64_t start, in CreateHintedEndExecution() argument
169 ThreadContinuousExecution o(cpu_id, tid, pid); in CreateHintedEndExecution()
177 lldb::cpu_id_t cpu_id, lldb::tid_t tid, lldb::pid_t pid, uint64_t end) { in CreateOnlyEndExecution() argument
178 ThreadContinuousExecution o(cpu_id, tid, pid); in CreateOnlyEndExecution()
[all …]
H A DPerfContextSwitchDecoder.h65 lldb::pid_t pid, uint64_t start, uint64_t end);
69 lldb::pid_t pid, uint64_t hinted_start,
74 lldb::pid_t pid, uint64_t start,
79 lldb::pid_t pid,
84 lldb::pid_t pid, uint64_t start);
112 lldb::pid_t pid; member
118 lldb::pid_t pid) in ThreadContinuousExecution()
119 : cpu_id(cpu_id), tid(tid), pid(pid) {} in ThreadContinuousExecution()
/llvm-project/lldb/test/API/commands/process/attach/attach_denied/
H A Dmain.cpp24 bool writePid (const char* file_name, const pid_t pid) in writePid() argument
37 snprintf (buffer, sizeof(buffer), "%ld", (long)pid); in writePid()
69 const pid_t pid = fork (); in main() local
70 if (pid == -1) in main()
76 if (pid > 0) in main()
82 if (ptrace (ATTACH_REQUEST, pid, NULL, 0) == -1) in main()
88 if (writePid (argv[1], pid)) in main()
91 if (ptrace (DETACH_REQUEST, pid, NULL, 0) != 0) in main()
95 kill (pid, SIGTERM); in main()
97 if (waitpid (pid, &status, 0) == -1) in main()
/llvm-project/lldb/source/Host/common/
H A DHost.cpp116 MonitorChildProcessThreadFunction(::pid_t pid, in SystemLog()
120 const Host::MonitorChildProcessCallback &callback, lldb::pid_t pid) { in SystemLog()
123 "<lldb.host.wait4(pid=%" PRIu64 ")>", pid); in SystemLog()
124 assert(pid <= UINT32_MAX); in SystemLog()
125 return ThreadLauncher::LaunchThread(thread_name, [pid, callback] {
126 return MonitorChildProcessThreadFunction(pid, callback);
173 MonitorChildProcessThreadFunction(::pid_t pid,
176 LLDB_LOG(log, "pid = {0}", pid); in CheckForMonitorCancellation()
134 StartMonitoringChildProcess(const Host::MonitorChildProcessCallback & callback,lldb::pid_t pid) StartMonitoringChildProcess() argument
187 MonitorChildProcessThreadFunction(::pid_t pid,Host::MonitorChildProcessCallback callback) MonitorChildProcessThreadFunction() argument
378 FindProcessThreads(const lldb::pid_t pid,TidMap & tids_to_attach) FindProcessThreads() argument
387 lldb::pid_t pid = LLDB_INVALID_PROCESS_ID; global() member
393 MonitorShellCommand(std::shared_ptr<ShellInfo> shell_info,lldb::pid_t pid,int signo,int status) MonitorShellCommand() argument
502 const lldb::pid_t pid = launch_info.GetProcessID(); RunShellCommand() local
573 Kill(lldb::pid_t pid,int signo) Kill() argument
[all...]
/llvm-project/lldb/tools/darwin-threads/
H A Dexamine-threads.c16 int csops(pid_t pid, unsigned int ops, void *useraddr, size_t usersize);
77 const char *get_process_name_for_pid(pid_t pid) { in get_process_name_for_pid() argument
79 if (proc_pidpath(pid, tmp_name, sizeof(tmp_name)) == 0) { in get_process_name_for_pid()
80 printf("Could not find process with pid of %d\n", (int)pid); in get_process_name_for_pid()
96 struct kinfo_proc *get_kinfo_proc_for_pid(pid_t pid, const char *process_name) { in get_kinfo_proc_for_pid() argument
99 int mib[] = {CTL_KERN, KERN_PROC, KERN_PROC_PID, pid}; in get_kinfo_proc_for_pid()
103 printf("Could not get kinfo_proc for pid %d\n", (int)pid); in get_kinfo_proc_for_pid()
252 int get_proc_threadinfo(pid_t pid, uint64_t thread_handle, in get_proc_threadinfo() argument
255 int ret = proc_pidinfo(pid, PROC_PIDTHREADINFO, thread_handle, pth, in get_proc_threadinfo()
266 pid_t pid = 0; in main() local
[all …]
/llvm-project/lldb/source/Host/linux/
H A DHost.cpp55 ::pid_t pid = LLDB_INVALID_PROCESS_ID;
102 &stat_fields.pid, /* comm, */ &stat_fields.state, in GetStatusInfo()
253 static void GetProcessArgs(::pid_t pid, ProcessInstanceInfo &process_info) { in GetELFProcessCPUType()
254 auto BufferOrError = getProcFile(pid, "cmdline");
269 static void GetExePathAndArch(::pid_t pid, ProcessInstanceInfo &process_info) { in GetProcessArgs()
273 // We can't use getProcFile here because proc/[pid]/exe is a symbolic link. in GetExePathAndArch()
275 (llvm::Twine("/proc/") + llvm::Twine(pid) + "/exe").toVector(ProcExe); in GetExePathAndArch()
281 LLDB_LOG(log, "failed to read link exe link for {0}: {1}", pid, in GetExePathAndArch()
296 static void GetProcessEnviron(::pid_t pid, ProcessInstanceInfo &process_info) { in GetExePathAndArch()
298 auto BufferOrError = getProcFile(pid, "enviro argument
255 GetProcessArgs(::pid_t pid,ProcessInstanceInfo & process_info) GetProcessArgs() argument
271 GetExePathAndArch(::pid_t pid,ProcessInstanceInfo & process_info) GetExePathAndArch() argument
313 GetProcessAndStatInfo(::pid_t pid,ProcessInstanceInfo & process_info,ProcessState & State,::pid_t & tracerpid) GetProcessAndStatInfo() argument
348 lldb::pid_t pid = atoi(direntry->d_name); FindProcessesImpl() local
384 FindProcessThreads(const lldb::pid_t pid,TidMap & tids_to_attach) FindProcessThreads() argument
410 GetProcessInfo(lldb::pid_t pid,ProcessInstanceInfo & process_info) GetProcessInfo() argument
[all...]
/llvm-project/clang/test/Analysis/
H A Dvfork.c10 pid_t pid = vfork(); // expected-warning{{Call to function 'vfork' is insecure}} in f1() local
11 if (pid != 0) in f1()
17 pid = 1; // no-warning in f1()
62 pid_t pid = vfork(); // expected-warning{{Call to function 'vfork' is insecure}} in f2() local
67 pid = 1; // no-warning in f2()
118 pid_t pid; in f4() local
119 if ((pid = vfork()) == 0) // expected-warning{{Call to function 'vfork' is insecure}} in f4()
/llvm-project/lldb/source/Plugins/Process/NetBSD/
H A DNativeProcessNetBSD.cpp64 ::pid_t pid = ProcessLauncherPosixFork() in Launch()
67 LLDB_LOG(log, "pid = {0:x}", pid); in Launch()
75 ::pid_t wpid = llvm::sys::RetryAfterSignal(-1, ::waitpid, pid, &wstatus, 0); in Launch()
76 assert(wpid == pid); in Launch()
87 if (!Host::GetProcessInfo(pid, Info)) { in Launch()
93 LLDB_LOG(log, "pid = {0:x}, detected architecture {1}", pid, in Launch()
97 pid, launch_info.GetPTY().ReleasePrimaryFileDescriptor(), native_delegate, in Launch()
113 lldb::pid_t pid, NativeProcessProtoco in Attach() argument
143 NativeProcessNetBSD(::pid_t pid,int terminal_fd,NativeDelegate & delegate,const ArchSpec & arch,MainLoop & mainloop) NativeProcessNetBSD() argument
161 MonitorCallback(lldb::pid_t pid,int signal) MonitorCallback() argument
172 MonitorExited(lldb::pid_t pid,WaitStatus status) MonitorExited() argument
186 MonitorSIGSTOP(lldb::pid_t pid) MonitorSIGSTOP() argument
207 MonitorSIGTRAP(lldb::pid_t pid) MonitorSIGTRAP() argument
359 MonitorSignal(lldb::pid_t pid,int signal) MonitorSignal() argument
382 StopProcess(lldb::pid_t pid) StopProcess() argument
405 PtraceWrapper(int req,lldb::pid_t pid,void * addr,int data,int * result) PtraceWrapper() argument
[all...]
/llvm-project/compiler-rt/test/sanitizer_common/ios_commands/
H A Dprint_crashreport_for_pid.py55 assert args.pid, "pid can't be empty"
61 args.pid.strip(),
69 outfile, pid, filename, attempts_remaining, max_wait_time argument
71 report_name = find_report_in_cur_dir(pid, filename)
82 outfile, pid, filename, attempts_remaining - 1, max_wait_time
85 raise RuntimeError("Report not found for ({}, {}).".format(filename, pid))
88 def find_report_in_cur_dir(pid, filename): argument
97 if cur_report_pid == pid:
/llvm-project/lldb/test/API/functionalities/postmortem/elf-core/gcore/
H A Dmake-core.sh27 Core file will be saved as core.<pid>.
41 pid=$!
48 echo "Sleeping for 5 seconds to wait for $pid"
51 echo "Taking core from process $pid"
53 gcore -o core $pid
55 echo "Killing process $pid"
56 kill -9 $pid
/llvm-project/compiler-rt/include/sanitizer/
H A Dlinux_syscall_hooks.h88 #define __sanitizer_syscall_pre_getpgid(pid) \ argument
89 __sanitizer_syscall_pre_impl_getpgid((long)(pid))
90 #define __sanitizer_syscall_post_getpgid(res, pid) \ argument
91 __sanitizer_syscall_post_impl_getpgid(res, (long)(pid))
95 #define __sanitizer_syscall_pre_getsid(pid) \ argument
96 __sanitizer_syscall_pre_impl_getsid((long)(pid))
97 #define __sanitizer_syscall_post_getsid(res, pid) \ argument
98 __sanitizer_syscall_post_impl_getsid(res, (long)(pid))
140 #define __sanitizer_syscall_pre_setpgid(pid, pgid) \ argument
141 __sanitizer_syscall_pre_impl_setpgid((long)(pid), (long)(pgid))
[all …]
/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Darwin/
H A Dprint-stack-trace-in-code-loaded-after-fork.cpp31 pid_t pid = fork(); in main() local
32 if (pid != 0) { in main()
37 pid_t child = waitpid(pid, &status, /*options=*/0); in main()
38 assert(pid == child); in main()
43 pid = getpid(); in main()
45 fprintf(stderr, "child: %d\n", pid); in main()

12345678910>>...16