Searched defs:context (Results 1 - 17 of 17) sorted by path

/system/core/debuggerd/
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/core/init/
H A Dparser.h30 void *context; member in struct:parse_state
/system/core/libcorkscrew/arch-arm/
H A Dbacktrace-arm.c42 * an abstract machine context consisting of just the ARM core registers.
69 /* Machine context at the time a signal was raised. */
585 ssize_t unwind_backtrace_ptrace_arch(pid_t tid, const ptrace_context_t* context, argument
599 return unwind_backtrace_common(&memory, context->map_info_list, &state,
/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,
/system/core/libcorkscrew/
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);
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...]
/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 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...]
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
/system/core/libpixelflinger/
H A Dpixelflinger.cpp822 ssize_t gglInit(GGLContext** context) argument
826 // always align the context on cache lines
830 *context = (GGLContext*)c;
/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/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/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) {}

Completed in 2288 milliseconds