/system/core/libcorkscrew/ |
H A D | ptrace.c | 38 void init_memory(memory_t* memory, const map_info_t* map_info_list) { argument 39 memory->tid = -1; 40 memory->map_info_list = map_info_list; 43 void init_memory_ptrace(memory_t* memory, pid_t tid) { argument 44 memory->tid = tid; 45 memory->map_info_list = NULL; 48 bool try_get_word(const memory_t* memory, uintptr_t ptr, uint32_t* out_value) { argument 55 if (memory->tid < 0) { 56 if (!is_readable_map(memory->map_info_list, ptr)) { 71 *out_value = ptrace(PTRACE_PEEKTEXT, memory 83 memory_t memory; local [all...] |
H A D | backtrace-arch.h | 32 uintptr_t rewind_pc_arch(const memory_t* memory, uintptr_t pc);
|
H A D | backtrace.c | 77 memory_t memory; member in struct:__anon160 88 add_backtrace_entry(rewind_pc_arch(&state->memory, pc), state->backtrace, 106 init_memory(&state.memory, milist);
|
/system/core/libcorkscrew/arch-x86/ |
H A D | backtrace-x86.c | 102 memory_t memory; member in struct:__anon153 105 uintptr_t rewind_pc_arch(const memory_t* memory __attribute__((unused)), uintptr_t pc) { 118 static bool try_get_byte(const memory_t* memory, uintptr_t ptr, uint8_t* out_value, uint32_t* cursor) { argument 126 if (!try_get_word(memory, lastptr, &buf)) { 136 static bool try_get_xbytes(const memory_t* memory, uintptr_t ptr, uint32_t* out_value, uint8_t bytes, uint32_t* cursor) { argument 144 if (!try_get_byte(memory, ptr, &buf, cursor)) { 154 static bool try_get_leb128(const memory_t* memory, uintptr_t ptr, uint32_t* out_value, uint32_t* cursor, bool sign_extend) { argument 159 if (!try_get_byte(memory, ptr, &buf, cursor)) { 179 static bool try_get_sleb128(const memory_t* memory, uintptr_t ptr, uint32_t* out_value, uint32_t* cursor) { argument 180 return try_get_leb128(memory, pt 184 try_get_uleb128(const memory_t* memory, uintptr_t ptr, uint32_t* out_value, uint32_t* cursor) argument 189 read_dwarf(const memory_t* memory, uintptr_t ptr, uint32_t* out_value, uint8_t encoding, uint32_t* cursor) argument 242 find_fde(const memory_t* memory, const map_info_t* map_info_list, uintptr_t pc) argument 319 execute_dwarf(const memory_t* memory, uintptr_t ptr, cie_info_t* cie_info, dwarf_state_t* dstate, uint32_t* cursor, dwarf_state_t* stack, uint8_t* stack_ptr) argument 483 get_old_register_value(const memory_t* memory, uint32_t cfa, dwarf_state_t* dstate, uint8_t reg, unwind_state_t* state, unwind_state_t* newstate) argument 522 update_state(const memory_t* memory, unwind_state_t* state, dwarf_state_t* dstate, cie_info_t* cie_info) argument 552 execute_fde(const memory_t* memory, const map_info_t* map_info_list, uintptr_t fde, unwind_state_t* state) argument 759 unwind_backtrace_common(const memory_t* memory, const map_info_t* map_info_list, unwind_state_t* state, backtrace_frame_t* backtrace, size_t ignore_depth, size_t max_depth) argument 837 memory_t memory; local [all...] |
/system/core/libcorkscrew/arch-mips/ |
H A D | backtrace-mips.c | 64 uintptr_t rewind_pc_arch(const memory_t* memory, uintptr_t pc) { argument 72 static ssize_t unwind_backtrace_common(const memory_t* memory, argument 80 uintptr_t pc = index ? rewind_pc_arch(memory, state->pc) : state->pc; 98 if (!try_get_word(memory, addr, &op)) 129 if (!try_get_word(memory, state->sp + ra_offset, &next_ra)) 170 memory_t memory; local 171 init_memory(&memory, map_info_list); 172 return unwind_backtrace_common(&memory, map_info_list, 193 memory_t memory; local 194 init_memory_ptrace(&memory, ti [all...] |
/system/core/libcorkscrew/arch-arm/ |
H A D | backtrace-arm.c | 121 static uintptr_t get_exception_handler(const memory_t* memory, argument 131 if (memory->tid < 0) { 156 if (!try_get_word(memory, entry, &entry_prel_pc)) { 168 if (!try_get_word(memory, next_entry, &next_entry_prel_pc)) { 181 if (!try_get_word(memory, entry_handler_ptr, &entry_handler)) { 210 static bool try_next_byte(const memory_t* memory, byte_stream_t* stream, uint8_t* out_value) { argument 214 if (!try_get_word(memory, stream->ptr, &stream->word)) { 244 static bool try_pop_registers(const memory_t* memory, unwind_state_t* state, uint32_t mask) { argument 250 if (!try_get_word(memory, sp, &value)) { 279 static bool execute_personality_routine(const memory_t* memory, argument 441 try_get_half_word(const memory_t* memory, uint32_t pc, uint16_t* out_value) argument 450 rewind_pc_arch(const memory_t* memory, uintptr_t pc) argument 486 unwind_backtrace_common(const memory_t* memory, const map_info_t* map_info_list, unwind_state_t* state, backtrace_frame_t* backtrace, size_t ignore_depth, size_t max_depth) argument 579 memory_t memory; local 597 memory_t memory; local [all...] |
/system/core/libcutils/arch-mips/ |
H A D | android_memset.c | 17 #include <cutils/memory.h>
|
/system/core/include/corkscrew/ |
H A D | ptrace.h | 39 /* Describes how to access memory from a process. */ 82 * Initializes a memory structure for accessing memory from this process. 84 void init_memory(memory_t* memory, const map_info_t* map_info_list); 87 * Initializes a memory structure for accessing memory from another process 90 void init_memory_ptrace(memory_t* memory, pid_t tid); 93 * Reads a word of memory safely. 94 * If the memory is local, ensures that the address is readable before dereferencing it. 97 bool try_get_word(const memory_t* memory, uintptr_ [all...] |
/system/core/sh/ |
H A D | redir.c | 103 * stdout, is saved in memory. 114 char memory[10]; /* file descriptors to write to memory */ local 117 memory[i] = 0; 118 memory[1] = flags & REDIR_BACKQ; 143 openredirect(n, memory, flags); 165 openredirect(n, memory, flags); 167 if (memory[1]) 169 if (memory[2]) 175 openredirect(union node *redir, char memory[1 argument [all...] |
/system/core/libcutils/ |
H A D | memory.c | 17 #include <cutils/memory.h>
|
H A D | Android.mk | 122 LOCAL_SRC_FILES += arch-x86/android_memset16.S arch-x86/android_memset32.S memory.c 127 LOCAL_SRC_FILES += memory.c 150 LOCAL_SRC_FILES := str_parms.c hashmap.c memory.c
|
H A D | str_parms.c | 29 #include <cutils/memory.h>
|
/system/extras/libc_test/ |
H A D | main.cpp | 233 // string, create some strings that end near unreadable memory. 235 char *memory = (char*)memalign(pagesize, 2 * pagesize); local 236 if (memory == NULL) { 237 perror("Unable to allocate memory.\n"); 242 if (mprotect(&memory[pagesize], pagesize, PROT_NONE) != 0) { 252 perror("Unable to allocate memory.\n"); 257 string = &memory[pagesize-i-1]; 309 perror("Unable to allocate memory.\n"); 403 perror("Unable to allocate memory.\n"); 441 // string, create strings that end near unreadable memory [all...] |
/system/core/adb/ |
H A D | test_track_devices.c | 7 #include <memory.h>
|
H A D | test_track_jdwp.c | 7 #include <memory.h>
|
/system/core/init/ |
H A D | logo.c | 31 #include <cutils/memory.h>
|
/system/core/libutils/ |
H A D | FileMap.cpp | 34 #include <memory.h>
|
H A D | String16.cpp | 25 #include <memory.h>
|
H A D | Threads.cpp | 27 #include <memory.h> 167 // assigned after the child starts. Use memory barrier / lock if the child 731 // Exiting scope of mLock is a memory barrier and allows new thread to run
|
/system/core/libcutils/tests/memset_mips/ |
H A D | test_memset.c | 4 #include <cutils/memory.h> 21 asm volatile (".set push; .set mips32r2; rdhwr %[res],$2; .set pop" : [res] "=r" (res) : : "memory");
|
/system/core/libpixelflinger/ |
H A D | clear.cpp | 18 #include <cutils/memory.h>
|
H A D | trap.cpp | 26 #include <cutils/memory.h> 948 * If this happens, the code below won't corrupt memory but the
|
H A D | scanline.cpp | 26 #include <cutils/memory.h>
|