Searched refs:memory (Results 1 - 23 of 23) sorted by relevance

/system/core/libcorkscrew/
H A Dptrace.c38 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 Dbacktrace-arch.h32 uintptr_t rewind_pc_arch(const memory_t* memory, uintptr_t pc);
H A Dbacktrace.c77 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 Dbacktrace-x86.c102 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 Dbacktrace-mips.c64 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 Dbacktrace-arm.c121 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 Dandroid_memset.c17 #include <cutils/memory.h>
/system/core/include/corkscrew/
H A Dptrace.h39 /* 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 Dredir.c103 * 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 Dmemory.c17 #include <cutils/memory.h>
H A DAndroid.mk122 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 Dstr_parms.c29 #include <cutils/memory.h>
/system/extras/libc_test/
H A Dmain.cpp233 // 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 Dtest_track_devices.c7 #include <memory.h>
H A Dtest_track_jdwp.c7 #include <memory.h>
/system/core/init/
H A Dlogo.c31 #include <cutils/memory.h>
/system/core/libutils/
H A DFileMap.cpp34 #include <memory.h>
H A DString16.cpp25 #include <memory.h>
H A DThreads.cpp27 #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 Dtest_memset.c4 #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 Dclear.cpp18 #include <cutils/memory.h>
H A Dtrap.cpp26 #include <cutils/memory.h>
948 * If this happens, the code below won't corrupt memory but the
H A Dscanline.cpp26 #include <cutils/memory.h>

Completed in 207 milliseconds