Searched refs:context (Results 1 - 25 of 30) sorted by relevance

12

/system/core/debuggerd/
H A Dmachine.h28 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);
H A Dbacktrace.c65 static void dump_thread(log_t* log, pid_t tid, ptrace_context_t* context, bool attached, argument
94 ssize_t frames = unwind_backtrace_ptrace(tid, context, backtrace, 0, STACK_DEPTH);
99 get_backtrace_symbols_ptrace(context, backtrace, frames, backtrace_symbols);
121 ptrace_context_t* context = load_ptrace_context(tid); local
123 dump_thread(&log, tid, context, true, detach_failed, total_sleep_time_usec);
142 dump_thread(&log, new_tid, context, false, detach_failed, total_sleep_time_usec);
148 free_ptrace_context(context);
H A Dtombstone.c204 static void dump_backtrace(const ptrace_context_t* context __attribute((unused)),
210 get_backtrace_symbols_ptrace(context, backtrace, frames, backtrace_symbols);
220 static void dump_stack_segment(const ptrace_context_t* context, log_t* log, pid_t tid, argument
230 find_symbol_ptrace(context, stack_content, &mi, &symbol);
268 static void dump_stack(const ptrace_context_t* context, log_t* log, pid_t tid, bool at_fault, argument
290 dump_stack_segment(context, log, tid, only_in_tombstone, &sp, STACK_WORDS, -1);
304 dump_stack_segment(context, log, tid, only_in_tombstone, &sp, STACK_WORDS, i);
315 dump_stack_segment(context, log, tid, only_in_tombstone, &sp, words, i);
320 static void dump_backtrace_and_stack(const ptrace_context_t* context, log_t* log, pid_t tid, argument
323 ssize_t frames = unwind_backtrace_ptrace(tid, context, backtrac
330 dump_nearby_maps(const ptrace_context_t* context, log_t* log, pid_t tid) argument
393 dump_thread(const ptrace_context_t* context, log_t* log, pid_t tid, bool at_fault, int* total_sleep_time_usec) argument
406 dump_sibling_thread_report(const ptrace_context_t* context, log_t* log, pid_t pid, pid_t tid, int* total_sleep_time_usec) argument
617 ptrace_context_t* context = load_ptrace_context(tid); local
[all...]
/system/extras/tests/memtest/
H A Dthumb.cpp8 extern "C" _Unwind_Reason_Code trace_function(_Unwind_Context *context, void *arg) argument
11 printf("0x%x\n", _Unwind_GetIP(context));
/system/core/include/cutils/
H A Dhashmap.h83 void* (*initialValue)(void* key, void* context), void* context);
101 bool (*callback)(void* key, void* value, void* context),
102 void* context);
/system/core/init/
H A Dparser.h30 void *context; member in struct:parse_state
/system/core/libcorkscrew/
H A Dptrace.c102 ptrace_context_t* context = local
104 if (context) {
105 context->map_info_list = load_map_info_list(pid);
106 for (map_info_t* mi = context->map_info_list; mi; mi = mi->next) {
110 return context;
127 void free_ptrace_context(ptrace_context_t* context) { argument
128 for (map_info_t* mi = context->map_info_list; mi; mi = mi->next) {
131 free_map_info_list(context->map_info_list);
134 void find_symbol_ptrace(const ptrace_context_t* context, argument
136 const map_info_t* mi = find_map_info(context
[all...]
H A Dbacktrace-arch.h38 ssize_t unwind_backtrace_ptrace_arch(pid_t tid, const ptrace_context_t* context,
H A Dbacktrace.c74 static _Unwind_Reason_Code unwind_backtrace_callback(struct _Unwind_Context* context, void* arg) { argument
76 uintptr_t pc = _Unwind_GetIP(context);
228 ssize_t unwind_backtrace_ptrace(pid_t tid, const ptrace_context_t* context, argument
231 return unwind_backtrace_ptrace_arch(tid, context, backtrace, ignore_depth, max_depth);
273 void get_backtrace_symbols_ptrace(const ptrace_context_t* context, argument
283 find_symbol_ptrace(context, frame->absolute_pc, &mi, &s);
/system/netd/
H A DMDnsSdListener.cpp69 Context *context = new Context(requestId, mListener); local
70 DNSServiceRef *ref = mMonitor->allocateServiceRef(requestId, context);
82 domain, &MDnsSdListenerDiscoverCallback, context);
99 MDnsSdListener::Context *context = reinterpret_cast<MDnsSdListener::Context *>(inContext); local
101 int refNumber = context->mRefNumber;
105 context->mListener->sendBroadcast(ResponseCode::ServiceDiscoveryFailed, msg, false);
125 context->mListener->sendBroadcast(respCode, msg, false);
161 Context *context = new Context(requestId, mListener); local
162 DNSServiceRef *ref = mMonitor->allocateServiceRef(requestId, context);
174 context);
192 MDnsSdListener::Context *context = reinterpret_cast<MDnsSdListener::Context *>(inContext); local
217 Context *context = new Context(requestId, mListener); local
246 MDnsSdListener::Context *context = reinterpret_cast<MDnsSdListener::Context *>(inContext); local
272 Context *context = new Context(requestId, mListener); local
301 MDnsSdListener::Context *context = reinterpret_cast<MDnsSdListener::Context *>(inContext); local
332 Context *context = new Context(requestId, mListener); local
358 MDnsSdListener::Context *context = reinterpret_cast<MDnsSdListener::Context *>(inContext); local
640 allocateServiceRef(int id, Context *context) argument
[all...]
H A DMDnsSdListener.h89 Element(int id, Context *context) argument
90 : mId(id), mNext(NULL), mContext(context), mReady(0) {}
/system/core/debuggerd/x86/
H A Dmachine.c34 void dump_memory_and_code(const ptrace_context_t* context __attribute((unused)),
38 void dump_registers(const ptrace_context_t* context __attribute((unused)),
/system/core/include/corkscrew/
H A Dbacktrace.h75 ssize_t unwind_backtrace_ptrace(pid_t tid, const ptrace_context_t* context,
91 void get_backtrace_symbols_ptrace(const ptrace_context_t* context,
H A Dptrace.h46 /* ptrace() register context. */
69 /* ptrace() GET_REGS context. */
110 * The context can be used for any threads belonging to that process
112 * unwinding. The context can continue to be used to decode backtraces
118 * Frees a ptrace context.
120 void free_ptrace_context(ptrace_context_t* context);
127 void find_symbol_ptrace(const ptrace_context_t* context,
/system/core/libusbhost/
H A Dusbhost.c128 static void watch_existing_subdirs(struct usb_host_context *context, argument
134 wds[0] = inotify_add_watch(context->fd, USB_FS_DIR, IN_CREATE | IN_DELETE);
141 ret = inotify_add_watch(context->fd, path, IN_CREATE | IN_DELETE);
149 struct usb_host_context *context = calloc(1, sizeof(struct usb_host_context)); local
150 if (!context) {
154 context->fd = inotify_init();
155 if (context->fd < 0) {
157 free(context);
160 return context;
163 void usb_host_cleanup(struct usb_host_context *context) argument
169 usb_host_run(struct usb_host_context *context, usb_device_added_cb added_cb, usb_device_removed_cb removed_cb, usb_discovery_done_cb discovery_done_cb, void *client_data) argument
[all...]
/system/extras/ext4_utils/
H A Dsha1.c147 /* Copy context->state[] to working vars */
183 /* Add the working vars back into context.state[] */
196 * SHA1Init - Initialize new context
198 void SHA1Init(context)
199 SHA1_CTX *context;
202 assert(context != 0);
205 context->state[0] = 0x67452301;
206 context->state[1] = 0xEFCDAB89;
207 context->state[2] = 0x98BADCFE;
208 context
[all...]
/system/core/include/usbhost/
H A Dusbhost.h73 void usb_host_cleanup(struct usb_host_context *context);
84 void usb_host_run(struct usb_host_context *context,
/system/core/libcutils/
H A Ddir_hash.c41 SHA1_CTX context; local
65 SHA1Init(&context);
66 SHA1Update(&context, (unsigned char *) buf, len);
67 SHA1Final(md, &context);
77 SHA1Init(&context);
80 SHA1Update(&context, (unsigned char *) buf, len);
89 SHA1Final(md, &context);
H A Dstr_parms.c78 static bool remove_pair(void *key, void *value, void *context) argument
80 struct remove_ctxt *ctxt = context;
287 static bool combine_strings(void *key, void *value, void *context) argument
289 char **old_str = context;
321 static bool dump_entry(void *key, void *value, void *context) argument
H A Dhashmap.c252 void* (*initialValue)(void* key, void* context), void* context) {
267 void* value = initialValue(key, context);
307 bool (*callback)(void* key, void* value, void* context),
308 void* context) {
314 if (!callback(entry->key, entry->value, context)) {
251 hashmapMemoize(Hashmap* map, void* key, void* (*initialValue)(void* key, void* context), void* context) argument
306 hashmapForEach(Hashmap* map, bool (*callback)(void* key, void* value, void* context), void* context) argument
H A Dmq.c117 /** Optional context. */
118 void* context; member in struct:OutgoingPacket
365 static bool peerProxyRemoveConnection(void* key, void* value, void* context) { argument
366 PeerProxy* deadPeer = (PeerProxy*) context;
1179 void (*free)(void* context);
1180 void* context; member in struct:__anon401
1186 = (SharedBytesFreer*) packet->context;
1187 sharedBytesFreer->free(sharedBytesFreer->context);
1194 * free() with context after the bytes have been sent.
1201 void (*free)(void* context), voi
1200 peerSendSharedBytes(pid_t pid, char* bytes, size_t size, void (*free)(void* context), void* context) argument
[all...]
/system/core/debuggerd/arm/
H A Dmachine.c113 void dump_memory_and_code(const ptrace_context_t* context __attribute((unused)),
149 void dump_registers(const ptrace_context_t* context __attribute((unused)),
/system/core/debuggerd/mips/
H A Dmachine.c103 void dump_memory_and_code(const ptrace_context_t* context __attribute((unused)),
149 void dump_registers(const ptrace_context_t* context __attribute((unused)),
/system/core/libcorkscrew/arch-mips/
H A Dbacktrace-mips.c49 /* Machine context at the time a signal was raised. */
174 ssize_t unwind_backtrace_ptrace_arch(pid_t tid, const ptrace_context_t* context, argument
192 return unwind_backtrace_common(&memory, context->map_info_list,
/system/core/libcorkscrew/arch-x86/
H A Dbacktrace-x86.c64 /* Machine context at the time a signal was raised. */
141 ssize_t unwind_backtrace_ptrace_arch(pid_t tid, const ptrace_context_t* context, argument
155 return unwind_backtrace_common(&memory, context->map_info_list,

Completed in 217 milliseconds

12