Home
last modified time | relevance | path

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

/system/core/libbacktrace/
DBacktraceImpl.cpp100 std::string Backtrace::FormatFrameData(const backtrace_frame_data_t* frame) { in FormatFrameData() argument
102 if (frame->map && !frame->map->name.empty()) { in FormatFrameData()
103 map_name = frame->map->name.c_str(); in FormatFrameData()
109 if (frame->map) { in FormatFrameData()
110 relative_pc = frame->pc - frame->map->start; in FormatFrameData()
112 relative_pc = frame->pc; in FormatFrameData()
116 if (!frame->func_name.empty() && frame->func_offset) { in FormatFrameData()
118 frame->num, (int)sizeof(uintptr_t)*2, relative_pc, map_name, in FormatFrameData()
119 frame->func_name.c_str(), frame->func_offset); in FormatFrameData()
120 } else if (!frame->func_name.empty()) { in FormatFrameData()
[all …]
DUnwindPtrace.cpp96 backtrace_frame_data_t* frame = &frames->at(num_frames); in Unwind() local
97 frame->num = num_frames; in Unwind()
98 frame->pc = static_cast<uintptr_t>(pc); in Unwind()
99 frame->sp = static_cast<uintptr_t>(sp); in Unwind()
100 frame->stack_size = 0; in Unwind()
104 prev->stack_size = frame->sp - prev->sp; in Unwind()
107 frame->func_name = GetFunctionName(frame->pc, &frame->func_offset); in Unwind()
109 frame->map = FindMap(frame->pc); in Unwind()
DUnwindCurrent.cpp126 backtrace_frame_data_t* frame = &frames->at(num_frames); in UnwindFromContext() local
127 frame->num = num_frames; in UnwindFromContext()
128 frame->pc = static_cast<uintptr_t>(pc); in UnwindFromContext()
129 frame->sp = static_cast<uintptr_t>(sp); in UnwindFromContext()
130 frame->stack_size = 0; in UnwindFromContext()
135 prev->stack_size = frame->sp - prev->sp; in UnwindFromContext()
139 frame->func_name = GetFunctionName(frame->pc, &frame->func_offset); in UnwindFromContext()
140 frame->map = FindMap(frame->pc); in UnwindFromContext()
142 frame->map = NULL; in UnwindFromContext()
143 frame->func_offset = 0; in UnwindFromContext()
Dbacktrace_test.cpp695 backtrace_frame_data_t frame; in TEST() local
696 frame.num = 1; in TEST()
697 frame.pc = 2; in TEST()
698 frame.sp = 0; in TEST()
699 frame.stack_size = 0; in TEST()
700 frame.map = NULL; in TEST()
701 frame.func_offset = 0; in TEST()
708 frame.num = 1; in TEST()
714 backtrace->FormatFrameData(&frame)); in TEST()
717 frame.map = &map; in TEST()
[all …]
/system/core/healthd/
Dhealthd_mode_charger.cpp86 struct frame { struct
97 struct frame *frames; argument
121 static struct frame batt_anim_frames[] = {
308 struct frame *frame = &batt_anim->frames[batt_anim->cur_frame]; in draw_battery() local
311 draw_surface_centered(charger, frame->surface); in draw_battery()
313 batt_anim->cur_frame, frame->min_capacity, in draw_battery()
314 frame->disp_time); in draw_battery()
/system/extras/tests/pftest/
DAndroid.mk16 LOCAL_CFLAGS += -fomit-frame-pointer
/system/extras/tests/memtest/
DAndroid.mk20 LOCAL_CFLAGS += -fomit-frame-pointer
/system/core/debuggerd/
Dtombstone.cpp286 const backtrace_frame_data_t* frame = backtrace->GetFrame(i); in dump_stack() local
287 if (frame->sp) { in dump_stack()
306 const backtrace_frame_data_t* frame = backtrace->GetFrame(i); in dump_stack() local
307 if (sp != frame->sp) { in dump_stack()
309 sp = frame->sp; in dump_stack()
313 if (sp < frame->sp + frame->stack_size) { in dump_stack()
317 size_t words = frame->stack_size / sizeof(word_t); in dump_stack()
/system/core/libpixelflinger/
DAndroid.mk27 PIXELFLINGER_CFLAGS := -fstrict-aliasing -fomit-frame-pointer
/system/core/include/backtrace/
DBacktrace.h90 virtual std::string FormatFrameData(const backtrace_frame_data_t* frame);