Home | History | Annotate | Download | only in sanitizer_common

Lines Matching refs:uptr

20 uptr StackTrace::GetNextInstructionPc(uptr pc) {
30 uptr StackTrace::GetCurrentPc() {
34 void BufferedStackTrace::Init(const uptr *pcs, uptr cnt, uptr extra_top_pc) {
44 static inline bool IsValidFrame(uptr frame, uptr stack_top, uptr stack_bottom) {
51 static inline uhwptr *GetCanonicFrame(uptr bp,
52 uptr stack_top,
53 uptr stack_bottom) {
57 if (IsValidFrame((uptr)bp_prev[0], stack_top, stack_bottom)) return bp_prev;
60 if (IsValidFrame((uptr)bp_prev[-1], stack_top, stack_bottom))
72 void BufferedStackTrace::FastUnwindStack(uptr pc, uptr bp, uptr stack_top,
73 uptr stack_bottom, u32 max_depth) {
81 uptr bottom = stack_bottom;
83 while (IsValidFrame((uptr)frame, stack_top, bottom) &&
84 IsAligned((uptr)frame, sizeof(*frame)) &&
91 if (!IsValidFrame((uptr)caller_frame, stack_top, bottom) ||
92 !IsAligned((uptr)caller_frame, sizeof(uhwptr)))
99 trace_buffer[size++] = (uptr) pc1;
101 bottom = (uptr)frame;
102 frame = GetCanonicFrame((uptr)frame[0], stack_top, bottom);
106 static bool MatchPc(uptr cur_pc, uptr trace_pc, uptr threshold) {
110 void BufferedStackTrace::PopStackFrames(uptr count) {
113 for (uptr i = 0; i < size; ++i) {
118 uptr BufferedStackTrace::LocatePcInTrace(uptr pc) {
122 for (uptr i = 0; i < size; ++i) {