Home
last modified time | relevance | path

Searched refs:pid_t (Results 1 – 25 of 265) sorted by relevance

1234567891011

/llvm-project-15.0.7/lldb/source/Host/linux/
H A DHost.cpp58 ProcessState &State, ::pid_t &TracerPid, in GetStatusInfo()
59 ::pid_t &Tgid) { in GetStatusInfo()
92 ::pid_t PPid; in GetStatusInfo()
211 static bool GetProcessAndStatInfo(::pid_t pid, in GetProcessAndStatInfo()
214 ::pid_t tgid; in GetProcessAndStatInfo()
239 const lldb::pid_t our_pid = getpid(); in FindProcessesImpl()
246 lldb::pid_t pid = atoi(direntry->d_name); in FindProcessesImpl()
252 ::pid_t tracerpid; in FindProcessesImpl()
309 ::pid_t tracerpid; in GetProcessInfo()
320 llvm::Optional<lldb::pid_t> lldb_private::getPIDForTID(lldb::pid_t tid) { in getPIDForTID()
[all …]
/llvm-project-15.0.7/lldb/source/Plugins/Process/gdb-remote/
H A DGDBRemoteCommunicationServerPlatform.h58 bool AssociatePortWithProcess(uint16_t port, lldb::pid_t pid);
65 bool FreePortForProcess(lldb::pid_t pid);
72 std::map<uint16_t, lldb::pid_t> m_port_map;
93 lldb::pid_t &pid, llvm::Optional<uint16_t> &port,
96 void SetPendingGdbServer(lldb::pid_t pid, uint16_t port,
103 std::set<lldb::pid_t> m_spawned_pids;
108 lldb::pid_t pid;
132 bool KillSpawnedProcess(lldb::pid_t pid);
134 void DebugserverProcessReaped(lldb::pid_t pid);
H A DGDBRemoteCommunicationServerPlatform.cpp65 pair.second = ~(lldb::pid_t)LLDB_INVALID_PROCESS_ID; in GetNextAvailablePort()
74 uint16_t port, lldb::pid_t pid) { in AssociatePortWithProcess()
84 std::map<uint16_t, lldb::pid_t>::iterator pos = m_port_map.find(port); in FreePort()
93 lldb::pid_t pid) { in FreePortForProcess()
161 const lldb_private::Args &args, std::string hostname, lldb::pid_t &pid, in LaunchGDBServer()
251 lldb::pid_t debugserver_pid = LLDB_INVALID_PROCESS_ID; in Handle_qLaunchGDBServer()
316 lldb::pid_t pid = packet.GetU64(LLDB_INVALID_PROCESS_ID); in Handle_qKillSpawnedProcess()
392 lldb::pid_t pid = m_process_launch_info.GetProcessID(); in Handle_qProcessInfo()
472 lldb::pid_t pid = m_process_launch_info.GetProcessID(); in Handle_qC()
520 lldb::pid_t pid) { in DebugserverProcessReaped()
[all …]
/llvm-project-15.0.7/lldb/source/Plugins/Trace/intel-pt/
H A DPerfContextSwitchDecoder.h67 lldb::pid_t pid, uint64_t start, uint64_t end);
71 lldb::pid_t pid, uint64_t hinted_start,
76 lldb::pid_t pid, uint64_t start,
81 lldb::pid_t pid,
86 lldb::pid_t pid, uint64_t start);
114 lldb::pid_t pid;
120 lldb::pid_t pid) in ThreadContinuousExecution()
145 const std::set<lldb::pid_t> &pids);
/llvm-project-15.0.7/lldb/source/Plugins/Process/NetBSD/
H A DNativeProcessNetBSD.h37 Attach(lldb::pid_t pid, NativeDelegate &native_delegate,
88 static Status PtraceWrapper(int req, lldb::pid_t pid, void *addr = nullptr,
101 NativeProcessNetBSD(::pid_t pid, int terminal_fd, NativeDelegate &delegate,
109 void MonitorCallback(lldb::pid_t pid, int signal);
110 void MonitorExited(lldb::pid_t pid, WaitStatus status);
111 void MonitorSIGSTOP(lldb::pid_t pid);
112 void MonitorSIGTRAP(lldb::pid_t pid);
113 void MonitorSignal(lldb::pid_t pid, int signal);
114 void MonitorClone(::pid_t child_pid, bool is_vfork,
/llvm-project-15.0.7/lldb/source/Plugins/Process/FreeBSD/
H A DNativeProcessFreeBSD.h40 Attach(lldb::pid_t pid, NativeDelegate &native_delegate,
89 static Status PtraceWrapper(int req, lldb::pid_t pid, void *addr = nullptr,
108 NativeProcessFreeBSD(::pid_t pid, int terminal_fd, NativeDelegate &delegate,
116 void MonitorCallback(lldb::pid_t pid, int signal);
117 void MonitorExited(lldb::pid_t pid, WaitStatus status);
118 void MonitorSIGSTOP(lldb::pid_t pid);
119 void MonitorSIGTRAP(lldb::pid_t pid);
120 void MonitorSignal(lldb::pid_t pid, int signal);
121 void MonitorClone(::pid_t child_pid, bool is_vfork,
/llvm-project-15.0.7/lldb/include/lldb/Host/
H A DHost.h65 typedef std::function<void(lldb::pid_t pid,
88 lldb::pid_t pid);
97 static lldb::pid_t GetCurrentProcessID();
99 static void Kill(lldb::pid_t pid, int signo);
160 typedef std::map<lldb::pid_t, bool> TidMap;
161 typedef std::pair<lldb::pid_t, bool> TidPair;
162 static bool FindProcessThreads(const lldb::pid_t pid, TidMap &tids_to_attach);
164 static bool GetProcessInfo(lldb::pid_t pid, ProcessInstanceInfo &proc_info);
/llvm-project-15.0.7/lldb/tools/debugserver/source/MacOSX/
H A DMachProcess.h84 pid_t AttachForDebug(pid_t pid,
96 static uint32_t GetCPUTypeForLocalProcess(pid_t pid);
100 static pid_t PosixSpawnChildForPTraceDebugging(
115 pid_t BoardServiceLaunchForDebug(const char *app_bundle_path,
121 pid_t BoardServiceForkChildForPTraceDebugging(
138 pid_t SBLaunchForDebug(const char *app_bundle_path, char const *argv[],
141 static pid_t SBForkChildForPTraceDebugging(const char *path,
217 pid_t ProcessID() const { return m_pid; } in ProcessID()
219 pid_t SetProcessID(pid_t pid);
355 int GetInferiorAddrSize(pid_t pid);
[all …]
/llvm-project-15.0.7/lldb/source/Plugins/Platform/Android/
H A DPlatformAndroidRemoteGDBServer.h43 std::map<lldb::pid_t, uint16_t> m_port_forwards;
46 bool LaunchGDBServer(lldb::pid_t &pid, std::string &connect_url) override;
48 bool KillSpawnedProcess(lldb::pid_t pid) override;
50 void DeleteForwardPort(lldb::pid_t pid);
52 Status MakeConnectURL(const lldb::pid_t pid, const uint16_t remote_port,
H A DPlatformAndroidRemoteGDBServer.cpp24 static const lldb::pid_t g_remote_platform_pid =
82 bool PlatformAndroidRemoteGDBServer::LaunchGDBServer(lldb::pid_t &pid, in LaunchGDBServer()
101 bool PlatformAndroidRemoteGDBServer::KillSpawnedProcess(lldb::pid_t pid) { in KillSpawnedProcess()
154 void PlatformAndroidRemoteGDBServer::DeleteForwardPort(lldb::pid_t pid) { in DeleteForwardPort()
173 const lldb::pid_t pid, const uint16_t remote_port, in MakeConnectURL()
209 static lldb::pid_t s_remote_gdbserver_fake_pid = 0xffffffffffffffffULL; in ConnectProcess()
/llvm-project-15.0.7/lldb/bindings/interface/
H A DSBAttachInfo.i18 SBAttachInfo (lldb::pid_t pid);
26 lldb::pid_t
30 SetProcessID (lldb::pid_t pid);
101 lldb::pid_t
105 SetParentProcessID (lldb::pid_t pid);
/llvm-project-15.0.7/lldb/include/lldb/API/
H A DSBAttachInfo.h22 SBAttachInfo(lldb::pid_t pid);
67 lldb::pid_t GetProcessID();
69 void SetProcessID(lldb::pid_t pid);
146 lldb::pid_t GetParentProcessID();
148 void SetParentProcessID(lldb::pid_t pid);
/llvm-project-15.0.7/lldb/include/lldb/Utility/
H A DProcessInfo.h34 ProcessInfo(const char *name, const ArchSpec &arch, lldb::pid_t pid);
67 lldb::pid_t GetProcessID() const { return m_pid; } in GetProcessID()
69 void SetProcessID(lldb::pid_t pid) { m_pid = pid; } in SetProcessID()
101 lldb::pid_t m_pid = LLDB_INVALID_PROCESS_ID;
112 ProcessInstanceInfo(const char *name, const ArchSpec &arch, lldb::pid_t pid) in ProcessInstanceInfo()
135 lldb::pid_t GetParentProcessID() const { return m_parent_pid; } in GetParentProcessID()
137 void SetParentProcessID(lldb::pid_t pid) { m_parent_pid = pid; } in SetParentProcessID()
154 lldb::pid_t m_parent_pid = LLDB_INVALID_PROCESS_ID;
/llvm-project-15.0.7/lldb/tools/darwin-threads/
H A Dexamine-threads.c16 int csops(pid_t pid, unsigned int ops, void *useraddr, size_t usersize);
26 pid_t get_pid_for_process_name(const char *procname) { in get_pid_for_process_name()
27 int process_count = proc_listpids(PROC_ALL_PIDS, 0, NULL, 0) / sizeof(pid_t); in get_pid_for_process_name()
34 int all_pids_size = sizeof(pid_t) * (process_count + 3); in get_pid_for_process_name()
35 pid_t *all_pids = (pid_t *)malloc(all_pids_size); in get_pid_for_process_name()
40 proc_listpids(PROC_ALL_PIDS, 0, all_pids, all_pids_size) / sizeof(pid_t); in get_pid_for_process_name()
43 pid_t highest_pid = 0; in get_pid_for_process_name()
77 const char *get_process_name_for_pid(pid_t pid) { in get_process_name_for_pid()
252 int get_proc_threadinfo(pid_t pid, uint64_t thread_handle, in get_proc_threadinfo()
266 pid_t pid = 0; in main()
[all …]
/llvm-project-15.0.7/lldb/source/Plugins/Process/Linux/
H A DSingleStepCheck.h31 ::pid_t m_tid;
38 SingleStepWorkaround(::pid_t tid, cpu_set_t original_set) in SingleStepWorkaround()
42 static std::unique_ptr<SingleStepWorkaround> Get(::pid_t tid);
47 static std::unique_ptr<SingleStepWorkaround> Get(::pid_t tid) {
H A DNativeProcessLinux.h50 Attach(lldb::pid_t pid, NativeDelegate &native_delegate,
132 static Status PtraceWrapper(int req, lldb::pid_t pid, void *addr = nullptr,
162 NativeProcessLinux(::pid_t pid, int terminal_fd, NativeDelegate &delegate,
164 llvm::ArrayRef<::pid_t> tids);
167 static llvm::Expected<std::vector<::pid_t>> Attach(::pid_t pid);
169 static Status SetDefaultPtraceOpts(const lldb::pid_t);
173 void WaitForCloneNotification(::pid_t pid);
251 bool MonitorClone(NativeThreadLinux &parent, lldb::pid_t child_pid,
/llvm-project-15.0.7/compiler-rt/test/msan/
H A Dfork.cpp75 pid_t pid = fork(); in test()
79 pid_t p; in test()
90 pid_t pid = fork(); in main()
100 pid_t p; in main()
/llvm-project-15.0.7/clang/test/Sema/
H A Dpid_t.c7 typedef signed long pid_t; typedef
9 typedef signed int pid_t; typedef
11 pid_t vfork(void);
/llvm-project-15.0.7/compiler-rt/test/dfsan/
H A Dfork.cpp71 pid_t pid = fork(); in test()
75 pid_t p; in test()
87 pid_t pid = fork(); in main()
98 pid_t p; in main()
/llvm-project-15.0.7/clang/test/CXX/dcl.dcl/basic.namespace/namespace.udir/
H A Dp6.cpp5 typedef int pid_t; typedef
7 typedef int pid_t; typedef
10 pid_t x;
/llvm-project-15.0.7/lldb/include/lldb/Host/linux/
H A DSupport.h19 getProcFile(::pid_t pid, ::pid_t tid, const llvm::Twine &file);
22 getProcFile(::pid_t pid, const llvm::Twine &file);
/llvm-project-15.0.7/lldb/include/lldb/Host/windows/
H A DPosixApi.h80 typedef uint32_t pid_t; typedef
96 inline pid_t fork(void) { LLVM_BUILTIN_UNREACHABLE; } in fork()
97 inline pid_t setsid(void) { LLVM_BUILTIN_UNREACHABLE; } in setsid()
/llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/Darwin/
H A Dprint-stack-trace-in-code-loaded-after-fork.cpp31 pid_t pid = fork(); in main()
34 pid_t parent_pid = getpid(); in main()
37 pid_t child = waitpid(pid, &status, /*options=*/0); in main()
/llvm-project-15.0.7/clang/test/Analysis/
H A Dvfork.c10 pid_t pid = vfork(); // expected-warning{{Call to function 'vfork' is insecure}} in f1()
62 pid_t pid = vfork(); // expected-warning{{Call to function 'vfork' is insecure}} in f2()
118 pid_t pid; in f4()
/llvm-project-15.0.7/lldb/source/Host/common/
H A DHost.cpp99 MonitorChildProcessThreadFunction(::pid_t pid,
103 const Host::MonitorChildProcessCallback &callback, lldb::pid_t pid) { in StartMonitoringChildProcess()
160 MonitorChildProcessThreadFunction(::pid_t pid, in MonitorChildProcessThreadFunction()
182 const ::pid_t wait_pid = ::waitpid(pid, &status, 0); in MonitorChildProcessThreadFunction()
226 lldb::pid_t Host::GetCurrentProcessID() { return ::getpid(); } in GetCurrentProcessID()
351 bool Host::FindProcessThreads(const lldb::pid_t pid, TidMap &tids_to_attach) { in FindProcessThreads()
360 lldb::pid_t pid = LLDB_INVALID_PROCESS_ID;
366 MonitorShellCommand(std::shared_ptr<ShellInfo> shell_info, lldb::pid_t pid, in MonitorShellCommand()
475 const lldb::pid_t pid = launch_info.GetProcessID(); in RunShellCommand()
546 void Host::Kill(lldb::pid_t pid, int signo) { ::kill(pid, signo); } in Kill()

1234567891011