/system/core/libcorkscrew/ |
D | ptrace.c | 102 ptrace_context_t* context = in load_ptrace_context() local 104 if (context) { in load_ptrace_context() 105 context->map_info_list = load_map_info_list(pid); in load_ptrace_context() 106 for (map_info_t* mi = context->map_info_list; mi; mi = mi->next) { in load_ptrace_context() 110 return context; in load_ptrace_context() 127 void free_ptrace_context(ptrace_context_t* context) { in free_ptrace_context() argument 128 for (map_info_t* mi = context->map_info_list; mi; mi = mi->next) { in free_ptrace_context() 131 free_map_info_list(context->map_info_list); in free_ptrace_context() 134 void find_symbol_ptrace(const ptrace_context_t* context, in find_symbol_ptrace() argument 136 const map_info_t* mi = find_map_info(context->map_info_list, addr); in find_symbol_ptrace()
|
D | backtrace.c | 74 static _Unwind_Reason_Code unwind_backtrace_callback(struct _Unwind_Context* context, void* arg) { in unwind_backtrace_callback() argument 76 uintptr_t pc = _Unwind_GetIP(context); in unwind_backtrace_callback() 228 ssize_t unwind_backtrace_ptrace(pid_t tid, const ptrace_context_t* context, in unwind_backtrace_ptrace() argument 231 return unwind_backtrace_ptrace_arch(tid, context, backtrace, ignore_depth, max_depth); in unwind_backtrace_ptrace() 273 void get_backtrace_symbols_ptrace(const ptrace_context_t* context, in get_backtrace_symbols_ptrace() argument 283 find_symbol_ptrace(context, frame->absolute_pc, &mi, &s); in get_backtrace_symbols_ptrace()
|
D | backtrace-arch.h | 38 ssize_t unwind_backtrace_ptrace_arch(pid_t tid, const ptrace_context_t* context,
|
/system/netd/ |
D | MDnsSdListener.cpp | 69 Context *context = new Context(requestId, mListener); in discover() local 70 DNSServiceRef *ref = mMonitor->allocateServiceRef(requestId, context); in discover() 82 domain, &MDnsSdListenerDiscoverCallback, context); in discover() 99 MDnsSdListener::Context *context = reinterpret_cast<MDnsSdListener::Context *>(inContext); in MDnsSdListenerDiscoverCallback() local 101 int refNumber = context->mRefNumber; in MDnsSdListenerDiscoverCallback() 105 context->mListener->sendBroadcast(ResponseCode::ServiceDiscoveryFailed, msg, false); in MDnsSdListenerDiscoverCallback() 125 context->mListener->sendBroadcast(respCode, msg, false); in MDnsSdListenerDiscoverCallback() 161 Context *context = new Context(requestId, mListener); in serviceRegister() local 162 DNSServiceRef *ref = mMonitor->allocateServiceRef(requestId, context); in serviceRegister() 174 context); in serviceRegister() [all …]
|
D | MDnsSdListener.h | 89 Element(int id, Context *context) in Element() argument 90 : mId(id), mNext(NULL), mContext(context), mReady(0) {} in Element()
|
/system/core/include/cutils/ |
D | hashmap.h | 83 void* (*initialValue)(void* key, void* context), void* context); 101 bool (*callback)(void* key, void* value, void* context), 102 void* context);
|
/system/core/debuggerd/ |
D | tombstone.c | 204 static void dump_backtrace(const ptrace_context_t* context __attribute((unused)), in dump_backtrace() 210 get_backtrace_symbols_ptrace(context, backtrace, frames, backtrace_symbols); in dump_backtrace() 220 static void dump_stack_segment(const ptrace_context_t* context, log_t* log, pid_t tid, in dump_stack_segment() argument 230 find_symbol_ptrace(context, stack_content, &mi, &symbol); in dump_stack_segment() 268 static void dump_stack(const ptrace_context_t* context, log_t* log, pid_t tid, bool at_fault, in dump_stack() argument 290 dump_stack_segment(context, log, tid, only_in_tombstone, &sp, STACK_WORDS, -1); in dump_stack() 304 dump_stack_segment(context, log, tid, only_in_tombstone, &sp, STACK_WORDS, i); in dump_stack() 315 dump_stack_segment(context, log, tid, only_in_tombstone, &sp, words, i); in dump_stack() 320 static void dump_backtrace_and_stack(const ptrace_context_t* context, log_t* log, pid_t tid, in dump_backtrace_and_stack() argument 323 ssize_t frames = unwind_backtrace_ptrace(tid, context, backtrace, 0, STACK_DEPTH); in dump_backtrace_and_stack() [all …]
|
D | backtrace.c | 65 static void dump_thread(log_t* log, pid_t tid, ptrace_context_t* context, bool attached, in dump_thread() argument 94 ssize_t frames = unwind_backtrace_ptrace(tid, context, backtrace, 0, STACK_DEPTH); in dump_thread() 99 get_backtrace_symbols_ptrace(context, backtrace, frames, backtrace_symbols); in dump_thread() 121 ptrace_context_t* context = load_ptrace_context(tid); in dump_backtrace() local 123 dump_thread(&log, tid, context, true, detach_failed, total_sleep_time_usec); in dump_backtrace() 142 dump_thread(&log, new_tid, context, false, detach_failed, total_sleep_time_usec); in dump_backtrace() 148 free_ptrace_context(context); in dump_backtrace()
|
D | machine.h | 28 void dump_memory_and_code(const ptrace_context_t* context, log_t* log, pid_t tid, bool at_fault); 29 void dump_registers(const ptrace_context_t* context, log_t* log, pid_t tid, bool at_fault);
|
/system/extras/ext4_utils/ |
D | sha1.c | 198 void SHA1Init(context) in SHA1Init() argument 199 SHA1_CTX *context; in SHA1Init() 202 assert(context != 0); 205 context->state[0] = 0x67452301; 206 context->state[1] = 0xEFCDAB89; 207 context->state[2] = 0x98BADCFE; 208 context->state[3] = 0x10325476; 209 context->state[4] = 0xC3D2E1F0; 210 context->count[0] = context->count[1] = 0; 217 void SHA1Update(context, data, len) in SHA1Update() argument [all …]
|
/system/core/libusbhost/ |
D | usbhost.c | 128 static void watch_existing_subdirs(struct usb_host_context *context, in watch_existing_subdirs() argument 134 wds[0] = inotify_add_watch(context->fd, USB_FS_DIR, IN_CREATE | IN_DELETE); in watch_existing_subdirs() 141 ret = inotify_add_watch(context->fd, path, IN_CREATE | IN_DELETE); in watch_existing_subdirs() 149 struct usb_host_context *context = calloc(1, sizeof(struct usb_host_context)); in usb_host_init() local 150 if (!context) { in usb_host_init() 154 context->fd = inotify_init(); in usb_host_init() 155 if (context->fd < 0) { in usb_host_init() 157 free(context); in usb_host_init() 160 return context; in usb_host_init() 163 void usb_host_cleanup(struct usb_host_context *context) in usb_host_cleanup() argument [all …]
|
/system/extras/tests/memtest/ |
D | thumb.cpp | 8 extern "C" _Unwind_Reason_Code trace_function(_Unwind_Context *context, void *arg) in trace_function() argument 11 printf("0x%x\n", _Unwind_GetIP(context)); in trace_function()
|
/system/core/libcutils/ |
D | dir_hash.c | 41 SHA1_CTX context; in get_file_hash() local 65 SHA1Init(&context); in get_file_hash() 66 SHA1Update(&context, (unsigned char *) buf, len); in get_file_hash() 67 SHA1Final(md, &context); in get_file_hash() 77 SHA1Init(&context); in get_file_hash() 80 SHA1Update(&context, (unsigned char *) buf, len); in get_file_hash() 89 SHA1Final(md, &context); in get_file_hash()
|
D | str_parms.c | 78 static bool remove_pair(void *key, void *value, void *context) in remove_pair() argument 80 struct remove_ctxt *ctxt = context; in remove_pair() 287 static bool combine_strings(void *key, void *value, void *context) in combine_strings() argument 289 char **old_str = context; in combine_strings() 321 static bool dump_entry(void *key, void *value, void *context) in dump_entry() argument
|
D | hashmap.c | 252 void* (*initialValue)(void* key, void* context), void* context) { in hashmapMemoize() argument 267 void* value = initialValue(key, context); in hashmapMemoize() 307 bool (*callback)(void* key, void* value, void* context), in hashmapForEach() argument 308 void* context) { in hashmapForEach() 314 if (!callback(entry->key, entry->value, context)) { in hashmapForEach()
|
D | mq.c | 118 void* context; member 365 static bool peerProxyRemoveConnection(void* key, void* value, void* context) { in peerProxyRemoveConnection() argument 366 PeerProxy* deadPeer = (PeerProxy*) context; in peerProxyRemoveConnection() 1179 void (*free)(void* context); 1180 void* context; member 1186 = (SharedBytesFreer*) packet->context; in outgoingPacketFreeSharedBytes() 1187 sharedBytesFreer->free(sharedBytesFreer->context); in outgoingPacketFreeSharedBytes() 1201 void (*free)(void* context), void* context) { in peerSendSharedBytes() argument 1226 sharedBytesFreer->context = context; in peerSendSharedBytes() 1229 packet->context = sharedBytesFreer; in peerSendSharedBytes()
|
/system/core/debuggerd/x86/ |
D | machine.c | 34 void dump_memory_and_code(const ptrace_context_t* context __attribute((unused)), in dump_memory_and_code() 38 void dump_registers(const ptrace_context_t* context __attribute((unused)), in dump_registers()
|
/system/core/include/corkscrew/ |
D | backtrace.h | 75 ssize_t unwind_backtrace_ptrace(pid_t tid, const ptrace_context_t* context, 91 void get_backtrace_symbols_ptrace(const ptrace_context_t* context,
|
D | ptrace.h | 120 void free_ptrace_context(ptrace_context_t* context); 127 void find_symbol_ptrace(const ptrace_context_t* context,
|
/system/core/include/usbhost/ |
D | usbhost.h | 73 void usb_host_cleanup(struct usb_host_context *context); 84 void usb_host_run(struct usb_host_context *context,
|
/system/core/init/ |
D | parser.h | 30 void *context; member
|
/system/core/libcorkscrew/arch-x86/ |
D | backtrace-x86.c | 141 ssize_t unwind_backtrace_ptrace_arch(pid_t tid, const ptrace_context_t* context, in unwind_backtrace_ptrace_arch() argument 155 return unwind_backtrace_common(&memory, context->map_info_list, in unwind_backtrace_ptrace_arch()
|
/system/core/debuggerd/arm/ |
D | machine.c | 113 void dump_memory_and_code(const ptrace_context_t* context __attribute((unused)), in dump_memory_and_code() 149 void dump_registers(const ptrace_context_t* context __attribute((unused)), in dump_registers()
|
/system/core/libcorkscrew/arch-mips/ |
D | backtrace-mips.c | 174 ssize_t unwind_backtrace_ptrace_arch(pid_t tid, const ptrace_context_t* context, in unwind_backtrace_ptrace_arch() argument 192 return unwind_backtrace_common(&memory, context->map_info_list, in unwind_backtrace_ptrace_arch()
|
/system/core/debuggerd/mips/ |
D | machine.c | 103 void dump_memory_and_code(const ptrace_context_t* context __attribute((unused)), in dump_memory_and_code() 149 void dump_registers(const ptrace_context_t* context __attribute((unused)), in dump_registers()
|