Home
last modified time | relevance | path

Searched refs:thread_context (Results 1 – 25 of 47) sorted by relevance

12

/external/cronet/base/profiler/
Dchrome_unwinder_android_unittest.cc19 RegisterContext thread_context = {}; in TEST() local
22 thread_context.arm_sp = 0x10000000; in TEST()
25 &thread_context), in TEST()
29 EXPECT_EQ(0x10000004ul, thread_context.arm_sp); in TEST()
35 RegisterContext thread_context = {}; in TEST() local
38 thread_context.arm_sp = 0x10000000; in TEST()
41 &thread_context), in TEST()
45 EXPECT_EQ(0x10000014ul, thread_context.arm_sp); in TEST()
50 RegisterContext thread_context = {}; in TEST() local
53 thread_context.arm_sp = 0x10000000; in TEST()
[all …]
Dthread_delegate_posix.cc48 RegisterContext* thread_context) { in GetRegistersToRewrite() argument
51 reinterpret_cast<uintptr_t*>(&thread_context->arm_r0), in GetRegistersToRewrite()
52 reinterpret_cast<uintptr_t*>(&thread_context->arm_r1), in GetRegistersToRewrite()
53 reinterpret_cast<uintptr_t*>(&thread_context->arm_r2), in GetRegistersToRewrite()
54 reinterpret_cast<uintptr_t*>(&thread_context->arm_r3), in GetRegistersToRewrite()
55 reinterpret_cast<uintptr_t*>(&thread_context->arm_r4), in GetRegistersToRewrite()
56 reinterpret_cast<uintptr_t*>(&thread_context->arm_r5), in GetRegistersToRewrite()
57 reinterpret_cast<uintptr_t*>(&thread_context->arm_r6), in GetRegistersToRewrite()
58 reinterpret_cast<uintptr_t*>(&thread_context->arm_r7), in GetRegistersToRewrite()
59 reinterpret_cast<uintptr_t*>(&thread_context->arm_r8), in GetRegistersToRewrite()
[all …]
Dsuspendable_thread_delegate_mac.cc82 RegisterContext thread_context; in SuspendableThreadDelegateMac() local
83 GetThreadContextImpl(thread_port_, &thread_context); in SuspendableThreadDelegateMac()
99 RegisterContext* thread_context) { in GetThreadContext() argument
100 return GetThreadContextImpl(thread_port_, thread_context); in GetThreadContext()
114 RegisterContext* thread_context) { in GetRegistersToRewrite() argument
117 &AsUintPtr(&thread_context->__rbx), &AsUintPtr(&thread_context->__rbp), in GetRegistersToRewrite()
118 &AsUintPtr(&thread_context->__rsp), &AsUintPtr(&thread_context->__r12), in GetRegistersToRewrite()
119 &AsUintPtr(&thread_context->__r13), &AsUintPtr(&thread_context->__r14), in GetRegistersToRewrite()
120 &AsUintPtr(&thread_context->__r15)}; in GetRegistersToRewrite()
123 &AsUintPtr(&thread_context->__fp), in GetRegistersToRewrite()
[all …]
Dsuspendable_thread_delegate_win.cc205 bool SuspendableThreadDelegateWin::GetThreadContext(CONTEXT* thread_context) { in GetThreadContext() argument
206 *thread_context = {0}; in GetThreadContext()
207 thread_context->ContextFlags = CONTEXT_FULL; in GetThreadContext()
208 return ::GetThreadContext(thread_handle_.get(), thread_context) != 0; in GetThreadContext()
226 CONTEXT* thread_context) { in GetRegistersToRewrite() argument
230 &thread_context->R12, &thread_context->R13, &thread_context->R14, in GetRegistersToRewrite()
231 &thread_context->R15, &thread_context->Rdi, &thread_context->Rsi, in GetRegistersToRewrite()
232 &thread_context->Rbx, &thread_context->Rbp, &thread_context->Rsp in GetRegistersToRewrite()
234 &thread_context->X19, &thread_context->X20, &thread_context->X21, in GetRegistersToRewrite()
235 &thread_context->X22, &thread_context->X23, &thread_context->X24, in GetRegistersToRewrite()
[all …]
Dchrome_unwinder_android.cc86 UnwindResult ChromeUnwinderAndroid::TryUnwind(RegisterContext* thread_context, in TryUnwind() argument
90 uintptr_t frame_initial_sp = RegisterContextStackPointer(thread_context); in TryUnwind()
92 RegisterContextInstructionPointer(thread_context); in TryUnwind()
95 const uintptr_t pc = RegisterContextInstructionPointer(thread_context); in TryUnwind()
125 current_unwind_instruction, pc_was_updated, thread_context); in TryUnwind()
126 const uintptr_t sp = RegisterContextStackPointer(thread_context); in TryUnwind()
140 const uintptr_t new_sp = RegisterContextStackPointer(thread_context); in TryUnwind()
162 RegisterContextInstructionPointer(thread_context) == in TryUnwind()
169 stack->emplace_back(RegisterContextInstructionPointer(thread_context), in TryUnwind()
171 RegisterContextInstructionPointer(thread_context))); in TryUnwind()
[all …]
Dlibunwindstack_unwinder_android_unittest.cc55 RegisterContext thread_context; in CaptureScenario() local
61 &timestamp, &thread_context, &delegate); in CaptureScenario()
65 RegisterContextInstructionPointer(&thread_context), in CaptureScenario()
67 RegisterContextInstructionPointer(&thread_context))); in CaptureScenario()
69 std::move(unwind_callback).Run(&thread_context, stack_top, &sample); in CaptureScenario()
86 BindLambdaForTesting([&](RegisterContext* thread_context, in TEST()
91 thread_context, stack_top, sample); in TEST()
116 BindLambdaForTesting([&](RegisterContext* thread_context, in TEST()
121 thread_context, stack_top, sample); in TEST()
148 BindLambdaForTesting([&](RegisterContext* thread_context, in TEST()
[all …]
Dnative_unwinder_win.cc23 UnwindResult NativeUnwinderWin::TryUnwind(RegisterContext* thread_context, in TryUnwind() argument
55 uintptr_t prev_stack_pointer = RegisterContextStackPointer(thread_context); in TryUnwind()
56 if (!frame_unwinder.TryUnwind(stack->size() == 1u, thread_context, in TryUnwind()
61 if (RegisterContextInstructionPointer(thread_context) == 0) in TryUnwind()
78 if (RegisterContextStackPointer(thread_context) <= in TryUnwind()
80 RegisterContextStackPointer(thread_context) >= in TryUnwind()
86 stack->emplace_back(RegisterContextInstructionPointer(thread_context), in TryUnwind()
88 RegisterContextInstructionPointer(thread_context))); in TryUnwind()
Dstack_sampler_unittest.cc73 RegisterContext* thread_context, in CopyStack() argument
80 *thread_context = {}; in CopyStack()
81 RegisterContextStackPointer(thread_context) = in CopyStack()
103 RegisterContext* thread_context, in CopyStack() argument
120 UnwindResult TryUnwind(RegisterContext* thread_context, in TryUnwind() argument
124 RegisterContextStackPointer(thread_context)); in TryUnwind()
143 UnwindResult TryUnwind(RegisterContext* thread_context, in TryUnwind() argument
223 UnwindResult TryUnwind(RegisterContext* thread_context, in TryUnwind() argument
400 RegisterContext thread_context; in TEST() local
401 RegisterContextInstructionPointer(&thread_context) = in TEST()
[all …]
Dnative_unwinder_android_unittest.cc122 RegisterContext thread_context; in CaptureScenario() local
128 &timestamp, &thread_context, &delegate); in CaptureScenario()
132 RegisterContextInstructionPointer(&thread_context), in CaptureScenario()
134 RegisterContextInstructionPointer(&thread_context))); in CaptureScenario()
136 std::move(unwind_callback).Run(&thread_context, stack_top, &sample); in CaptureScenario()
157 BindLambdaForTesting([&](RegisterContext* thread_context, in TEST()
162 thread_context, stack_top, sample); in TEST()
193 BindLambdaForTesting([&](RegisterContext* thread_context, in TEST()
198 thread_context, stack_top, sample); in TEST()
230 BindLambdaForTesting([&](RegisterContext* thread_context, in TEST()
[all …]
Dframe_pointer_unwinder.cc46 UnwindResult FramePointerUnwinder::TryUnwind(RegisterContext* thread_context, in TryUnwind() argument
58 uintptr_t next_frame = RegisterContextFramePointer(thread_context); in TryUnwind()
59 uintptr_t frame_lower_bound = RegisterContextStackPointer(thread_context); in TryUnwind()
97 RegisterContextFramePointer(thread_context) = next_frame; in TryUnwind()
98 RegisterContextInstructionPointer(thread_context) = retaddr; in TryUnwind()
99 RegisterContextStackPointer(thread_context) = frame + sizeof(uintptr_t) * 2; in TryUnwind()
Dstack_sampler.cc114 RegisterContext thread_context; in RecordStackFrames() local
127 stack_buffer, &stack_top, &timestamp, &thread_context, &delegate); in RecordStackFrames()
142 WalkStack(module_cache_, &thread_context, stack_top, unwinders_), in RecordStackFrames()
182 RegisterContext* thread_context, in WalkStackForTesting() argument
185 return WalkStack(module_cache, thread_context, stack_top, unwinders); in WalkStackForTesting()
216 RegisterContext* thread_context, in WalkStack() argument
226 stack.emplace_back(RegisterContextInstructionPointer(thread_context), in WalkStack()
228 RegisterContextInstructionPointer(thread_context))); in WalkStack()
243 result = unwinder->get()->TryUnwind(thread_context, stack_top, &stack); in WalkStack()
Dnative_unwinder_android.cc65 RegisterContext* thread_context) { in CreateFromRegisterContext() argument
68 reinterpret_cast<void*>(&thread_context->arm_r0))); in CreateFromRegisterContext()
71 reinterpret_cast<void*>(&thread_context->regs[0]))); in CreateFromRegisterContext()
79 RegisterContext* thread_context) { in CopyToRegisterContext() argument
81 memcpy(reinterpret_cast<void*>(&thread_context->arm_r0), regs->RawData(), in CopyToRegisterContext()
84 memcpy(reinterpret_cast<void*>(&thread_context->regs[0]), regs->RawData(), in CopyToRegisterContext()
175 UnwindResult NativeUnwinderAndroid::TryUnwind(RegisterContext* thread_context, in TryUnwind() argument
178 auto regs = CreateFromRegisterContext(thread_context); in TryUnwind()
250 CopyToRegisterContext(regs.get(), thread_context); in TryUnwind()
Dstack_copier_suspend.cc27 RegisterContext* thread_context, in CopyStack() argument
45 if (!thread_delegate_->GetThreadContext(thread_context)) in CopyStack()
48 bottom = RegisterContextStackPointer(thread_context); in CopyStack()
70 thread_delegate_->GetRegistersToRewrite(thread_context)) { in CopyStack()
Dstack_copier_suspend_unittest.cc49 RegisterContext* thread_context = nullptr) in TestSuspendableThreadDelegate() argument
50 : fake_stack_(fake_stack), thread_context_(thread_context) {} in TestSuspendableThreadDelegate()
60 bool GetThreadContext(RegisterContext* thread_context) override { in GetThreadContext() argument
62 *thread_context = *thread_context_; in GetThreadContext()
64 RegisterContextStackPointer(thread_context) = in GetThreadContext()
66 RegisterContextInstructionPointer(thread_context) = in GetThreadContext()
81 RegisterContext* thread_context) override { in GetRegistersToRewrite() argument
82 return {&RegisterContextFramePointer(thread_context)}; in GetRegistersToRewrite()
Dlibunwindstack_unwinder_android.cc66 RegisterContext* thread_context) { in CreateFromRegisterContext() argument
69 reinterpret_cast<void*>(&thread_context->arm_r0))); in CreateFromRegisterContext()
72 reinterpret_cast<void*>(&thread_context->regs[0]))); in CreateFromRegisterContext()
119 RegisterContext* thread_context, in TryUnwind() argument
138 CreateFromRegisterContext(thread_context); in TryUnwind()
Dsuspendable_thread_delegate_mac.h50 bool GetThreadContext(RegisterContext* thread_context) override;
55 RegisterContext* thread_context) override;
Dsuspendable_thread_delegate_win.h53 bool GetThreadContext(CONTEXT* thread_context) override;
58 CONTEXT* thread_context) override;
Dchrome_unwinder_android.h32 UnwindResult TryUnwind(RegisterContext* thread_context,
66 RegisterContext* thread_context);
Dstack_copier_signal.cc199 RegisterContext* thread_context, in CopyStack() argument
207 thread_context, stack_buffer, &stack_copy_bottom, in CopyStack()
253 thread_delegate_->GetRegistersToRewrite(thread_context)) { in CopyStack()
Dstack_sampler.h84 RegisterContext* thread_context,
118 RegisterContext* thread_context,
/external/bcc/tools/
Dkvmexit.py282 thread_context = "" variable
286 thread_context = "TID %s" % args.tid variable
289 thread_context = "TIDS %s" % args.tids variable
293 thread_context = "PID %s" % args.pid variable
296 thread_context = "PID %s VCPU %s" % (args.pid, args.vcpu) variable
305 thread_context = "PID %s and its all threads" % args.pid variable
308 thread_context = "all threads" variable
320 print("Display kvm exit reasons and statistics for %s" % thread_context, end="")
Doffcputime.py191 thread_context = "" variable
193 thread_context = "PID %d" % args.tgid variable
196 thread_context = "TID %d" % args.pid variable
199 thread_context = "user threads" variable
202 thread_context = "kernel threads" variable
205 thread_context = "all threads" variable
268 (thread_context, stack_context), end="")
Dprofile.py216 thread_context = "" variable
218 thread_context = "PID %s" % args.pid variable
221 thread_context = "TID %s" % args.tid variable
224 thread_context = "all threads" variable
262 (sample_context, thread_context, stack_context), end="")
/external/linux-kselftest/tools/testing/selftests/kvm/x86_64/
Dmmio_warning_test.c34 struct thread_context { struct
41 struct thread_context *tc = (struct thread_context *)arg; in thr() argument
58 struct thread_context tc; in test()
/external/bcc/tools/old/
Dprofile.py196 thread_context = "" variable
199 thread_context = "PID %s" % args.pid variable
203 thread_context = "all threads" variable
236 (args.frequency, thread_context, stack_context), end="")

12