Home
last modified time | relevance | path

Searched refs:uhwptr (Results 1 – 10 of 10) sorted by relevance

/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_stacktrace.cpp72 static inline uhwptr *GetCanonicFrame(uptr bp, in GetCanonicFrame()
78 uhwptr *bp_prev = (uhwptr *)bp; in GetCanonicFrame()
90 return (uhwptr*)bp; in GetCanonicFrame()
102 uhwptr *frame = GetCanonicFrame(bp, stack_top, stack_bottom); in UnwindFast()
114 uhwptr *caller_frame = (uhwptr*)frame[0]; in UnwindFast()
116 !IsAligned((uptr)caller_frame, sizeof(uhwptr))) in UnwindFast()
118 uhwptr pc1 = caller_frame[2]; in UnwindFast()
120 uhwptr pc1 = frame[14]; in UnwindFast()
123 uhwptr pc1 = frame[-1]; in UnwindFast()
125 uhwptr pc1 = frame[1]; in UnwindFast()
Dsanitizer_stacktrace_sparc.cpp55 while (next_bp != bp && IsAligned(next_bp, sizeof(uhwptr)) && i++ < 8) { in UnwindFast()
57 next_bp = (uptr)((uhwptr *)next_bp)[14] + STACK_BIAS; in UnwindFast()
65 while (IsValidFrame(bp, stack_top, bottom) && IsAligned(bp, sizeof(uhwptr)) && in UnwindFast()
67 uhwptr pc1 = ((uhwptr *)bp)[15]; in UnwindFast()
79 bp = (uptr)((uhwptr *)bp)[14] + STACK_BIAS; in UnwindFast()
Dsanitizer_internal_defs.h144 typedef unsigned long long uhwptr; typedef
146 typedef uptr uhwptr; typedef
Dsanitizer_stacktrace.h158 static const uptr kFrameSize = 2 * sizeof(uhwptr);
Dsanitizer_linux.cpp2106 *bp = (uptr)((uhwptr *)*sp)[14] + STACK_BIAS; in GetPcSpBp()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_stacktrace.cc46 static inline uhwptr *GetCanonicFrame(uptr bp, in GetCanonicFrame()
51 uhwptr *bp_prev = (uhwptr *)bp; in GetCanonicFrame()
63 return (uhwptr*)bp; in GetCanonicFrame()
74 uhwptr *frame = GetCanonicFrame(bp, stack_top, stack_bottom); in FastUnwindStack()
86 uhwptr *caller_frame = (uhwptr*)frame[0]; in FastUnwindStack()
88 !IsAligned((uptr)caller_frame, sizeof(uhwptr))) in FastUnwindStack()
90 uhwptr pc1 = caller_frame[2]; in FastUnwindStack()
92 uhwptr pc1 = frame[14]; in FastUnwindStack()
94 uhwptr pc1 = frame[1]; in FastUnwindStack()
Dsanitizer_internal_defs.h71 typedef unsigned long long uhwptr; // NOLINT typedef
73 typedef uptr uhwptr; // NOLINT typedef
Dsanitizer_stacktrace.h115 return frame > stack_bottom && frame < stack_top - 2 * sizeof (uhwptr); in IsValidFrame()
/external/llvm-project/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_stacktrace_test.cpp27 uhwptr *fake_stack;
29 uhwptr start_pc;
31 uhwptr fake_bp;
32 uhwptr fake_top;
33 uhwptr fake_bottom;
47 fake_stack = (uhwptr *)((uptr)mapping + ps + sizeof(uhwptr)); in SetUp()
56 fake_stack[RoundDownTo(fake_stack_size - 1, 2)] = (uhwptr)&fake_stack[0]; in SetUp()
59 fake_top = (uhwptr)&fake_stack[fake_stack_size + 2]; in SetUp()
61 fake_bottom = (uhwptr)mapping; in SetUp()
97 fake_stack[4] = (uhwptr)&fake_stack[4]; in TEST_F()
[all …]
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_stacktrace_test.cc33 uhwptr *fake_stack;
35 uhwptr start_pc;
36 uhwptr fake_top;
37 uhwptr fake_bottom;
51 fake_stack = (uhwptr *)((uptr)mapping + ps + sizeof(uhwptr)); in SetUp()
60 fake_stack[RoundDownTo(fake_stack_size - 1, 2)] = (uhwptr)&fake_stack[0]; in SetUp()
63 fake_top = (uhwptr)&fake_stack[fake_stack_size + 2]; in SetUp()
65 fake_bottom = (uhwptr)mapping; in SetUp()
88 fake_stack[4] = (uhwptr)&fake_stack[4]; in TEST_F()
117 EXPECT_EQ((uhwptr)&fake_stack[0], trace.top_frame_bp); in TEST_F()
[all …]