Home
last modified time | relevance | path

Searched refs:pid_ (Results 1 – 25 of 50) sorted by relevance

12

/external/libbrillo/brillo/
Dprocess.cc52 : pid_(0), in ProcessImpl()
330 if (pid_ == 0) { in Wait()
334 if (HANDLE_EINTR(waitpid(pid_, &status, 0)) < 0) { in Wait()
336 LOG(ERROR) << "Problem waiting for pid " << pid_ << ": " << saved_errno; in Wait()
339 pid_t old_pid = pid_; in Wait()
361 return pid_; in pid()
365 if (pid_ == 0) { in Kill()
370 if (kill(pid_, signal) < 0) { in Kill()
371 PLOG(ERROR) << "Unable to send signal to " << pid_; in Kill()
377 pid_t w = waitpid(pid_, &status, WNOHANG); in Kill()
[all …]
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_stoptheworld_netbsd_libcdep.cpp79 : arg(arg), pid_(pid) { in ThreadSuspender()
92 pid_t pid_; member in __sanitizer::ThreadSuspender
97 if (!internal_iserror(internal_ptrace(PT_DETACH, pid_, (void *)(uptr)1, 0), in ResumeAllThreads()
99 VReport(2, "Detached from process %d.\n", pid_); in ResumeAllThreads()
101 VReport(1, "Could not detach from process %d (errno %d).\n", pid_, pterrno); in ResumeAllThreads()
106 internal_ptrace(PT_KILL, pid_, nullptr, 0); in KillAllThreads()
111 if (internal_iserror(internal_ptrace(PT_ATTACH, pid_, nullptr, 0), in SuspendAllThreads()
113 Printf("Could not attach to process %d (errno %d).\n", pid_, pterrno); in SuspendAllThreads()
119 HANDLE_EINTR(waitpid_status, internal_waitpid(pid_, &status, 0)); in SuspendAllThreads()
121 VReport(2, "Attached to process %d.\n", pid_); in SuspendAllThreads()
[all …]
/external/libchrome/base/debug/
Dactivity_analyzer.h40 ThreadKey(int64_t pid, int64_t tid) : pid_(pid), tid_(tid) {} in ThreadKey()
43 if (pid_ != rhs.pid_)
44 return pid_ < rhs.pid_;
49 return (pid_ == rhs.pid_ && tid_ == rhs.tid_);
53 int64_t pid_;
/external/bcc/tests/cc/
Dtest_usdt_probes.cc89 pid_t pid_; member in ChildProcess
93 pid_ = fork(); in ChildProcess()
94 if (pid_ == 0) { in ChildProcess()
100 if (kill(pid_, 0) < 0) in ChildProcess()
101 pid_ = -1; in ChildProcess()
108 kill(pid_, SIGKILL); in ~ChildProcess()
109 if (waitpid(pid_, &status, 0) != pid_) in ~ChildProcess()
114 bool spawned() const { return pid_ > 0; } in spawned()
115 pid_t pid() const { return pid_; } in pid()
/external/perfetto/src/profiling/symbolizer/
Dsubprocess_posix.cc40 if ((pid_ = fork()) == 0) { in Subprocess()
49 PERFETTO_CHECK(pid_ != -1); in Subprocess()
55 if (pid_ != -1) { in ~Subprocess()
56 kill(pid_, SIGKILL); in ~Subprocess()
58 PERFETTO_EINTR(waitpid(pid_, &wstatus, 0)); in ~Subprocess()
/external/google-breakpad/src/client/mac/crash_generation/
Dclient_info.h37 explicit ClientInfo(pid_t pid) : pid_(pid) {} in ClientInfo()
39 pid_t pid() const { return pid_; } in pid()
42 pid_t pid_;
/external/google-breakpad/src/client/linux/crash_generation/
Dclient_info.h41 pid_(pid) {} in ClientInfo()
44 pid_t pid() const { return pid_; } in pid()
48 pid_t pid_; variable
/external/tensorflow/tensorflow/core/platform/default/
Dsubprocess.cc70 : running_(false), pid_(-1), exec_path_(nullptr), exec_argv_(nullptr) { in SubProcess()
83 pid_ = -1; in ~SubProcess()
210 pid_ = fork(); in Start()
211 if (pid_ < 0) { in Start()
217 if (pid_ > 0) { in Start()
306 pid_t pid = pid_; in WaitInternal()
327 if ((running_ == running) && (pid_ == pid)) { in WaitInternal()
329 pid_ = -1; in WaitInternal()
338 pid_t pid = pid_; in Kill()
/external/bcc/src/cc/usdt/
Dusdt.cc60 pid_(pid), in Probe()
74 return (pid_ && in resolve_global_address()
75 !bcc_resolve_global_addr(*pid_, bin_path.c_str(), addr, global)); in resolve_global_address()
83 assert(pid_); in add_to_semaphore()
94 std::string procmem = tfm::format("/proc/%d/mem", pid_.value()); in add_to_semaphore()
124 if (!pid_) in enable()
142 assert(pid_); in disable()
188 pid_)) in usdt_getarg()
202 pid_)) in usdt_getarg()
258 new Probe(binpath, probe->provider, probe->name, probe->semaphore, pid_, in add_probe()
[all …]
/external/bcc/src/cc/api/
DBPF.cc719 pid_(-1), in USDT()
728 pid_(pid), in USDT()
738 pid_(pid), in USDT()
746 pid_(usdt.pid_), in USDT()
754 pid_(usdt.pid_), in USDT()
765 (binary_path_ == other.binary_path_) && (pid_ == other.pid_) && in operator ==()
771 if (!binary_path_.empty() && pid_ > 0) in init()
772 ctx.reset(new ::USDT::Context(pid_, binary_path_)); in init()
775 else if (pid_ > 0) in init()
776 ctx.reset(new ::USDT::Context(pid_)); in init()
DBPF.h261 std::to_string(pid_) + " for probe " + probe_func_; in print_name()
266 << usdt.binary_path_ << " PID " << usdt.pid_ << " for probe "
274 pid_t pid_; variable
/external/google-breakpad/src/client/solaris/handler/
Dsolaris_lwp.h117 int getpid() const { return this->pid_; } in getpid()
155 int pid_;
Dsolaris_lwp.cc229 SolarisLwp::SolarisLwp(int pid) : pid_(pid) { in SolarisLwp()
237 return IterateLwpAll(pid_, &callback_param); in ControlAllLwps()
241 return IterateLwpAll(pid_, NULL); in GetLwpCount()
/external/strace/
Dkcmp.c49 #define PRINT_FIELD_PIDFD(prefix_, where_, field_, tcp_, pid_) \ argument
52 printpidfd((tcp_), (pid_), (where_).field_); \
/external/google-breakpad/src/client/linux/minidump_writer/
Dlinux_dumper.cc282 : pid_(pid), in LinuxDumper()
328 if (pid_ == sys_getpid()) { in ElfFileIdentifierForMapping()
332 CopyFromProcess(linux_gate, pid_, in ElfFileIdentifierForMapping()
517 if (!BuildProcPath(auxv_path, pid_, "auxv")) { in ReadAuxv()
543 if (!BuildProcPath(maps_path, pid_, "maps")) in EnumerateMappings()
652 CopyFromProcess(ehdr, pid_, in GetLoadedElfHeader()
672 CopyFromProcess(&phdr, pid_, in ParseLoadedElfProgramHeaders()
696 CopyFromProcess(&dyn, pid_, in HasAndroidPackedRelocations()
944 if (!BuildProcPath(exe_link, pid_, "exe")) in HandleDeletedFileInMapping()
Dlinux_dumper.h107 if (threads_[i] == pid_) return i; in GetMainThreadIndex()
236 const pid_t pid_; variable
/external/google-breakpad/src/client/windows/crash_generation/
Dclient_info.h60 DWORD pid() const { return pid_; } in pid()
109 DWORD pid_; variable
Dclient_info.cc46 pid_(pid), in ClientInfo()
62 process_handle_ = OpenProcess(GENERIC_ALL, FALSE, pid_); in Initialize()
/external/libchrome/base/process/
Dprocess_iterator.h47 ProcessId pid() const { return pid_; }
55 ProcessId pid_;
/external/bcc/src/cc/
Dbcc_syms.cc105 : pid_(pid), procstat_(pid), mount_ns_instance_(new ProcMountNS(pid_)) { in ProcSyms()
126 std::string exe = ebpf::get_pid_exe(pid_); in load_exe()
141 bcc_procutils_each_module(pid_, _add_module, this); in load_modules()
146 mount_ns_instance_.reset(new ProcMountNS(pid_)); in refresh()
Dusdt.h191 optional<int> pid_; variable
245 optional<int> pid_; variable
265 optional<int> pid() const { return pid_; } in pid()
/external/mesa3d/include/android_stub/backtrace/
DBacktrace.h161 pid_t Pid() const { return pid_; } in Pid()
200 pid_t pid_; variable
/external/perfetto/src/trace_processor/importers/proto/
Dpacket_sequence_state.h281 pid_ = pid; in SetThreadDescriptor()
317 int32_t pid() const { return pid_; } in pid()
343 int32_t pid_ = 0; variable
/external/perfetto/src/traced/probes/ftrace/
Dcompact_sched.h133 protozero::PackedVarInt& pid() { return pid_; } in pid()
156 protozero::PackedVarInt pid_; variable
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_stoptheworld_linux_libcdep.cc103 , pid_(pid) { in ThreadSuspender()
115 pid_t pid_; member in __sanitizer::ThreadSuspender
191 ThreadLister thread_lister(pid_); in SuspendAllThreads()

12