Home
last modified time | relevance | path

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

12345678910>>...27

/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_linux_test.cc47 pid_t reported_tid;
66 pid_t tid; in SetUp()
83 void SpawnTidReporter(pthread_t *pthread_id, pid_t *tid);
88 std::vector<pid_t> tids_;
110 pid_t *tid) { in SpawnTidReporter()
123 static std::vector<pid_t> ReadTidsToVector(ThreadLister *thread_lister) { in ReadTidsToVector()
124 std::vector<pid_t> listed_tids; in ReadTidsToVector()
125 pid_t tid; in ReadTidsToVector()
132 static bool Includes(std::vector<pid_t> first, std::vector<pid_t> second) { in Includes()
139 static bool HasElement(std::vector<pid_t> vector, pid_t element) { in HasElement()
[all …]
/external/libmicrohttpd/src/testspdy/
Dtest_proxies.c47 pid_t parent;
48 pid_t child_mhd;
49 pid_t child_spdy2http;
50 pid_t child_mhd2spdy;
51 pid_t child_curl;
77 pid_t au_fork() in au_fork()
79 pid_t child = fork(); in au_fork()
95 pid_t wpid; in main()
106 pid_t devnull; in main()
130 pid_t devnull; in main()
[all …]
/external/ltrace/
Dbackend.h47 char *pid2name(pid_t pid);
50 pid_t process_leader(pid_t pid);
57 int process_tasks(pid_t pid, pid_t **ret_tasks, size_t *ret_n);
61 int process_stopped(pid_t pid);
64 enum process_status process_status(pid_t pid);
67 int wait_for_proc(pid_t pid);
70 int task_kill(pid_t pid, int sig);
81 int trace_pid(pid_t pid);
84 void untrace_pid(pid_t pid);
124 void continue_process(pid_t pid);
[all …]
/external/google-breakpad/src/client/linux/minidump_writer/
Dminidump_writer.h80 bool WriteMinidump(const char* minidump_path, pid_t crashing_process,
83 bool WriteMinidump(int minidump_fd, pid_t crashing_process,
91 bool WriteMinidump(const char* minidump_path, pid_t process,
92 pid_t process_blamed_thread);
96 bool WriteMinidump(const char* minidump_path, pid_t crashing_process,
100 bool WriteMinidump(int minidump_fd, pid_t crashing_process,
107 pid_t crashing_process,
112 pid_t crashing_process,
Dlinux_dumper.h72 explicit LinuxDumper(pid_t pid);
91 const wasteful_vector<pid_t> &threads() { return threads_; } in threads()
106 virtual bool CopyFromProcess(void* dest, pid_t child, const void* src,
113 virtual bool BuildProcPath(char* path, pid_t pid, const char* node) const = 0;
131 pid_t crash_thread() const { return crash_thread_; } in crash_thread()
132 void set_crash_thread(pid_t crash_thread) { crash_thread_ = crash_thread; } in set_crash_thread()
164 const pid_t pid_;
173 pid_t crash_thread_;
178 wasteful_vector<pid_t> threads_;
Dlinux_ptrace_dumper_unittest.cc112 pid_t child_pid_;
247 const pid_t pid = getppid(); in TEST_F()
376 pid_t child_pid = fork();
439 pid_t* process_tid_location = (pid_t*)(one_thread.regs.uregs[3]);
441 pid_t* process_tid_location = (pid_t*)(one_thread.regs.regs[3]);
443 pid_t* process_tid_location = (pid_t*)(one_thread.regs.ecx);
445 pid_t* process_tid_location = (pid_t*)(one_thread.regs.rcx);
447 pid_t* process_tid_location =
448 reinterpret_cast<pid_t*>(one_thread.regs.regs[1]);
452 pid_t one_thread_id;
/external/lldb/include/lldb/Host/
DHost.h35 lldb::pid_t pid,
82 lldb::pid_t pid,
209 static lldb::pid_t
285 GetThreadName (lldb::pid_t pid, lldb::tid_t tid);
304 SetThreadName (lldb::pid_t pid, lldb::tid_t tid, const char *name);
325 SetShortThreadName (lldb::pid_t pid, lldb::tid_t tid, const char *name, size_t len);
440 typedef std::map<lldb::pid_t, bool> TidMap;
441 typedef std::pair<lldb::pid_t, bool> TidPair;
443 FindProcessThreads (const lldb::pid_t pid, TidMap &tids_to_attach);
446 GetProcessInfo (lldb::pid_t pid, ProcessInstanceInfo &proc_info);
[all …]
/external/google-breakpad/src/common/linux/tests/
Dcrash_generator.cc59 pid_t* thread_id_ptr;
73 int tkill(pid_t tid, int sig) { in tkill()
83 volatile pid_t thread_id = gettid(); in thread_function()
123 pid_t CrashGenerator::GetThreadId(unsigned index) const { in GetThreadId()
124 return reinterpret_cast<pid_t*>(shared_memory_)[index]; in GetThreadId()
127 pid_t* CrashGenerator::GetThreadIdPointer(unsigned index) { in GetThreadIdPointer()
128 return reinterpret_cast<pid_t*>(shared_memory_) + index; in GetThreadIdPointer()
173 pid_t* child_pid) { in CreateChildCrash()
180 if (!MapSharedMemory(num_threads * sizeof(pid_t))) { in CreateChildCrash()
185 pid_t pid = fork(); in CreateChildCrash()
[all …]
Dcrash_generator.h73 int crash_signal, pid_t* child_pid);
77 pid_t GetThreadId(unsigned index) const;
83 bool CopyProcFiles(pid_t pid, const char* path) const;
102 pid_t* GetThreadIdPointer(unsigned index);
/external/elfutils/libdwfl/
Dlinux-pid-attach.c47 linux_proc_pid_is_stopped (pid_t pid) in linux_proc_pid_is_stopped()
72 __libdwfl_ptrace_attach (pid_t tid, bool *tid_was_stoppedp) in __libdwfl_ptrace_attach()
121 pid_t tid = pid_arg->tid_attached; in pid_memory_read()
159 static pid_t
192 pid_t tid = tidl; in pid_next_thread()
204 pid_getthread (Dwfl *dwfl __attribute__ ((unused)), pid_t tid, in pid_getthread()
239 pid_t tid = INTUSE(dwfl_thread_tid) (thread); in pid_set_initial_registers()
262 __libdwfl_ptrace_detach (pid_t tid, bool tid_was_stopped) in __libdwfl_ptrace_detach()
277 pid_t tid = INTUSE(dwfl_thread_tid) (thread); in pid_thread_detach()
295 dwfl_linux_proc_attach (Dwfl *dwfl, pid_t pid, bool assume_ptrace_stopped) in dwfl_linux_proc_attach()
[all …]
/external/libbrillo/brillo/
Dprocess.h132 virtual pid_t pid() = 0;
143 virtual void Reset(pid_t new_pid) = 0;
150 virtual pid_t Release() = 0;
153 static bool ProcessExists(pid_t pid);
182 virtual pid_t pid();
184 virtual void Reset(pid_t pid);
186 virtual pid_t Release();
202 void UpdatePid(pid_t new_pid);
214 pid_t pid_;
Dprocess_reaper_unittest.cc21 pid_t ForkChildAndExit(int exit_code) { in ForkChildAndExit()
22 pid_t pid = fork(); in ForkChildAndExit()
30 pid_t ForkChildAndKill(int sig) { in ForkChildAndKill()
31 pid_t pid = fork(); in ForkChildAndKill()
76 pid_t pid = ForkChildAndExit(123); in TEST_F()
93 pid_t pid = ForkChildAndExit(exit_value); in TEST_F()
111 pid_t pid = ForkChildAndKill(SIGKILL); in TEST_F()
122 pid_t pid = ForkChildAndExit(0); in TEST_F()
/external/lldb/source/Host/linux/
DHost.cpp47 lldb::pid_t ppid; // Parent Process ID
52 …bool GetProcessAndStatInfo (lldb::pid_t pid, ProcessInstanceInfo &process_info, ProcessStatInfo &s…
59 ReadProcPseudoFile (lldb::pid_t pid, const char *name) in ReadProcPseudoFile()
111 ReadProcPseudoFileStat (lldb::pid_t pid, ProcessStatInfo& stat_info) in ReadProcPseudoFileStat()
158 GetLinuxProcessUserAndGroup (lldb::pid_t pid, ProcessInstanceInfo &process_info, lldb::pid_t &trace… in GetLinuxProcessUserAndGroup()
254 const lldb::pid_t our_pid = getpid(); in FindProcesses()
262 lldb::pid_t pid = atoi (direntry->d_name); in FindProcesses()
268 lldb::pid_t tracerpid; in FindProcesses()
300 Host::FindProcessThreads (const lldb::pid_t pid, TidMap &tids_to_attach) in FindProcessThreads()
355 GetProcessAndStatInfo (lldb::pid_t pid, ProcessInstanceInfo &process_info, ProcessStatInfo &stat_in… in GetProcessAndStatInfo()
[all …]
/external/lldb/source/Plugins/Process/Linux/
DProcessMonitor.h61 lldb::pid_t pid,
72 lldb::pid_t
193 lldb::pid_t m_pid;
253 lldb::pid_t pid);
257 lldb::pid_t m_pid; // pid of the process to be attached.
270 SetDefaultPtraceOpts(const lldb::pid_t);
280 lldb::pid_t pid, bool exited, int signal, int status);
284 const siginfo_t *info, lldb::pid_t pid);
288 const siginfo_t *info, lldb::pid_t pid);
/external/lldb/tools/debugserver/source/MacOSX/
DMachProcess.h48 pid_t AttachForDebug (pid_t pid, char *err_str, size_t err_len);
49 pid_t LaunchForDebug (const char *path,
61 static uint32_t GetCPUTypeForLocalProcess (pid_t pid);
62 …static pid_t ForkChildForPTraceDebugging (const char *path, char const *argv[], char co…
63 static pid_t PosixSpawnChildForPTraceDebugging (const char *path,
80pid_t SBLaunchForDebug (const char *app_bundle_path, char const *argv[], char co…
81 …static pid_t SBForkChildForPTraceDebugging (const char *path, char const *argv[], char …
159 pid_t ProcessID () const { return m_pid; } in ProcessID()
161 pid_t SetProcessID (pid_t pid);
268 pid_t m_pid; // Process ID of child process
/external/kernel-headers/original/uapi/linux/
Delfcore.h51 pid_t pr_pid;
52 pid_t pr_ppid;
53 pid_t pr_pgrp;
54 pid_t pr_sid;
87 pid_t pr_pid, pr_ppid, pr_pgrp, pr_sid;
/external/libchrome/base/process/
Dinternal_linux.h31 base::FilePath GetProcPidDir(pid_t pid);
37 pid_t ProcDirSlotToPid(const char* d_name);
41 bool ReadProcStats(pid_t pid, std::string* buffer);
77 int64_t ReadProcStatsAndGetFieldAsInt64(pid_t pid, ProcStatsFields field_num);
80 size_t ReadProcStatsAndGetFieldAsSizeT(pid_t pid,
/external/libbrillo/brillo/minijail/
Dminijail.h62 virtual bool Run(struct minijail* jail, std::vector<char*> args, pid_t* pid);
72 pid_t* pid,
78 pid_t* pid,
86 pid_t* pid);
96 pid_t* pid,
102 pid_t* pid,
Dminijail.cc73 bool Minijail::Run(struct minijail* jail, vector<char*> args, pid_t* pid) { in Run()
78 pid_t pid; in RunSync()
88 pid_t* pid, in RunPipe()
101 pid_t* pid, in RunPipes()
116 pid_t* pid) { in RunAndDestroy()
132 pid_t* pid, in RunPipeAndDestroy()
141 pid_t* pid, in RunPipesAndDestroy()
/external/libchrome/sandbox/linux/services/
Dsyscall_wrappers.h27 SANDBOX_EXPORT pid_t sys_getpid(void);
29 SANDBOX_EXPORT pid_t sys_gettid(void);
38 pid_t* ptid,
39 pid_t* ctid,
51 SANDBOX_EXPORT int sys_prlimit64(pid_t pid,
/external/lldb/source/Plugins/Process/FreeBSD/
DProcessMonitor.h61 lldb::pid_t pid,
67 lldb::pid_t
201 lldb::pid_t m_pid;
261 lldb::pid_t pid);
265 lldb::pid_t m_pid; // pid of the process to be attached.
285 lldb::pid_t pid, bool exited, int signal, int status);
289 const siginfo_t *info, lldb::pid_t pid);
293 const siginfo_t *info, lldb::pid_t pid);
/external/lldb/tools/darwin-threads/
Dexamine-threads.c20 pid_t
23 int process_count = proc_listpids (PROC_ALL_PIDS, 0, NULL, 0) / sizeof (pid_t); in get_pid_for_process_name()
31 int all_pids_size = sizeof (pid_t) * (process_count + 3); in get_pid_for_process_name()
32 pid_t *all_pids = (pid_t *) malloc (all_pids_size); in get_pid_for_process_name()
35 process_count = proc_listpids (PROC_ALL_PIDS, 0, all_pids, all_pids_size) / sizeof (pid_t); in get_pid_for_process_name()
38 pid_t highest_pid = 0; in get_pid_for_process_name()
77 get_process_name_for_pid (pid_t pid) in get_process_name_for_pid()
98 get_kinfo_proc_for_pid (pid_t pid, const char *process_name) in get_kinfo_proc_for_pid()
255 get_proc_threadinfo (pid_t pid, uint64_t thread_handle, struct proc_threadinfo *pth) in get_proc_threadinfo()
272 pid_t pid = 0; in main()
[all …]
/external/selinux/libselinux/src/
Dprocattr.c25 static pid_t gettid(void) in gettid()
67 static int openattr(pid_t pid, const char *attr, int flags) in openattr()
71 pid_t tid; in openattr()
96 pid_t pid, const char *attr) in getprocattrcon_raw()
179 pid_t pid, const char *attr) in getprocattrcon()
195 pid_t pid, const char *attr) in setprocattrcon_raw()
264 pid_t pid, const char *attr) in setprocattrcon()
304 int get##fn##_raw(pid_t pid, char **c) \
308 int get##fn(pid_t pid, char **c) \
/external/bison/lib/
Dspawn.in.h90 pid_t _pgrp;
178 (pid_t *_Restrict_ __pid,
186 (pid_t *_Restrict_ __pid,
195 (pid_t *_Restrict_ __pid,
204 (pid_t *_Restrict_ __pid,
230 (pid_t *__pid, const char *__file,
236 (pid_t *__pid, const char *__file,
243 (pid_t *__pid, const char *__file,
250 (pid_t *__pid, const char *__file,
525 pid_t *_Restrict_ __pgroup)
[all …]
/external/libchrome/sandbox/linux/seccomp-bpf-helpers/
Dsyscall_parameters_restrictions.h60 SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictKillTarget(pid_t target_pid,
68 SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictGetSetpriority(pid_t target_pid);
78 SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictSchedTarget(pid_t target_pid,
83 SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictPrlimit64(pid_t target_pid);

12345678910>>...27