Home
last modified time | relevance | path

Searched defs:tid (Results 1 – 25 of 114) sorted by relevance

12345

/system/unwinding/libunwindstack/benchmarks/
Dthread_unwind_benchmarks.cpp30 void ThreadCall6(std::atomic_int* tid, std::atomic_bool* done) { in ThreadCall6()
37 void ThreadCall5(std::atomic_int* tid, std::atomic_bool* done) { in ThreadCall5()
41 void ThreadCall4(std::atomic_int* tid, std::atomic_bool* done) { in ThreadCall4()
45 void ThreadCall3(std::atomic_int* tid, std::atomic_bool* done) { in ThreadCall3()
49 void ThreadCall2(std::atomic_int* tid, std::atomic_bool* done) { in ThreadCall2()
53 void ThreadCall1(std::atomic_int* tid, std::atomic_bool* done) { in ThreadCall1()
58 std::atomic_int tid(0); in BM_thread_unwind() local
/system/memory/libmemunreachable/
DThreadCapture.cpp138 pid_t tid = atoi(dirent->d_name); in ListThreads() local
179 void ThreadCaptureImpl::PtraceDetach(pid_t tid, unsigned int signal) { in PtraceDetach()
188 int ThreadCaptureImpl::PtraceAttach(pid_t tid) { in PtraceAttach()
211 bool ThreadCaptureImpl::PtraceThreadInfo(pid_t tid, ThreadInfo& thread_info) { in PtraceThreadInfo()
251 int ThreadCaptureImpl::CaptureThread(pid_t tid) { in CaptureThread()
297 bool ThreadCaptureImpl::ReleaseThread(pid_t tid) { in ReleaseThread()
305 bool ThreadCaptureImpl::ReleaseThread(pid_t tid, unsigned int signal) { in ReleaseThread()
355 bool ThreadCapture::ReleaseThread(pid_t tid) { in ReleaseThread()
/system/media/audio_utils/
Dthreads.cpp34 status_t set_thread_priority(pid_t tid, int priority) { in set_thread_priority()
72 int get_thread_priority(int tid) { in get_thread_priority()
90 status_t set_thread_affinity(pid_t tid, const std::bitset<kMaxCpus>& mask) { in set_thread_affinity()
105 std::bitset<kMaxCpus> get_thread_affinity(pid_t tid) { in get_thread_affinity()
/system/extras/memory_replay/
DThreads.cpp74 Thread* Threads::CreateThread(pid_t tid) { in CreateThread()
93 Thread* Threads::FindThread(pid_t tid) { in FindThread()
120 size_t Threads::GetHashEntry(pid_t tid) { in GetHashEntry()
124 Thread* Threads::FindEmptyEntry(pid_t tid) { in FindEmptyEntry()
/system/extras/simpleperf/
DCallChainJoiner.cpp45 void LRUCache::AddCallChain(pid_t tid, std::vector<uint64_t>& ips, std::vector<uint64_t>& sps) { in AddCallChain()
112 CacheNode* LRUCache::GetNode(uint32_t tid, uint64_t ip, uint64_t sp) { in GetNode()
177 static bool WriteCallChain(FILE* fp, pid_t pid, pid_t tid, CallChainJoiner::ChainType type, in WriteCallChain()
205 static bool ReadCallChain(FILE* fp, pid_t& pid, pid_t& tid, CallChainJoiner::ChainType& type, in ReadCallChain()
231 static bool ReadCallChainInReverseOrder(FILE* fp, pid_t& pid, pid_t& tid, in ReadCallChainInReverseOrder()
288 bool CallChainJoiner::AddCallChain(pid_t pid, pid_t tid, ChainType type, in AddCallChain()
339 pid_t tid; in JoinCallChains() local
381 bool CallChainJoiner::GetNextCallChain(pid_t& pid, pid_t& tid, ChainType& type, in GetNextCallChain()
DCallChainJoiner_test.cpp26 static bool JoinCallChain(LRUCache& cache, uint32_t tid, const std::vector<uint64_t>& input_ip, in JoinCallChain()
185 pid_t tid; in TEST_F() local
246 pid_t tid; in TEST_F() local
265 pid_t tid; in TEST_F() local
Dthread_tree.cpp44 void ThreadTree::SetThreadName(int pid, int tid, const std::string& comm) { in SetThreadName()
52 bool ThreadTree::ForkThread(int pid, int tid, int ppid, int ptid) { in ForkThread()
85 ThreadEntry* ThreadTree::FindThreadOrNew(int pid, int tid) { in FindThreadOrNew()
96 ThreadEntry* ThreadTree::CreateThread(int pid, int tid) { in CreateThread()
127 void ThreadTree::ExitThread(int pid, int tid) { in ExitThread()
168 void ThreadTree::AddThreadMap(int pid, int tid, uint64_t start_addr, uint64_t len, uint64_t pgoff, in AddThreadMap()
/system/core/libprocessgroup/
Dsched_policy.cpp42 int set_cpuset_policy(pid_t tid, SchedPolicy policy) { in set_cpuset_policy()
70 int set_sched_policy(pid_t tid, SchedPolicy policy) { in set_sched_policy()
155 static int getCGroupSubsys(pid_t tid, const char* subsys, std::string& subgroup) { in getCGroupSubsys()
188 int get_sched_policy(pid_t tid, SchedPolicy* policy) { in get_sched_policy()
/system/unwinding/libunwindstack/
DThreadEntry.cpp37 ThreadEntry::ThreadEntry(pid_t tid) : tid_(tid), ref_count_(1), wait_value_(0) { in ThreadEntry()
42 ThreadEntry* ThreadEntry::Get(pid_t tid, bool create) { in Get()
88 bool ThreadEntry::Wait(WaitType type, pid_t tid) { in Wait()
DAndroidUnwinder.cpp127 bool AndroidUnwinder::Unwind(std::optional<pid_t> tid, AndroidUnwinderData& data) { in Unwind()
179 bool AndroidLocalUnwinder::InternalUnwind(std::optional<pid_t> tid, AndroidUnwinderData& data) { in InternalUnwind()
227 bool AndroidRemoteUnwinder::InternalUnwind(std::optional<pid_t> tid, AndroidUnwinderData& data) { in InternalUnwind()
DThreadUnwinder.cpp86 ThreadEntry* ThreadUnwinder::SendSignalToThread(int signal, pid_t tid) { in SendSignalToThread()
149 void ThreadUnwinder::UnwindWithSignal(int signal, pid_t tid, std::unique_ptr<Regs>* initial_regs, in UnwindWithSignal()
/system/unwinding/libunwindstack/tools/
Dunwind_for_offline.cpp79 bool CreateAndChangeDumpDir(std::filesystem::path thread_dir, pid_t tid, bool is_main_thread) { in CreateAndChangeDumpDir()
104 bool SaveStack(pid_t tid, const std::vector<std::pair<uint64_t, uint64_t>>& stacks, in SaveStack()
179 bool CreateElfFromMemory(pid_t tid, unwindstack::MapInfo* map_info, std::string* name) { in CreateElfFromMemory()
217 bool CopyMapInfo(pid_t tid, unwindstack::MapInfo* map_info, in CopyMapInfo()
263 void SaveMapInfo(FILE* maps_fp, pid_t tid, unwindstack::MapInfo* map_info, in SaveMapInfo()
275 bool SaveData(pid_t tid, const std::filesystem::path& cwd, bool is_main_thread, FILE* output_fp) { in SaveData()
416 for (const pid_t& tid : proc.tids()) { in main() local
/system/unwinding/libunwindstack/utils/tests/
DProcessTracerTest.cpp153 static void VerifyState(pid_t tid, bool running) { in VerifyState()
173 for (const pid_t& tid : proc.tids()) { in VerifyState() local
200 for (const pid_t& tid : proc.tids()) { in TEST_P() local
213 for (const pid_t& tid : proc.tids()) { in TEST_P() local
241 for (const pid_t& tid : proc.tids()) { in TEST_P() local
251 for (const pid_t& tid : proc.tids()) { in TEST_P() local
/system/unwinding/libunwindstack/utils/
DProcessTracer.cpp100 bool ProcessTracer::Detach(pid_t tid) { in Detach()
121 bool ProcessTracer::Attach(pid_t tid) { in Attach()
157 for (pid_t tid : tids_) { in StopInDesiredElf() local
/system/core/debuggerd/client/
Ddebuggerd_client.cpp96 for (int tid : tids) { in get_wchan_data() local
117 bool debuggerd_trigger_dump(pid_t tid, DebuggerdDumpType dump_type, unsigned int timeout_ms, in debuggerd_trigger_dump()
306 int dump_backtrace_to_file(pid_t tid, DebuggerdDumpType dump_type, int fd) { in dump_backtrace_to_file()
310 int dump_backtrace_to_file_timeout(pid_t tid, DebuggerdDumpType dump_type, int timeout_secs, in dump_backtrace_to_file_timeout()
/system/core/debuggerd/handler/
Ddebuggerd_fallback.cpp127 pid_t tid; in forward_output() local
157 int32_t tid; member
161 static uint64_t pack_thread_fd(pid_t tid, int fd) { in pack_thread_fd()
242 if (!iterate_tids(current_tid, [&allocator, &output_fd, &current_tid](pid_t tid) { in trace_handler()
/system/logging/logd/
DRecordingLogBuffer.cpp27 pid_t tid, const char* msg, uint16_t len) { in RecordLogMessage()
58 int RecordingLogBuffer::Log(log_id_t log_id, log_time realtime, uid_t uid, pid_t pid, pid_t tid, in Log()
DSerializedLogEntry.h36 SerializedLogEntry(uid_t uid, pid_t pid, pid_t tid, uint64_t sequence, log_time realtime, in SerializedLogEntry()
82 pid_t tid() const { return tid_; } in tid() function
DLogBufferElement.cpp34 pid_t tid, uint64_t sequence, const char* msg, uint16_t len) in LogBufferElement()
101 char* android::tidToName(pid_t tid) { in tidToName()
/system/core/debuggerd/
Dcrash_dump.cpp93 static bool pid_contains_tid(int pid_proc_fd, pid_t tid) { in pid_contains_tid()
109 static bool ptrace_seize_thread(int pid_proc_fd, pid_t tid, std::string* error, int flags = 0) { in ptrace_seize_thread()
137 static bool wait_for_stop(pid_t tid, int* received_signal) { in wait_for_stop()
158 static bool ptrace_interrupt(pid_t tid, int* received_signal) { in ptrace_interrupt()
427 static bool PtracePeek(int request, pid_t tid, uintptr_t addr, void* data, std::string_view err_msg, in PtracePeek()
438 static bool GetGuestRegistersFromCrashedProcess(pid_t tid, NativeBridgeGuestRegs* guest_regs) { in GetGuestRegistersFromCrashedProcess()
512 static void ReadGuestRegisters(std::unique_ptr<unwindstack::Regs>* regs, pid_t tid) { in ReadGuestRegisters()
Dutil.cpp57 std::string get_thread_name(pid_t tid) { in get_thread_name()
89 pid_t tid = atoi(entry->d_name); in iterate_tids() local
/system/libartpalette/
Dpalette_android.cc63 palette_status_t PaletteSchedSetPriority(int32_t tid, int32_t managed_priority) { in PaletteSchedSetPriority()
81 palette_status_t PaletteSchedGetPriority(int32_t tid, /*out*/ int32_t* managed_priority) { in PaletteSchedGetPriority()
254 palette_status_t PaletteSetTaskProfiles(int32_t tid, const char* const profiles[], in PaletteSetTaskProfiles()
/system/core/libutils/
DCallStack_test.cpp44 __attribute__((__noinline__)) extern "C" void ThreadBusyWait(std::atomic<pid_t>* tid, in ThreadBusyWait()
56 std::atomic<pid_t> tid = -1; in TEST() local
DProcessCallStack.cpp77 static String8 getThreadName(pid_t tid) { in getThreadName()
156 pid_t tid = -1; in update() local
211 pid_t tid = mThreadMap.keyAt(i); in printInternal() local
/system/libprocinfo/include/procinfo/
Dprocess.h52 pid_t tid; member
89 pid_t tid; variable

12345