Home
last modified time | relevance | path

Searched refs:tid (Results 1 – 25 of 104) sorted by relevance

12345

/frameworks/libs/binary_translation/guest_os_primitives/
Dguest_thread_manager.cc81 bool GetGuestThreadAttr(pid_t tid, in GetGuestThreadAttr() argument
86 GuestThread* thread = g_guest_thread_map_.FindThread(tid); in GetGuestThreadAttr()
96 pid_t tid = GettidSyscall(); in ExitCurrentThread() local
102 GuestThread* thread = g_guest_thread_map_.RemoveThread(tid); in ExitCurrentThread()
104 OnRemoveGuestThread(tid, thread); in ExitCurrentThread()
107 TRACE("guest thread exited %d", tid); in ExitCurrentThread()
123 g_guest_thread_map_.ForEachThread([current_tid](pid_t tid, GuestThread* thread) { in FlushGuestCodeCache() argument
128 if (tid != current_tid) { in FlushGuestCodeCache()
157 pid_t tid = GettidSyscall(); in AttachCurrentThread() local
158 GuestThread* thread = g_guest_thread_map_.FindThread(tid); in AttachCurrentThread()
[all …]
Dguest_thread_map.cc27 void GuestThreadMap::ResetThreadTable(pid_t tid, GuestThread* thread) { in ResetThreadTable() argument
30 map_[tid] = thread; in ResetThreadTable()
33 void GuestThreadMap::InsertThread(pid_t tid, GuestThread* thread) { in InsertThread() argument
35 auto result = map_.insert({tid, thread}); in InsertThread()
39 GuestThread* GuestThreadMap::RemoveThread(pid_t tid) { in RemoveThread() argument
41 auto it = map_.find(tid); in RemoveThread()
48 GuestThread* GuestThreadMap::FindThread(pid_t tid) { in FindThread() argument
50 auto it = map_.find(tid); in FindThread()
Dguest_thread_map.h30 void ResetThreadTable(pid_t tid, GuestThread* thread);
31 void InsertThread(pid_t tid, GuestThread* thread);
32 GuestThread* RemoveThread(pid_t tid);
33 GuestThread* FindThread(pid_t tid);
/frameworks/base/services/core/java/com/android/server/wm/
DVrController.java234 public void setVrThreadLocked(int tid, int pid, WindowProcessController proc) { in setVrThreadLocked() argument
243 if (tid != 0) { in setVrThreadLocked()
244 enforceThreadInProcess(tid, pid); in setVrThreadLocked()
249 setVrRenderThreadLocked(tid, proc.getCurrentSchedulingGroup(), false); in setVrThreadLocked()
251 proc.mVrThreadTid = (tid > 0) ? tid : 0; in setVrThreadLocked()
268 public void setPersistentVrThreadLocked(int tid, int pid, WindowProcessController proc) { in setPersistentVrThreadLocked() argument
277 if (tid != 0) { in setPersistentVrThreadLocked()
278 enforceThreadInProcess(tid, pid); in setPersistentVrThreadLocked()
280 setPersistentVrRenderThreadLocked(tid, false); in setPersistentVrThreadLocked()
429 private void enforceThreadInProcess(int tid, int pid) { in enforceThreadInProcess() argument
[all …]
/frameworks/av/services/camera/libcameraservice/
DCameraServiceWatchdog.h82 auto watchThread(T func, uint32_t tid, const char* functionName, uint32_t cycles, in watchThread() argument
99 res = watchThread(func, tid, functionName); in watchThread()
103 res = tempWatchdog->watchThread(func, tid, functionName); in watchThread()
109 res = watchThread(func, tid, functionName); in watchThread()
117 auto watchThread(T func, uint32_t tid, const char* functionName) { in watchThread() argument
122 start(tid, functionName); in watchThread()
124 stop(tid); in watchThread()
138 void start(uint32_t tid, const char* functionName);
144 void stop(uint32_t tid);
DCameraServiceWatchdog.cpp93 void CameraServiceWatchdog::stop(uint32_t tid) in stop() argument
97 mTidMap.erase(tid); in stop()
104 void CameraServiceWatchdog::start(uint32_t tid, const char* functionName) in start() argument
111 mTidMap[tid] = monitoredFunction; in start()
/frameworks/base/services/core/java/com/android/server/
DThreadPriorityBooster.java48 final int prevPriority = getThreadPriority(state.tid); in boost()
50 setThreadPriority(state.tid, mBoostToPriority); in boost()
64 setThreadPriority(state.tid, state.prevPriority); in reset()
80 final int prevPriority = getThreadPriority(state.tid); in setBoostToPriority()
82 setThreadPriority(state.tid, priority); in setBoostToPriority()
88 final int tid = myTid(); field in ThreadPriorityBooster.PriorityState
/frameworks/av/services/camera/libcameraservice/utils/
DSchedulingPolicyUtils.cpp33 int requestPriorityDirect(int pid, int tid, int prio) { in requestPriorityDirect() argument
38 if (!android::procinfo::GetProcessInfo(tid, &processInfo)) { in requestPriorityDirect()
52 if (!SetTaskProfiles(tid, {get_sched_policy_profile_name(SP_AUDIO_SYS)}, in requestPriorityDirect()
60 return sched_setscheduler(tid, SCHED_FIFO | SCHED_RESET_ON_FORK, &param); in requestPriorityDirect()
DUtils.cpp78 RunThreadWithRealtimePriority::RunThreadWithRealtimePriority(int tid) in RunThreadWithRealtimePriority() argument
79 : mTid(tid), mPreviousPolicy(sched_getscheduler(tid)) { in RunThreadWithRealtimePriority()
/frameworks/av/media/utils/
DSchedulingPolicyService.cpp34 int requestPriority(pid_t pid, pid_t tid, int32_t prio, bool isForApp, bool asynchronous) in requestPriority() argument
39 tid, audio_utils::rtprio_to_unified_priority(prio)); in requestPriority()
62 ret = sps->requestPriority(pid, tid, prio, isForApp, asynchronous); in requestPriority()
101 int requestSpatializerPriority(pid_t pid, pid_t tid) { in requestSpatializerPriority() argument
102 if (pid == -1 || tid == -1) return BAD_VALUE; in requestSpatializerPriority()
111 pid, tid, priorityBoost, false /* isForApp */, true /*asynchronous*/); in requestSpatializerPriority()
DThreadSnapshot.cpp31 void ThreadSnapshot::setTid(pid_t tid) { in setTid() argument
33 if (mState.mTid == tid) return; in setTid()
34 mState.reset(tid); in setTid()
64 void ThreadSnapshot::State::reset(pid_t tid) { in reset() argument
65 mTid = tid; in reset()
DMediaUtilsDelayedLibrary.cpp23 std::string getCallStackStringForTid(pid_t tid) { in getCallStackStringForTid() argument
25 cs.update(0 /* ignoreDepth */, tid); in getCallStackStringForTid()
DTimerThread.cpp87 const auto& [tid, name] = mutexWaitChain[i]; in toString()
88 mutexWaitChainStack.append("{ tid: ").append(std::to_string(tid)) in toString()
90 if (tid == timeoutTid) { in toString()
92 } else if (tid == suspectTid) { in toString()
99 .append(getCallStackStringForTid(tid)).append("] }\n"); in toString()
160 analysis.timeoutTid = timeout->tid; in getSnapshotAnalysis()
193 if (pending->tid == timeout->tid) { in getSnapshotAnalysis()
212 analysis.suspectTid = request->tid; in getSnapshotAnalysis()
224 analysis.suspectTid= request->tid; in getSnapshotAnalysis()
275 .append(" tid ").append(std::to_string(tid)); in toString()
DMediaUtilsDelayed.cpp49 std::string getCallStackStringForTid(pid_t tid) { in getCallStackStringForTid() argument
52 return delayedDispatchTable->getCallStackStringForTid(tid); in getCallStackStringForTid()
/frameworks/av/media/utils/include/mediautils/
DThreadSnapshot.h34 explicit ThreadSnapshot(pid_t tid = -1) { mState.reset(tid); };
40 void setTid(pid_t tid);
70 void reset(pid_t tid);
DProcess.h103 std::string getThreadSchedAsString(pid_t tid);
113 inline std::map<std::string, double> getThreadSchedAsMap(pid_t tid) { in getThreadSchedAsMap() argument
114 return parseThreadSchedString(getThreadSchedAsString(tid)); in getThreadSchedAsMap()
DSchedulingPolicyService.h30 int requestPriority(pid_t pid, pid_t tid, int32_t prio, bool isForApp, bool asynchronous = false);
44 int requestSpatializerPriority(pid_t pid, pid_t tid);
DTidWrapper.h38 inline int abortTid(int tid) { in abortTid() argument
46 return syscall(SYS_rt_tgsigqueueinfo, pid, tid, SIGABRT, &siginfo); in abortTid()
/frameworks/base/core/jni/
Dandroid_util_Process.cpp90 static void signalExceptionForError(JNIEnv* env, int err, int tid) { in signalExceptionForError() argument
94 "Invalid argument: %d", tid); in signalExceptionForError()
98 "Given thread %d does not exist", tid); in signalExceptionForError()
102 "No permission to modify given thread %d", tid); in signalExceptionForError()
110 static void signalExceptionForPriorityError(JNIEnv* env, int err, int tid) { in signalExceptionForPriorityError() argument
114 "No permission to set the priority of %d", tid); in signalExceptionForPriorityError()
117 signalExceptionForError(env, err, tid); in signalExceptionForPriorityError()
123 static void signalExceptionForGroupError(JNIEnv* env, int err, int tid) { in signalExceptionForGroupError() argument
127 "No permission to set the group of %d", tid); in signalExceptionForGroupError()
130 signalExceptionForError(env, err, tid); in signalExceptionForGroupError()
[all …]
/frameworks/base/core/java/android/os/
DProcess.java1107 public static final int getThreadGroupLeader(int tid) { in getThreadGroupLeader() argument
1111 Process.readProcLines("/proc/" + tid + "/status", procStatusLabels, procStatusValues); in getThreadGroupLeader()
1129 public static final native void setThreadPriority(int tid, in setThreadPriority() argument
1134 public static final void setThreadPriority$ravenwood(int tid, int priority) { in setThreadPriority$ravenwood() argument
1137 if (args.argi3 == tid) { in setThreadPriority$ravenwood()
1184 public static final native void setThreadGroup(int tid, int group) in setThreadGroup() argument
1199 public static final native void setThreadGroupAndCpuset(int tid, int group) in setThreadGroupAndCpuset() argument
1320 public static final native int getThreadPriority(int tid) in getThreadPriority() argument
1324 public static final int getThreadPriority$ravenwood(int tid) { in getThreadPriority$ravenwood() argument
1327 if (args.argi3 == tid) { in getThreadPriority$ravenwood()
[all …]
/frameworks/base/services/core/java/com/android/server/os/
DSchedulingPolicyService.java82 public int requestPriority(int pid, int tid, int prio, boolean isForApp) { in requestPriority() argument
92 prio > PRIORITY_MAX || Process.getThreadGroupLeader(tid) != pid) { in requestPriority()
98 && Process.getUidForPid(tid) != Process.AUDIOSERVER_UID) { in requestPriority()
104 Process.setThreadGroup(tid, !isForApp ? in requestPriority()
113 Process.setThreadScheduler(tid, Process.SCHED_FIFO | Process.SCHED_RESET_ON_FORK, in requestPriority()
/frameworks/libs/binary_translation/instrument/include/berberis/instrument/
Dguest_thread.h29 void OnInsertGuestThread(pid_t tid, GuestThread* thread);
30 void OnRemoveGuestThread(pid_t tid, GuestThread* thread);
/frameworks/base/services/core/java/com/android/server/power/hint/
DHintManagerService.java672 int tid = tids[i]; in cleanUpSession() local
673 if (checkedTids.get(tid, 0) != TID_NOT_CHECKED) { in cleanUpSession()
674 if (checkedTids.get(tid) == TID_PASSED_CHECK) { in cleanUpSession()
675 filtered.add(tid); in cleanUpSession()
682 isNotIsolated = mNonIsolatedTids.containsKey(tid); in cleanUpSession()
686 Process.checkTid(pid, tid); in cleanUpSession()
688 Process.checkPid(tid); in cleanUpSession()
690 checkedTids.put(tid, TID_PASSED_CHECK); in cleanUpSession()
691 filtered.add(tid); in cleanUpSession()
693 checkedTids.put(tid, TID_EXITED); in cleanUpSession()
[all …]
/frameworks/libs/binary_translation/tests/ndk_program_tests/
Dclone_test.cc46 pid_t tid = clone(runner, &child_stack[kStackSize], CLONE_VM | extra_flags, nullptr); in CloneVMAndWait() local
48 ASSERT_EQ(tid, TEMP_FAILURE_RETRY(waitpid(tid, &status, __WCLONE))); in CloneVMAndWait()
/frameworks/native/services/schedulerservice/
DSchedulingPolicyService.cpp38 Return<bool> SchedulingPolicyService::requestPriority(int32_t pid, int32_t tid, int32_t priority) { in requestPriority() argument
50 int value = ::android::requestPriority(pid, tid, priority, false /* isForApp */); in requestPriority()

12345