Home
last modified time | relevance | path

Searched refs:frames (Results 1 – 19 of 19) sorted by relevance

/bionic/tests/
Dandroid_unsafe_frame_pointer_chase_test.cpp38 static bool CheckFrames(uintptr_t* frames, size_t num_frames) { in CheckFrames() argument
47 if (frames[0] == frames[1]) { in CheckFrames()
48 printf("frames[0] == frames[1] (0x%zx)", frames[0]); in CheckFrames()
53 if (frames[i] != frames[1]) { in CheckFrames()
54 printf("frames[i] (0x%zx) != frames[1] (0x%zx)", frames[i], frames[1]); in CheckFrames()
59 if (frames[kNumFrames] == frames[kNumFrames + 1]) { in CheckFrames()
60 printf("frames[kNumFrames] == frames[kNumFrames + 1] (0x%zx)", frames[kNumFrames]); in CheckFrames()
70 uintptr_t frames[kNumFrames + 2]; in TEST() local
71 size_t size2 = recurse(kNumFrames, frames, kNumFrames + 2); in TEST()
74 EXPECT_TRUE(CheckFrames(frames, size)); in TEST()
[all …]
/bionic/libc/malloc_debug/tests/
Dbacktrace_fake.cpp45 size_t backtrace_get(uintptr_t* frames, size_t frame_num) { in backtrace_get() argument
52 memcpy(frames, g_fake_backtrace[0].data(), sizeof(uintptr_t) * total_frames); in backtrace_get()
57 void backtrace_log(const uintptr_t* frames, size_t frame_count) { in backtrace_log() argument
59 error_log(" #%02zd pc %p", i, reinterpret_cast<void*>(frames[i])); in backtrace_log()
69 void BacktraceUnwindFake(const std::vector<unwindstack::LocalFrameData>& frames) { in BacktraceUnwindFake() argument
70 g_fake_local_frame_data.push_back(frames); in BacktraceUnwindFake()
73 bool Unwind(std::vector<uintptr_t>* frames, std::vector<unwindstack::LocalFrameData>* info, size_t)… in Unwind() argument
80 frames->clear(); in Unwind()
82 frames->push_back(frame.pc); in Unwind()
Dbacktrace_fake.h30 void BacktraceUnwindFake(const std::vector<unwindstack::LocalFrameData>& frames);
/bionic/libc/malloc_debug/
Dbacktrace.cpp73 uintptr_t* frames; member
77 stack_crawl_state_t(uintptr_t* frames, size_t frame_count) in stack_crawl_state_t()
78 : frames(frames), frame_count(frame_count) {} in stack_crawl_state_t()
123 state->frames[state->cur_frame++] = ip; in trace_function()
127 size_t backtrace_get(uintptr_t* frames, size_t frame_count) { in backtrace_get() argument
128 stack_crawl_state_t state(frames, frame_count); in backtrace_get()
133 std::string backtrace_string(const uintptr_t* frames, size_t frame_count) { in backtrace_string() argument
141 if (dladdr(reinterpret_cast<void*>(frames[frame_num]), &info) != 0) { in backtrace_string()
149 const MapEntry* entry = g_map_data.find(frames[frame_num], &rel_pc); in backtrace_string()
175 frames[frame_num] - offset); in backtrace_string()
[all …]
DPointerData.cpp138 std::vector<uintptr_t> frames; in AddBacktrace() local
141 if (!Unwind(&frames, &frames_info, num_frames)) { in AddBacktrace()
145 frames.resize(num_frames); in AddBacktrace()
146 num_frames = backtrace_get(frames.data(), frames.size()); in AddBacktrace()
152 FrameKeyType key{.num_frames = num_frames, .frames = frames.data()}; in AddBacktrace()
157 frames.resize(num_frames); in AddBacktrace()
159 key.frames = frames.data(); in AddBacktrace()
162 frames_.emplace(hash_index, FrameInfoType{.references = 1, .frames = std::move(frames)}); in AddBacktrace()
187 FrameKeyType key{.num_frames = frame_info->frames.size(), .frames = frame_info->frames.data()}; in RemoveBacktrace()
225 size_t PointerData::GetFrames(const void* ptr, uintptr_t* frames, size_t max_frames) { in GetFrames() argument
[all …]
Dbacktrace.h38 size_t backtrace_get(uintptr_t* frames, size_t frame_count);
39 void backtrace_log(const uintptr_t* frames, size_t frame_count);
40 std::string backtrace_string(const uintptr_t* frames, size_t frame_count);
DPointerData.h54 uintptr_t* frames; member
59 if (frames[i] != comp.frames[i]) {
71 std::size_t cur_hash = key.frames[0];
75 cur_hash ^= key.frames[i];
84 std::vector<uintptr_t> frames;
160 static size_t GetFrames(const void* pointer, uintptr_t* frames, size_t max_frames);
165 static std::string GetHashString(uintptr_t* frames, size_t num_frames);
DUnwindBacktrace.cpp68 bool Unwind(std::vector<uintptr_t>* frames, std::vector<unwindstack::LocalFrameData>* frame_info, s… in Unwind() argument
76 frames->clear(); in Unwind()
82 frames->push_back(frame.pc); in Unwind()
DUnwindBacktrace.h39 bool Unwind(std::vector<uintptr_t>* frames, std::vector<unwindstack::LocalFrameData>* info, size_t …
Dmalloc_debug.h56 uintptr_t frames[0]; member
DREADME.md103 of frames captured will speed the allocations up.
105 Note that any backtrace frames that occur within the malloc backtrace library
108 If MAX\_FRAMES is present, it indicates the maximum number of frames to
109 capture in a backtrace. The default is 16 frames, the maximumum value
135 If MAX\_FRAMES is present, it indicates the maximum number of frames to
136 capture in a backtrace. The default is 16 frames, the maximumum value
165 that is extra thorough and can unwind through Java frames. This will run
200 option is enabled. By default, a maximum of 16 frames will be recorded,
238 backtrace frames to capture when an allocation is freed.
240 If MAX\_FRAMES is present, it indicates the number of frames to capture.
[all …]
DREADME_marshmallow_and_earlier.md50 first 16 frames of the backtrace will be captured.
91 only up to 16 frames will be recorded.
DREADME_api.md43 incorrectly set to the number of frames in the backtrace.
/bionic/libc/kernel/uapi/linux/can/
Dbcm.h34 struct can_frame frames[0]; member
/bionic/libc/bionic/
Dmalloc_common_dynamic.cpp461 extern "C" ssize_t malloc_backtrace(void* pointer, uintptr_t* frames, size_t frame_count) { in malloc_backtrace() argument
466 return reinterpret_cast<malloc_backtrace_func_t>(func)(pointer, frames, frame_count); in malloc_backtrace()
/bionic/libc/malloc_hooks/
Dmalloc_hooks.cpp57 ssize_t hooks_malloc_backtrace(void* pointer, uintptr_t* frames, size_t frame_count);
/bionic/libc/kernel/uapi/linux/
Drkisp1-config.h194 __u8 frames; member
/bionic/docs/
Dfdtrack.md66 * Chasing the frame pointer will often result in multiple frames inside the
/bionic/libc/kernel/uapi/sound/
Dasound.h476 snd_pcm_uframes_t frames; member
481 snd_pcm_uframes_t frames; member