Home
last modified time | relevance | path

Searched full:pid (Results 1 – 25 of 598) sorted by relevance

12345678910>>...24

/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.cpp80 // Add PID to the shared process pointer map.
85 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()
94 // Remove the shared pointer for PID from the process map.
98 // RemoveProcessFromMap (nub_process_t pid)
103 // return process_map->erase(pid);
108 // Get the shared pointer for PID from the existing process map.
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 in kqueue_thread() local
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
145 "RNBContext::%s (arg=%p, pid=%4.4x): thread starting...", in ThreadFunctionProcessStatus()
146 __FUNCTION__, arg, pid); in ThreadFunctionProcessStatus()
165 "RNBContext::%s calling DNBProcessWaitForEvent(pid, " in ThreadFunctionProcessStatus()
171 pid, in ThreadFunctionProcessStatus()
176 "RNBContext::%s calling DNBProcessWaitForEvent(pid, " in ThreadFunctionProcessStatus()
183 DNBLogThreadedIf(LOG_RNB_PROC, "RNBContext::%s (pid=%4.4x) got ZERO back " in ThreadFunctionProcessStatus()
[all …]
/llvm-project/openmp/runtime/test/tasking/hidden_helper_task/
H A Daffinity.cpp89 // SOCKET-NOT: OMP: Info #{{[0-9]+}}: KMP_HIDDEN_HELPER_AFFINITY: pid {{[0-9]+}} tid {{[0-9]+}} thr…
90 // SOCKET-DAG: OMP: Info #[[NUM:[0-9]+]]: KMP_HIDDEN_HELPER_AFFINITY: pid [[PID:[0-9]+]] tid {{[0-9…
91 // SOCKET-DAG: OMP: Info #[[NUM]]: KMP_HIDDEN_HELPER_AFFINITY: pid [[PID]] tid {{[0-9]+}} thread 3 …
92 // SOCKET-DAG: OMP: Info #[[NUM]]: KMP_HIDDEN_HELPER_AFFINITY: pid [[PID]] tid {{[0-9]+}} thread 4 …
93 // SOCKET-DAG: OMP: Info #[[NUM]]: KMP_HIDDEN_HELPER_AFFINITY: pid [[PID]] tid {{[0-9]+}} thread 5 …
94 // SOCKET-DAG: OMP: Info #[[NUM]]: KMP_HIDDEN_HELPER_AFFINITY: pid [[PID]] tid {{[0-9]+}} thread 6 …
95 // SOCKET-DAG: OMP: Info #[[NUM]]: KMP_HIDDEN_HELPER_AFFINITY: pid [[PID]] tid {{[0-9]+}} thread 7 …
96 // SOCKET-DAG: OMP: Info #[[NUM]]: KMP_HIDDEN_HELPER_AFFINITY: pid [[PID]] tid {{[0-9]+}} thread 8 …
97 // SOCKET-DAG: OMP: Info #[[NUM]]: KMP_HIDDEN_HELPER_AFFINITY: pid [[PID]] tid {{[0-9]+}} thread 9 …
100 // CORE-NOT: OMP: Info #{{[0-9]+}}: KMP_HIDDEN_HELPER_AFFINITY: pid {{[0-9]+}} tid {{[0-9]+}} threa…
[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 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 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()
/llvm-project/bolt/test/runtime/
H A Dinstrumentation-indirect-2.c3 // --instrumentation-file-append-pid.
9 __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
[all …]
/llvm-project/lldb/test/API/commands/trace/
H A DTestTraceExport.py81 pid: the ID of the HTR layer the blocks belong to
91 {"dur": 1, "name": "0x400511", "ph": "X", "pid": 0, "ts": 0},
92 {"dur": 1, "name": "0x400518", "ph": "X", "pid": 0, "ts": 1},
93 {"dur": 1, "name": "0x40051f", "ph": "X", "pid": 0, "ts": 2},
94 {"dur": 1, "name": "0x400529", "ph": "X", "pid": 0, "ts": 3}, # head
95 {"dur": 1, "name": "0x40052d", "ph": "X", "pid": 0, "ts": 4}, # tail
96 {"dur": 1, "name": "0x400521", "ph": "X", "pid": 0, "ts": 5},
97 {"dur": 1, "name": "0x400525", "ph": "X", "pid": 0, "ts": 6},
98 {"dur": 1, "name": "0x400529", "ph": "X", "pid": 0, "ts": 7}, # head
99 {"dur": 1, "name": "0x40052d", "ph": "X", "pid": 0, "ts": 8}, # tail
[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()
325 "(pid=%i)\n", in get_interposed_pid()
326 get_process_fullpath(true), pid); in get_interposed_pid()
328 log("pid=%i: disabling interposing file descriptor create and delete " in get_interposed_pid()
329 "functions for child process %s (pid=%i)\n", 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
369 log("pid=%i: logging disabled\n", getpid()); in get_logging_fd()
[all …]
/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/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/compiler-rt/test/asan/TestCases/Posix/
H A Dcoverage.cpp38 fprintf(stderr, "PID: %d\n", getpid()); in main()
53 // CHECK-main: PID: [[PID:[0-9]+]]
54 // CHECK-main: [[PID]].sancov: 1 PCs written
55 // CHECK-main-NOT: .so.[[PID]]
57 // CHECK-foo: PID: [[PID:[0-9]+]]
58 // CHECK-foo: [[PID]].sancov: 2 PCs written
59 // CHECK-foo-NOT: .so.[[PID]]
61 // CHECK-bar: PID: [[PID:[0-9]+]]
62 // CHECK-bar-DAG: .so.[[PID]].sancov: 1 PCs written
63 // CHECK-bar-DAG: [[PID]].sancov: 1 PCs written
[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/tools/darwin-threads/
H A Dexamine-threads.c16 int csops(pid_t pid, unsigned int ops, void *useraddr, size_t usersize);
19 the pid of that matched process.
66 printf(" defaulting to the highest-pid one, %d\n", highest_pid); in get_pid_for_process_name()
71 /* Given a pid, get the full executable name (including directory
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()
89 /* Get a struct kinfo_proc structure for a given 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()
[all …]
/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.py13 "--pid",
55 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
90 # parse out pid from first line of report
91 # `Process: filename [pid]``
[all …]
H A Dget_pid_from_output.py14 help="The sanitizer output to get the pid from",
25 pid = process_file(args.infile)
26 args.outfile.write(pid)
36 # parse out pid from 2nd line
37 # `==PID==ERROR: SanitizerName: error-type on address...`
39 pid = pid_pattern.search(infile.readline()).group(1)
43 assert pid and pid.isdigit()
45 return pid
/llvm-project/lldb/source/Plugins/Trace/intel-pt/
H A DPerfContextSwitchDecoder.cpp78 uint32_t pid, tid; member
91 /// pid = 0 and tid = 0 indicate the swapper or idle process, which normally
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
[all …]
/llvm-project/lldb/source/Host/linux/
H A DHost.cpp55 ::pid_t pid = LLDB_INVALID_PROCESS_ID;
86 static bool GetStatusInfo(::pid_t Pid, ProcessInstanceInfo &ProcessInfo,
91 auto BufferOrError = getProcFile(Pid, "stat"); in GetStatusInfo()
102 &stat_fields.pid, /* comm, */ &stat_fields.state, in GetStatusInfo()
178 BufferOrError = getProcFile(Pid, "status"); 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) in GetExePathAndArch()
88 GetStatusInfo(::pid_t Pid,ProcessInstanceInfo & ProcessInfo,ProcessState & State,::pid_t & TracerPid,::pid_t & Tgid) GetStatusInfo() argument
255 GetProcessArgs(::pid_t pid,ProcessInstanceInfo & process_info) GetProcessArgs() argument
271 GetExePathAndArch(::pid_t pid,ProcessInstanceInfo & process_info) GetExePathAndArch() argument
298 GetProcessEnviron(::pid_t pid,ProcessInstanceInfo & process_info) GetProcessEnviron() 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/lldb/source/Plugins/Process/FreeBSD/
H A DNativeProcessFreeBSD.cpp75 ::pid_t pid = ProcessLauncherPosixFork() in Launch()
78 LLDB_LOG(log, "pid = {0:x}", pid); in Launch()
89 ::pid_t wpid = llvm::sys::RetryAfterSignal(-1, ::waitpid, pid, &wstatus, 0); in Launch()
90 assert(wpid == pid); in Launch()
101 if (!Host::GetProcessInfo(pid, Info)) { in Launch()
107 LLDB_LOG(log, "pid = {0:x}, detected architecture {1}", pid, in Launch()
111 pid, launch_info.GetPTY().ReleasePrimaryFileDescriptor(), native_delegate, in Launch()
127 lldb::pid_t pid, NativeProcessProtoco in Attach()
126 Attach(lldb::pid_t pid,NativeProcessProtocol::NativeDelegate & native_delegate) Attach() argument
160 NativeProcessFreeBSD(::pid_t pid,int terminal_fd,NativeDelegate & delegate,const ArchSpec & arch,MainLoop & mainloop) NativeProcessFreeBSD() argument
178 MonitorCallback(lldb::pid_t pid,int signal) MonitorCallback() argument
189 MonitorExited(lldb::pid_t pid,WaitStatus status) MonitorExited() argument
203 MonitorSIGSTOP(lldb::pid_t pid) MonitorSIGSTOP() argument
212 MonitorSIGTRAP(lldb::pid_t pid) MonitorSIGTRAP() argument
375 MonitorSignal(lldb::pid_t pid,int signal) MonitorSignal() argument
403 PtraceWrapper(int req,lldb::pid_t pid,void * addr,int data,int * result) PtraceWrapper() argument
[all...]
/llvm-project/compiler-rt/test/hwasan/TestCases/
H A Dprint-memory-usage.c43 // CHECK: HWASAN pid: [[PID:[0-9]*]] rss: {{.*}} threads: 1 stacks: [[STACKS:[0-9]*]] thr_aux: {{.*}} stack_depot: {{.*}} uniq_stacks: [[UNIQ_STACKS:[0-9]*]] heap: [[HEAP:[0-9]*]] in main()
48 // CHECK: HWASAN pid: [[PID]] rss: {{.*}} threads: 1 stacks: [[STACKS]] thr_aux: {{.*}} stack_depot: {{.*}} in main()
53 // CHECK: HWASAN pid: [[PID]] rss: {{.*}} threads: 1 stacks: [[STACKS]] thr_aux: {{.*}} stack_depot: {{.*}} uniq_stacks: {{.*}} heap: [[HEAP]] in main()
65 // CHECK: HWASAN pid: [[PID]] rss: {{.*}} threads: 4 stacks: in main()
72 // CHECK: HWASAN pid: [[PID]] rs in main()
[all...]
/llvm-project/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/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/llvm/lib/XRay/
H A DFDRTraceExpander.cpp44 CurrentRecord.PId = PID; in visit()
59 CurrentRecord.PId = PID; in visit()
74 CurrentRecord.PId = PID; in visit()
91 PID = R.pid(); in visit()
100 PID = R.tid(); in visit()
117 CurrentRecord.PId = PID; in visit()

12345678910>>...24