Home
last modified time | relevance | path

Searched refs:GuestThread (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/libs/binary_translation/guest_os_primitives/
Dguest_thread.cc55 const size_t kGuestThreadPageAlignedSize = AlignUpPageSize(sizeof(GuestThread));
60 GuestThread* GuestThread::Create() { in Create()
72 GuestThread* thread = new (thread_storage) GuestThread; in Create()
89 GuestThread* GuestThread::CreateClone(const GuestThread* parent, bool share_signal_actions) { in CreateClone()
90 GuestThread* thread = Create(); in CreateClone()
118 GuestThread* GuestThread::CreatePthread(void* stack, size_t stack_size, size_t guard_size) { in CreatePthread()
119 GuestThread* thread = Create(); in CreatePthread()
151 GuestThread* GuestThread::CreateForTest(ThreadState* state) { in CreateForTest()
156 GuestThread* thread = new (thread_storage) GuestThread; in CreateForTest()
162 void GuestThread::Destroy(GuestThread* thread) { in Destroy()
[all …]
Dguest_thread_manager.cc56 GuestThread* GetCurrentGuestThread() { in GetCurrentGuestThread()
61 void ResetCurrentGuestThreadAfterFork(GuestThread* thread) { in ResetCurrentGuestThreadAfterFork()
86 GuestThread* thread = g_guest_thread_map_.FindThread(tid); in GetGuestThreadAttr()
102 GuestThread* thread = g_guest_thread_map_.RemoveThread(tid); in ExitCurrentThread()
108 GuestThread::Exit(thread, status); in ExitCurrentThread()
123 g_guest_thread_map_.ForEachThread([current_tid](pid_t tid, GuestThread* thread) { in FlushGuestCodeCache()
153 GuestThread* AttachCurrentThread(bool register_dtor, bool* attached) { in AttachCurrentThread()
158 GuestThread* thread = g_guest_thread_map_.FindThread(tid); in AttachCurrentThread()
172 thread = GuestThread::CreatePthread(nullptr, stack_size, guard_size); in AttachCurrentThread()
189 void InsertCurrentThread(GuestThread* thread, bool register_dtor) { in InsertCurrentThread()
[all …]
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);
45 ForeverMap<pid_t, GuestThread*> map_;
Dguest_signal_handling.cc86 GuestThread* thread = AttachCurrentThread(false, &attached); in HandleHostSignal()
165 void GuestThread::SetDefaultSignalActionsTable() { in SetDefaultSignalActionsTable()
171 void GuestThread::CloneSignalActionsTableFrom(GuestSignalActionsTable* from_table) { in CloneSignalActionsTableFrom()
178 void GuestThread::SetSignalFromHost(const siginfo_t& host_info) { in SetSignalFromHost()
204 bool GuestThread::SigAltStack(const stack_t* ss, stack_t* old_ss, int* error) { in SigAltStack()
243 void GuestThread::SwitchToSigAltStack() { in SwitchToSigAltStack()
251 bool GuestThread::IsOnSigAltStack() const { in IsOnSigAltStack()
258 void GuestThread::ProcessPendingSignals() { in ProcessPendingSignals()
270 bool GuestThread::ProcessAndDisablePendingSignals() { in ProcessAndDisablePendingSignals()
286 bool GuestThread::TestAndEnablePendingSignals() { in TestAndEnablePendingSignals()
[all …]
Dguest_thread_map.cc27 void GuestThreadMap::ResetThreadTable(pid_t tid, GuestThread* thread) { in ResetThreadTable()
33 void GuestThreadMap::InsertThread(pid_t tid, GuestThread* thread) { in InsertThread()
39 GuestThread* GuestThreadMap::RemoveThread(pid_t tid) { in RemoveThread()
43 GuestThread* thread = it->second; in RemoveThread()
48 GuestThread* GuestThreadMap::FindThread(pid_t tid) { in FindThread()
Dguest_thread_clone.cc49 GuestThread* thread;
56 GuestThread* thread = info->thread; in RunClonedGuestThread()
86 pid_t CloneGuestThread(GuestThread* thread, in CloneGuestThread()
121 info.thread = GuestThread::CreateClone(thread, (flags & CLONE_SIGHAND) != 0); in CloneGuestThread()
176 GuestThread::Destroy(info.thread); in CloneGuestThread()
Dguest_thread_manager_impl.h24 GuestThread* AttachCurrentThread(bool register_dtor, bool* attached);
26 void InsertCurrentThread(GuestThread* thread, bool register_dtor);
Dguest_thread_pthread_create.cc37 info.thread = GuestThread::CreatePthread(guest_stack, guest_stack_size, guest_guard_size); in CreateNewGuestThread()
56 GuestThread::Destroy(info.thread); in CreateNewGuestThread()
Dguest_thread_pthread_create.h29 GuestThread* thread;
Dguest_signal_handling_arch.cc33 void ProcessGuestSignal(GuestThread* thread, const Guest_sigaction* sa, Guest_siginfo_t* info) { in ProcessGuestSignal()
/frameworks/libs/binary_translation/guest_os_primitives/include/berberis/guest_os_primitives/
Dguest_thread.h42 pid_t CloneGuestThread(GuestThread* thread,
59 class GuestThread {
61 static GuestThread* CreatePthread(void* stack, size_t stack_size, size_t guard_size);
62 static GuestThread* CreateClone(const GuestThread* parent, bool share_signal_actions);
63 static GuestThread* CreateForTest(ThreadState* state);
64 static void Destroy(GuestThread* thread);
65 static void Exit(GuestThread* thread, int status);
110 GuestThread() = default;
111 static GuestThread* Create();
Dscoped_pending_signals.h29 explicit ScopedPendingSignalsEnabler(GuestThread* thread) : thread_(thread) { in ScopedPendingSignalsEnabler()
40 GuestThread* thread_;
49 explicit ScopedPendingSignalsDisabler(GuestThread* thread) : thread_(thread) { in ScopedPendingSignalsDisabler()
60 GuestThread* thread_;
Dguest_thread_manager.h26 GuestThread* GetCurrentGuestThread();
28 void ResetCurrentGuestThreadAfterFork(GuestThread* thread);
Dguest_signal.h85 void ProcessGuestSignal(GuestThread* thread, const Guest_sigaction* sa, Guest_siginfo_t* info);
/frameworks/libs/binary_translation/instrument/include/berberis/instrument/
Dguest_thread.h26 class GuestThread; variable
29 void OnInsertGuestThread(pid_t tid, GuestThread* thread);
30 void OnRemoveGuestThread(pid_t tid, GuestThread* thread);
/frameworks/libs/binary_translation/guest_state/include/berberis/guest_state/
Dguest_state_opaque.h37 class GuestThread; variable
39 void SetGuestThread(ThreadState& state, GuestThread* thread);
40 GuestThread* GetGuestThread(const ThreadState& state);
/frameworks/libs/native_bridge_support/android_api/libc/proxy/
Dsetjmp_thunks.cc48 GuestThread* thread = GetCurrentGuestThread(); in DoThunk_siglongjmp()
56 GuestThread* thread = GetCurrentGuestThread(); in DoThunk_sigsetjmp()
Dunistd_thunks.cc28 GuestThread* thread = GetCurrentGuestThread(); in DoThunk___clone_for_fork()
/frameworks/libs/binary_translation/instrument/
Dinstrument.cc65 void OnInsertGuestThread([[maybe_unused]] pid_t tid, [[maybe_unused]] GuestThread* thread) {} in OnInsertGuestThread()
67 void OnRemoveGuestThread([[maybe_unused]] pid_t tid, [[maybe_unused]] GuestThread* thread) {} in OnRemoveGuestThread()
/frameworks/libs/binary_translation/guest_state/
Dguest_state.cc108 class GuestThread;
113 void SetGuestThread(ThreadState& state, GuestThread* thread) { in SetGuestThread()
117 GuestThread* GetGuestThread(const ThreadState& state) { in GetGuestThread()
/frameworks/libs/binary_translation/guest_state/arm/include/berberis/guest_state/
Dguest_state_arch.h33 GuestThread* thread;
/frameworks/libs/binary_translation/guest_state/arm64/include/berberis/guest_state/
Dguest_state_arch.h34 GuestThread* thread;
/frameworks/libs/binary_translation/runtime/
Dexecute_guest_test.cc45 GuestThread* thread = GetCurrentGuestThread(); in TEST()
Dexecute_guest.cc32 GuestThread* thread = GetGuestThread(*state); in ExecuteGuest()
Drun_guest_call_riscv64.cc67 GuestThread* thread = GetCurrentGuestThread(); in RunGuestCall()

12