Home
last modified time | relevance | path

Searched refs:word_t (Results 1 – 11 of 11) sorted by relevance

/system/core/libbacktrace/
DBacktracePtrace.cpp34 static bool PtraceRead(pid_t tid, uintptr_t addr, word_t* out_value) { in PtraceRead()
39 if (*out_value == static_cast<word_t>(-1) && errno) { in PtraceRead()
46 bool BacktracePtrace::ReadWord(uintptr_t ptr, word_t* out_value) { in ReadWord()
78 word_t data_word; in Read()
79 size_t align_bytes = addr & (sizeof(word_t) - 1); in Read()
81 if (!PtraceRead(Tid(), addr & ~(sizeof(word_t) - 1), &data_word)) { in Read()
84 size_t copy_bytes = MIN(sizeof(word_t) - align_bytes, bytes); in Read()
92 size_t num_words = bytes / sizeof(word_t); in Read()
97 memcpy(buffer, &data_word, sizeof(word_t)); in Read()
98 buffer += sizeof(word_t); in Read()
[all …]
DBacktrace.cpp60 bool Backtrace::VerifyReadWordArgs(uintptr_t ptr, word_t* out_value) { in VerifyReadWordArgs()
61 if (ptr & (sizeof(word_t)-1)) { in VerifyReadWordArgs()
63 *out_value = static_cast<word_t>(-1); in VerifyReadWordArgs()
DBacktraceCurrent.cpp39 bool BacktraceCurrent::ReadWord(uintptr_t ptr, word_t* out_value) { in ReadWord()
47 *out_value = *reinterpret_cast<word_t*>(ptr); in ReadWord()
51 *out_value = static_cast<word_t>(-1); in ReadWord()
DBacktracePtrace.h34 bool ReadWord(uintptr_t ptr, word_t* out_value);
DBacktraceCurrent.h45 bool ReadWord(uintptr_t ptr, word_t* out_value) override;
DBacktraceOffline.h81 bool ReadWord(uintptr_t ptr, word_t* out_value) override;
Dbacktrace_test.cpp999 for (size_t i = 1; i < sizeof(word_t); i++) { in RunReadTest()
1000 bytes_read = backtrace->Read(read_addr + i, data, 2 * sizeof(word_t)); in RunReadTest()
1001 ASSERT_EQ(2 * sizeof(word_t), bytes_read); in RunReadTest()
1002 ASSERT_TRUE(memcmp(data, &expected[i], 2 * sizeof(word_t)) == 0) in RunReadTest()
1007 for (size_t i = 1; i < sizeof(word_t); i++) { in RunReadTest()
1008 for (size_t j = 1; j < sizeof(word_t); j++) { in RunReadTest()
DBacktraceOffline.cpp191 bool BacktraceOffline::ReadWord(uintptr_t ptr, word_t* out_value) { in ReadWord()
192 size_t bytes_read = Read(ptr, reinterpret_cast<uint8_t*>(out_value), sizeof(word_t)); in ReadWord()
193 return bytes_read == sizeof(word_t); in ReadWord()
/system/core/include/backtrace/
DBacktrace.h31 typedef uint64_t word_t; typedef
34 typedef uint32_t word_t; typedef
114 virtual bool ReadWord(uintptr_t ptr, word_t* out_value) = 0;
159 virtual bool VerifyReadWordArgs(uintptr_t ptr, word_t* out_value);
/system/core/debuggerd/
Dtombstone.cpp241 word_t stack_data[words]; in dump_stack_segment()
242 …es_read = backtrace->Read(*sp, reinterpret_cast<uint8_t*>(&stack_data[0]), sizeof(word_t) * words); in dump_stack_segment()
243 words = bytes_read / sizeof(word_t); in dump_stack_segment()
271 *sp += sizeof(word_t); in dump_stack_segment()
292 word_t sp = backtrace->GetFrame(first)->sp - STACK_WORDS * sizeof(word_t); in dump_stack()
309 size_t words = frame->stack_size / sizeof(word_t); in dump_stack()
343 word_t data; in dump_abort_message()
344 size_t len = sizeof(word_t); in dump_abort_message()
348 address += sizeof(word_t); in dump_abort_message()
350 while (len > 0 && (*p++ = (data >> (sizeof(word_t) - len) * 8) & 0xff) != 0) { in dump_abort_message()
/system/core/debuggerd/test/
DBacktraceMock.h52 virtual bool ReadWord(uintptr_t, word_t*) { return false;} in ReadWord() argument