Lines Matching refs:proc

92 DEFINE_SHOW_ATTRIBUTE(proc);
217 #define binder_proc_lock(proc) _binder_proc_lock(proc, __LINE__) argument
219 _binder_proc_lock(struct binder_proc *proc, int line) in _binder_proc_lock() argument
220 __acquires(&proc->outer_lock) in _binder_proc_lock()
224 spin_lock(&proc->outer_lock); in _binder_proc_lock()
235 _binder_proc_unlock(struct binder_proc *proc, int line) in _binder_proc_unlock() argument
236 __releases(&proc->outer_lock) in _binder_proc_unlock()
240 spin_unlock(&proc->outer_lock); in _binder_proc_unlock()
249 #define binder_inner_proc_lock(proc) _binder_inner_proc_lock(proc, __LINE__) argument
251 _binder_inner_proc_lock(struct binder_proc *proc, int line) in _binder_inner_proc_lock() argument
252 __acquires(&proc->inner_lock) in _binder_inner_proc_lock()
256 spin_lock(&proc->inner_lock); in _binder_inner_proc_lock()
265 #define binder_inner_proc_unlock(proc) _binder_inner_proc_unlock(proc, __LINE__) argument
267 _binder_inner_proc_unlock(struct binder_proc *proc, int line) in _binder_inner_proc_unlock() argument
268 __releases(&proc->inner_lock) in _binder_inner_proc_unlock()
272 spin_unlock(&proc->inner_lock); in _binder_inner_proc_unlock()
317 __acquires(&node->lock) __acquires(&node->proc->inner_lock) in _binder_node_inner_lock()
322 if (node->proc) in _binder_node_inner_lock()
323 binder_inner_proc_lock(node->proc); in _binder_node_inner_lock()
326 __acquire(&node->proc->inner_lock); in _binder_node_inner_lock()
338 __releases(&node->lock) __releases(&node->proc->inner_lock) in _binder_node_inner_unlock()
340 struct binder_proc *proc = node->proc; in _binder_node_inner_unlock() local
344 if (proc) in _binder_node_inner_unlock()
345 binder_inner_proc_unlock(proc); in _binder_node_inner_unlock()
348 __release(&node->proc->inner_lock); in _binder_node_inner_unlock()
364 static bool binder_worklist_empty(struct binder_proc *proc, in binder_worklist_empty() argument
369 binder_inner_proc_lock(proc); in binder_worklist_empty()
371 binder_inner_proc_unlock(proc); in binder_worklist_empty()
444 binder_inner_proc_lock(thread->proc); in binder_enqueue_thread_work()
446 binder_inner_proc_unlock(thread->proc); in binder_enqueue_thread_work()
464 binder_dequeue_work(struct binder_proc *proc, struct binder_work *work) in binder_dequeue_work() argument
466 binder_inner_proc_lock(proc); in binder_dequeue_work()
468 binder_inner_proc_unlock(proc); in binder_dequeue_work()
483 binder_defer_work(struct binder_proc *proc, enum binder_deferred_state defer);
485 static void binder_free_proc(struct binder_proc *proc);
494 !binder_worklist_empty_ilocked(&thread->proc->todo)); in binder_has_work_ilocked()
501 binder_inner_proc_lock(thread->proc); in binder_has_work()
503 binder_inner_proc_unlock(thread->proc); in binder_has_work()
516 static void binder_wakeup_poll_threads_ilocked(struct binder_proc *proc, in binder_wakeup_poll_threads_ilocked() argument
522 for (n = rb_first(&proc->threads); n != NULL; n = rb_next(n)) { in binder_wakeup_poll_threads_ilocked()
547 binder_select_thread_ilocked(struct binder_proc *proc) in binder_select_thread_ilocked() argument
551 assert_spin_locked(&proc->inner_lock); in binder_select_thread_ilocked()
552 thread = list_first_entry_or_null(&proc->waiting_threads, in binder_select_thread_ilocked()
578 static void binder_wakeup_thread_ilocked(struct binder_proc *proc, in binder_wakeup_thread_ilocked() argument
582 assert_spin_locked(&proc->inner_lock); in binder_wakeup_thread_ilocked()
605 binder_wakeup_poll_threads_ilocked(proc, sync); in binder_wakeup_thread_ilocked()
608 static void binder_wakeup_proc_ilocked(struct binder_proc *proc) in binder_wakeup_proc_ilocked() argument
610 struct binder_thread *thread = binder_select_thread_ilocked(proc); in binder_wakeup_proc_ilocked()
612 binder_wakeup_thread_ilocked(proc, thread, /* sync = */false); in binder_wakeup_proc_ilocked()
633 static struct binder_node *binder_get_node_ilocked(struct binder_proc *proc, in binder_get_node_ilocked() argument
636 struct rb_node *n = proc->nodes.rb_node; in binder_get_node_ilocked()
639 assert_spin_locked(&proc->inner_lock); in binder_get_node_ilocked()
661 static struct binder_node *binder_get_node(struct binder_proc *proc, in binder_get_node() argument
666 binder_inner_proc_lock(proc); in binder_get_node()
667 node = binder_get_node_ilocked(proc, ptr); in binder_get_node()
668 binder_inner_proc_unlock(proc); in binder_get_node()
673 struct binder_proc *proc, in binder_init_node_ilocked() argument
677 struct rb_node **p = &proc->nodes.rb_node; in binder_init_node_ilocked()
684 assert_spin_locked(&proc->inner_lock); in binder_init_node_ilocked()
709 rb_insert_color(&node->rb_node, &proc->nodes); in binder_init_node_ilocked()
711 node->proc = proc; in binder_init_node_ilocked()
723 proc->pid, current->pid, node->debug_id, in binder_init_node_ilocked()
729 static struct binder_node *binder_new_node(struct binder_proc *proc, in binder_new_node() argument
737 binder_inner_proc_lock(proc); in binder_new_node()
738 node = binder_init_node_ilocked(proc, new_node, fp); in binder_new_node()
739 binder_inner_proc_unlock(proc); in binder_new_node()
759 struct binder_proc *proc = node->proc; in binder_inc_node_nilocked() local
762 if (proc) in binder_inc_node_nilocked()
763 assert_spin_locked(&proc->inner_lock); in binder_inc_node_nilocked()
768 !(node->proc && in binder_inc_node_nilocked()
769 node == node->proc->context->binder_context_mgr_node && in binder_inc_node_nilocked()
819 struct binder_proc *proc = node->proc; in binder_dec_node_nilocked() local
822 if (proc) in binder_dec_node_nilocked()
823 assert_spin_locked(&proc->inner_lock); in binder_dec_node_nilocked()
839 if (proc && (node->has_strong_ref || node->has_weak_ref)) { in binder_dec_node_nilocked()
841 binder_enqueue_work_ilocked(&node->work, &proc->todo); in binder_dec_node_nilocked()
842 binder_wakeup_proc_ilocked(proc); in binder_dec_node_nilocked()
847 if (proc) { in binder_dec_node_nilocked()
849 rb_erase(&node->rb_node, &proc->nodes); in binder_dec_node_nilocked()
913 if (node->proc) in binder_inc_node_tmpref()
914 binder_inner_proc_lock(node->proc); in binder_inc_node_tmpref()
918 if (node->proc) in binder_inc_node_tmpref()
919 binder_inner_proc_unlock(node->proc); in binder_inc_node_tmpref()
936 if (!node->proc) in binder_dec_node_tmpref()
942 if (!node->proc) in binder_dec_node_tmpref()
963 static struct binder_ref *binder_get_ref_olocked(struct binder_proc *proc, in binder_get_ref_olocked() argument
966 struct rb_node *n = proc->refs_by_desc.rb_node; in binder_get_ref_olocked()
1005 struct binder_proc *proc, in binder_get_ref_for_node_olocked() argument
1009 struct binder_context *context = proc->context; in binder_get_ref_for_node_olocked()
1010 struct rb_node **p = &proc->refs_by_node.rb_node; in binder_get_ref_for_node_olocked()
1031 new_ref->proc = proc; in binder_get_ref_for_node_olocked()
1034 rb_insert_color(&new_ref->rb_node_node, &proc->refs_by_node); in binder_get_ref_for_node_olocked()
1037 for (n = rb_first(&proc->refs_by_desc); n != NULL; n = rb_next(n)) { in binder_get_ref_for_node_olocked()
1044 p = &proc->refs_by_desc.rb_node; in binder_get_ref_for_node_olocked()
1057 rb_insert_color(&new_ref->rb_node_desc, &proc->refs_by_desc); in binder_get_ref_for_node_olocked()
1064 proc->pid, new_ref->data.debug_id, new_ref->data.desc, in binder_get_ref_for_node_olocked()
1076 ref->proc->pid, ref->data.debug_id, ref->data.desc, in binder_cleanup_ref_olocked()
1079 rb_erase(&ref->rb_node_desc, &ref->proc->refs_by_desc); in binder_cleanup_ref_olocked()
1080 rb_erase(&ref->rb_node_node, &ref->proc->refs_by_node); in binder_cleanup_ref_olocked()
1104 ref->proc->pid, ref->data.debug_id, in binder_cleanup_ref_olocked()
1106 binder_dequeue_work(ref->proc, &ref->death->work); in binder_cleanup_ref_olocked()
1159 ref->proc->pid, ref->data.debug_id, in binder_dec_ref_olocked()
1170 ref->proc->pid, ref->data.debug_id, in binder_dec_ref_olocked()
1196 struct binder_proc *proc, in binder_get_node_from_ref() argument
1203 binder_proc_lock(proc); in binder_get_node_from_ref()
1204 ref = binder_get_ref_olocked(proc, desc, need_strong_ref); in binder_get_node_from_ref()
1215 binder_proc_unlock(proc); in binder_get_node_from_ref()
1220 binder_proc_unlock(proc); in binder_get_node_from_ref()
1252 static int binder_update_ref_for_handle(struct binder_proc *proc, in binder_update_ref_for_handle() argument
1260 binder_proc_lock(proc); in binder_update_ref_for_handle()
1261 ref = binder_get_ref_olocked(proc, desc, strong); in binder_update_ref_for_handle()
1273 binder_proc_unlock(proc); in binder_update_ref_for_handle()
1280 binder_proc_unlock(proc); in binder_update_ref_for_handle()
1295 static int binder_dec_ref_for_handle(struct binder_proc *proc, in binder_dec_ref_for_handle() argument
1298 return binder_update_ref_for_handle(proc, desc, false, strong, rdata); in binder_dec_ref_for_handle()
1315 static int binder_inc_ref_for_node(struct binder_proc *proc, in binder_inc_ref_for_node() argument
1325 binder_proc_lock(proc); in binder_inc_ref_for_node()
1326 ref = binder_get_ref_for_node_olocked(proc, node, NULL); in binder_inc_ref_for_node()
1328 binder_proc_unlock(proc); in binder_inc_ref_for_node()
1332 binder_proc_lock(proc); in binder_inc_ref_for_node()
1333 ref = binder_get_ref_for_node_olocked(proc, node, new_ref); in binder_inc_ref_for_node()
1337 binder_proc_unlock(proc); in binder_inc_ref_for_node()
1351 assert_spin_locked(&target_thread->proc->inner_lock); in binder_pop_transaction_ilocked()
1377 binder_inner_proc_lock(thread->proc); in binder_thread_dec_tmpref()
1380 binder_inner_proc_unlock(thread->proc); in binder_thread_dec_tmpref()
1384 binder_inner_proc_unlock(thread->proc); in binder_thread_dec_tmpref()
1399 static void binder_proc_dec_tmpref(struct binder_proc *proc) in binder_proc_dec_tmpref() argument
1401 binder_inner_proc_lock(proc); in binder_proc_dec_tmpref()
1402 proc->tmp_ref--; in binder_proc_dec_tmpref()
1403 if (proc->is_dead && RB_EMPTY_ROOT(&proc->threads) && in binder_proc_dec_tmpref()
1404 !proc->tmp_ref) { in binder_proc_dec_tmpref()
1405 binder_inner_proc_unlock(proc); in binder_proc_dec_tmpref()
1406 binder_free_proc(proc); in binder_proc_dec_tmpref()
1409 binder_inner_proc_unlock(proc); in binder_proc_dec_tmpref()
1448 __acquires(&t->from->proc->inner_lock) in binder_get_txn_from_and_acq_inner()
1454 __acquire(&from->proc->inner_lock); in binder_get_txn_from_and_acq_inner()
1457 binder_inner_proc_lock(from->proc); in binder_get_txn_from_and_acq_inner()
1462 binder_inner_proc_unlock(from->proc); in binder_get_txn_from_and_acq_inner()
1463 __acquire(&from->proc->inner_lock); in binder_get_txn_from_and_acq_inner()
1494 from_proc = t->from ? t->from->proc->pid : 0; in binder_txn_latency_free()
1543 target_thread->proc->pid, in binder_send_failed_reply()
1563 binder_inner_proc_unlock(target_thread->proc); in binder_send_failed_reply()
1568 __release(&target_thread->proc->inner_lock); in binder_send_failed_reply()
1619 static size_t binder_get_object(struct binder_proc *proc, in binder_get_object() argument
1630 binder_alloc_copy_from_buffer(&proc->alloc, object, buffer, in binder_get_object()
1685 struct binder_proc *proc, in binder_validate_ptr() argument
1701 if (binder_alloc_copy_from_buffer(&proc->alloc, &object_offset, in binder_validate_ptr()
1705 object_size = binder_get_object(proc, b, object_offset, object); in binder_validate_ptr()
1753 static bool binder_validate_fixup(struct binder_proc *proc, in binder_validate_fixup() argument
1770 size_t object_size = binder_get_object(proc, b, last_obj_offset, in binder_validate_fixup()
1785 if (binder_alloc_copy_from_buffer(&proc->alloc, in binder_validate_fixup()
1854 static void binder_transaction_buffer_release(struct binder_proc *proc, in binder_transaction_buffer_release() argument
1865 proc->pid, buffer->debug_id, in binder_transaction_buffer_release()
1882 if (!binder_alloc_copy_from_buffer(&proc->alloc, &object_offset, in binder_transaction_buffer_release()
1885 object_size = binder_get_object(proc, buffer, in binder_transaction_buffer_release()
1900 node = binder_get_node(proc, fp->binder); in binder_transaction_buffer_release()
1920 ret = binder_dec_ref_for_handle(proc, fp->handle, in binder_transaction_buffer_release()
1959 if (proc->tsk != current->group_leader) { in binder_transaction_buffer_release()
1971 parent = binder_validate_ptr(proc, buffer, &ptr_object, in binder_transaction_buffer_release()
2012 &proc->alloc, &fd, buffer, in binder_transaction_buffer_release()
2040 struct binder_proc *proc = thread->proc; in binder_translate_binder() local
2045 node = binder_get_node(proc, fp->binder); in binder_translate_binder()
2047 node = binder_new_node(proc, fp); in binder_translate_binder()
2053 proc->pid, thread->pid, (u64)fp->binder, in binder_translate_binder()
2059 if (security_binder_transfer_binder(proc->tsk, target_proc->tsk)) { in binder_translate_binder()
2092 struct binder_proc *proc = thread->proc; in binder_translate_handle() local
2098 node = binder_get_node_from_ref(proc, fp->handle, in binder_translate_handle()
2102 proc->pid, thread->pid, fp->handle); in binder_translate_handle()
2105 if (security_binder_transfer_binder(proc->tsk, target_proc->tsk)) { in binder_translate_handle()
2111 if (node->proc == target_proc) { in binder_translate_handle()
2118 if (node->proc) in binder_translate_handle()
2119 binder_inner_proc_lock(node->proc); in binder_translate_handle()
2121 __acquire(&node->proc->inner_lock); in binder_translate_handle()
2125 if (node->proc) in binder_translate_handle()
2126 binder_inner_proc_unlock(node->proc); in binder_translate_handle()
2128 __release(&node->proc->inner_lock); in binder_translate_handle()
2166 struct binder_proc *proc = thread->proc; in binder_translate_fd() local
2179 proc->pid, thread->pid, in binder_translate_fd()
2189 proc->pid, thread->pid, fd); in binder_translate_fd()
2193 ret = security_binder_transfer_file(proc->tsk, target_proc->tsk, file); in binder_translate_fd()
2232 struct binder_proc *proc = thread->proc; in binder_translate_fd_array() local
2238 proc->pid, thread->pid, (u64)fda->num_fds); in binder_translate_fd_array()
2245 proc->pid, thread->pid, (u64)fda->num_fds); in binder_translate_fd_array()
2259 proc->pid, thread->pid); in binder_translate_fd_array()
2289 struct binder_proc *proc = thread->proc; in binder_fixup_parent() local
2303 proc->pid, thread->pid); in binder_fixup_parent()
2312 proc->pid, thread->pid); in binder_fixup_parent()
2320 proc->pid, thread->pid); in binder_fixup_parent()
2328 proc->pid, thread->pid); in binder_fixup_parent()
2354 struct binder_proc *proc, in binder_proc_transaction() argument
2371 binder_inner_proc_lock(proc); in binder_proc_transaction()
2372 if (proc->is_frozen) { in binder_proc_transaction()
2373 proc->sync_recv |= !oneway; in binder_proc_transaction()
2374 proc->async_recv |= oneway; in binder_proc_transaction()
2377 if ((proc->is_frozen && !oneway) || proc->is_dead || in binder_proc_transaction()
2379 binder_inner_proc_unlock(proc); in binder_proc_transaction()
2381 return proc->is_frozen ? BR_FROZEN_REPLY : BR_DEAD_REPLY; in binder_proc_transaction()
2385 thread = binder_select_thread_ilocked(proc); in binder_proc_transaction()
2390 binder_enqueue_work_ilocked(&t->work, &proc->todo); in binder_proc_transaction()
2395 binder_wakeup_thread_ilocked(proc, thread, !oneway /* sync */); in binder_proc_transaction()
2397 proc->outstanding_txns++; in binder_proc_transaction()
2398 binder_inner_proc_unlock(proc); in binder_proc_transaction()
2433 if (node->proc) { in binder_get_node_refs_for_txn()
2437 node->proc->tmp_ref++; in binder_get_node_refs_for_txn()
2438 *procp = node->proc; in binder_get_node_refs_for_txn()
2446 static void binder_transaction(struct binder_proc *proc, in binder_transaction() argument
2469 struct binder_context *context = proc->context; in binder_transaction()
2477 e->from_proc = proc->pid; in binder_transaction()
2482 strscpy(e->context_name, proc->context->name, BINDERFS_MAX_NAME); in binder_transaction()
2485 binder_inner_proc_lock(proc); in binder_transaction()
2488 binder_inner_proc_unlock(proc); in binder_transaction()
2490 proc->pid, thread->pid); in binder_transaction()
2499 proc->pid, thread->pid, in_reply_to->debug_id, in binder_transaction()
2505 binder_inner_proc_unlock(proc); in binder_transaction()
2513 binder_inner_proc_unlock(proc); in binder_transaction()
2518 __release(&target_thread->proc->inner_lock); in binder_transaction()
2525 proc->pid, thread->pid, in binder_transaction()
2529 binder_inner_proc_unlock(target_thread->proc); in binder_transaction()
2537 target_proc = target_thread->proc; in binder_transaction()
2539 binder_inner_proc_unlock(target_thread->proc); in binder_transaction()
2551 binder_proc_lock(proc); in binder_transaction()
2552 ref = binder_get_ref_olocked(proc, tr->target.handle, in binder_transaction()
2560 proc->pid, thread->pid, tr->target.handle); in binder_transaction()
2563 binder_proc_unlock(proc); in binder_transaction()
2574 if (target_node && target_proc->pid == proc->pid) { in binder_transaction()
2576 proc->pid, thread->pid); in binder_transaction()
2592 if (WARN_ON(proc == target_proc)) { in binder_transaction()
2598 if (security_binder_transaction(proc->tsk, in binder_transaction()
2605 binder_inner_proc_lock(proc); in binder_transaction()
2621 proc->pid, thread->pid); in binder_transaction()
2622 binder_inner_proc_unlock(proc); in binder_transaction()
2636 proc->pid, thread->pid, tmp->debug_id, in binder_transaction()
2641 binder_inner_proc_unlock(proc); in binder_transaction()
2652 if (from && from->proc == target_proc) { in binder_transaction()
2662 binder_inner_proc_unlock(proc); in binder_transaction()
2694 proc->pid, thread->pid, t->debug_id, in binder_transaction()
2703 proc->pid, thread->pid, t->debug_id, in binder_transaction()
2714 t->sender_euid = task_euid(proc->tsk); in binder_transaction()
2734 security_task_getsecid_obj(proc->tsk, &secid); in binder_transaction()
2800 proc->pid, thread->pid); in binder_transaction()
2814 proc->pid, thread->pid); in binder_transaction()
2822 proc->pid, thread->pid, (u64)tr->offsets_size); in binder_transaction()
2830 proc->pid, thread->pid, in binder_transaction()
2865 proc->pid, thread->pid, in binder_transaction()
2948 proc->pid, thread->pid); in binder_transaction()
2961 proc->pid, thread->pid); in binder_transaction()
2987 proc->pid, thread->pid); in binder_transaction()
3001 proc->pid, thread->pid); in binder_transaction()
3034 proc->pid, thread->pid, hdr->type); in binder_transaction()
3064 binder_inner_proc_lock(proc); in binder_transaction()
3076 binder_inner_proc_unlock(proc); in binder_transaction()
3080 binder_inner_proc_lock(proc); in binder_transaction()
3082 binder_inner_proc_unlock(proc); in binder_transaction()
3108 binder_dequeue_work(proc, tcomplete); in binder_transaction()
3152 proc->pid, thread->pid, return_error, return_error_param, in binder_transaction()
3195 binder_free_buf(struct binder_proc *proc, in binder_free_buf() argument
3199 binder_inner_proc_lock(proc); in binder_free_buf()
3204 binder_inner_proc_unlock(proc); in binder_free_buf()
3212 BUG_ON(buf_node->proc != proc); in binder_free_buf()
3219 w, &proc->todo); in binder_free_buf()
3220 binder_wakeup_proc_ilocked(proc); in binder_free_buf()
3225 binder_transaction_buffer_release(proc, thread, buffer, 0, false); in binder_free_buf()
3226 binder_alloc_free_buf(&proc->alloc, buffer); in binder_free_buf()
3229 static int binder_thread_write(struct binder_proc *proc, in binder_thread_write() argument
3235 struct binder_context *context = proc->context; in binder_thread_write()
3249 atomic_inc(&proc->stats.bc[_IOC_NR(cmd)]); in binder_thread_write()
3274 if (ctx_mgr_node->proc == proc) { in binder_thread_write()
3276 proc->pid, thread->pid); in binder_thread_write()
3281 proc, ctx_mgr_node, in binder_thread_write()
3288 proc, target, increment, strong, in binder_thread_write()
3292 proc->pid, thread->pid, in binder_thread_write()
3312 proc->pid, thread->pid, debug_string, in binder_thread_write()
3318 proc->pid, thread->pid, debug_string, in binder_thread_write()
3336 node = binder_get_node(proc, node_ptr); in binder_thread_write()
3339 proc->pid, thread->pid, in binder_thread_write()
3348 proc->pid, thread->pid, in binder_thread_write()
3360 proc->pid, thread->pid, in binder_thread_write()
3370 proc->pid, thread->pid, in binder_thread_write()
3383 proc->pid, thread->pid, in binder_thread_write()
3406 buffer = binder_alloc_prepare_to_free(&proc->alloc, in binder_thread_write()
3412 proc->pid, thread->pid, in binder_thread_write()
3417 proc->pid, thread->pid, in binder_thread_write()
3424 proc->pid, thread->pid, (u64)data_ptr, in binder_thread_write()
3427 binder_free_buf(proc, thread, buffer); in binder_thread_write()
3438 binder_transaction(proc, thread, &tr.transaction_data, in binder_thread_write()
3449 binder_transaction(proc, thread, &tr, in binder_thread_write()
3457 proc->pid, thread->pid); in binder_thread_write()
3458 binder_inner_proc_lock(proc); in binder_thread_write()
3462 proc->pid, thread->pid); in binder_thread_write()
3463 } else if (proc->requested_threads == 0) { in binder_thread_write()
3466 proc->pid, thread->pid); in binder_thread_write()
3468 proc->requested_threads--; in binder_thread_write()
3469 proc->requested_threads_started++; in binder_thread_write()
3472 binder_inner_proc_unlock(proc); in binder_thread_write()
3477 proc->pid, thread->pid); in binder_thread_write()
3481 proc->pid, thread->pid); in binder_thread_write()
3488 proc->pid, thread->pid); in binder_thread_write()
3521 proc->pid, thread->pid); in binder_thread_write()
3525 binder_proc_lock(proc); in binder_thread_write()
3526 ref = binder_get_ref_olocked(proc, target, false); in binder_thread_write()
3529 proc->pid, thread->pid, in binder_thread_write()
3534 binder_proc_unlock(proc); in binder_thread_write()
3541 proc->pid, thread->pid, in binder_thread_write()
3553 proc->pid, thread->pid); in binder_thread_write()
3555 binder_proc_unlock(proc); in binder_thread_write()
3563 if (ref->node->proc == NULL) { in binder_thread_write()
3566 binder_inner_proc_lock(proc); in binder_thread_write()
3568 &ref->death->work, &proc->todo); in binder_thread_write()
3569 binder_wakeup_proc_ilocked(proc); in binder_thread_write()
3570 binder_inner_proc_unlock(proc); in binder_thread_write()
3575 proc->pid, thread->pid); in binder_thread_write()
3577 binder_proc_unlock(proc); in binder_thread_write()
3583 proc->pid, thread->pid, in binder_thread_write()
3587 binder_proc_unlock(proc); in binder_thread_write()
3591 binder_inner_proc_lock(proc); in binder_thread_write()
3603 &proc->todo); in binder_thread_write()
3605 proc); in binder_thread_write()
3611 binder_inner_proc_unlock(proc); in binder_thread_write()
3614 binder_proc_unlock(proc); in binder_thread_write()
3625 binder_inner_proc_lock(proc); in binder_thread_write()
3626 list_for_each_entry(w, &proc->delivered_death, in binder_thread_write()
3640 proc->pid, thread->pid, (u64)cookie, in binder_thread_write()
3644 proc->pid, thread->pid, (u64)cookie); in binder_thread_write()
3645 binder_inner_proc_unlock(proc); in binder_thread_write()
3659 &proc->todo); in binder_thread_write()
3660 binder_wakeup_proc_ilocked(proc); in binder_thread_write()
3663 binder_inner_proc_unlock(proc); in binder_thread_write()
3668 proc->pid, thread->pid, cmd); in binder_thread_write()
3676 static void binder_stat_br(struct binder_proc *proc, in binder_stat_br() argument
3682 atomic_inc(&proc->stats.br[_IOC_NR(cmd)]); in binder_stat_br()
3687 static int binder_put_node_cmd(struct binder_proc *proc, in binder_put_node_cmd() argument
3709 binder_stat_br(proc, thread, cmd); in binder_put_node_cmd()
3711 proc->pid, thread->pid, cmd_name, node_debug_id, in binder_put_node_cmd()
3722 struct binder_proc *proc = thread->proc; in binder_wait_for_work() local
3726 binder_inner_proc_lock(proc); in binder_wait_for_work()
3733 &proc->waiting_threads); in binder_wait_for_work()
3734 binder_inner_proc_unlock(proc); in binder_wait_for_work()
3736 binder_inner_proc_lock(proc); in binder_wait_for_work()
3744 binder_inner_proc_unlock(proc); in binder_wait_for_work()
3764 static int binder_apply_fd_fixups(struct binder_proc *proc, in binder_apply_fd_fixups() argument
3786 if (binder_alloc_copy_to_buffer(&proc->alloc, t->buffer, in binder_apply_fd_fixups()
3800 err = binder_alloc_copy_from_buffer(&proc->alloc, &fd, in binder_apply_fd_fixups()
3815 static int binder_thread_read(struct binder_proc *proc, in binder_thread_read() argument
3834 binder_inner_proc_lock(proc); in binder_thread_read()
3836 binder_inner_proc_unlock(proc); in binder_thread_read()
3842 !binder_worklist_empty(proc, &thread->todo)); in binder_thread_read()
3847 proc->pid, thread->pid, thread->looper); in binder_thread_read()
3851 binder_set_nice(proc->default_priority); in binder_thread_read()
3876 binder_inner_proc_lock(proc); in binder_thread_read()
3879 else if (!binder_worklist_empty_ilocked(&proc->todo) && in binder_thread_read()
3881 list = &proc->todo; in binder_thread_read()
3883 binder_inner_proc_unlock(proc); in binder_thread_read()
3892 binder_inner_proc_unlock(proc); in binder_thread_read()
3901 binder_inner_proc_unlock(proc); in binder_thread_read()
3909 binder_inner_proc_unlock(proc); in binder_thread_read()
3916 binder_stat_br(proc, thread, cmd); in binder_thread_read()
3920 if (proc->oneway_spam_detection_enabled && in binder_thread_read()
3925 binder_inner_proc_unlock(proc); in binder_thread_read()
3932 binder_stat_br(proc, thread, cmd); in binder_thread_read()
3935 proc->pid, thread->pid); in binder_thread_read()
3947 BUG_ON(proc != node->proc); in binder_thread_read()
3973 proc->pid, thread->pid, in binder_thread_read()
3977 rb_erase(&node->rb_node, &proc->nodes); in binder_thread_read()
3978 binder_inner_proc_unlock(proc); in binder_thread_read()
3992 binder_inner_proc_unlock(proc); in binder_thread_read()
3996 proc, thread, &ptr, node_ptr, in binder_thread_read()
4001 proc, thread, &ptr, node_ptr, in binder_thread_read()
4006 proc, thread, &ptr, node_ptr, in binder_thread_read()
4011 proc, thread, &ptr, node_ptr, in binder_thread_read()
4017 proc->pid, thread->pid, in binder_thread_read()
4040 proc->pid, thread->pid, in binder_thread_read()
4046 binder_inner_proc_unlock(proc); in binder_thread_read()
4051 w, &proc->delivered_death); in binder_thread_read()
4052 binder_inner_proc_unlock(proc); in binder_thread_read()
4061 binder_stat_br(proc, thread, cmd); in binder_thread_read()
4066 binder_inner_proc_unlock(proc); in binder_thread_read()
4068 proc->pid, thread->pid, w->type); in binder_thread_read()
4100 struct task_struct *sender = t_from->proc->tsk; in binder_thread_read()
4109 ret = binder_apply_fd_fixups(proc, t); in binder_thread_read()
4120 binder_free_buf(proc, thread, buffer); in binder_thread_read()
4123 proc->pid, thread->pid, in binder_thread_read()
4132 binder_stat_br(proc, thread, cmd); in binder_thread_read()
4171 binder_stat_br(proc, thread, cmd); in binder_thread_read()
4174 proc->pid, thread->pid, in binder_thread_read()
4178 t->debug_id, t_from ? t_from->proc->pid : 0, in binder_thread_read()
4188 binder_inner_proc_lock(thread->proc); in binder_thread_read()
4192 binder_inner_proc_unlock(thread->proc); in binder_thread_read()
4202 binder_inner_proc_lock(proc); in binder_thread_read()
4203 if (proc->requested_threads == 0 && in binder_thread_read()
4204 list_empty(&thread->proc->waiting_threads) && in binder_thread_read()
4205 proc->requested_threads_started < proc->max_threads && in binder_thread_read()
4209 proc->requested_threads++; in binder_thread_read()
4210 binder_inner_proc_unlock(proc); in binder_thread_read()
4213 proc->pid, thread->pid); in binder_thread_read()
4216 binder_stat_br(proc, thread, BR_SPAWN_LOOPER); in binder_thread_read()
4218 binder_inner_proc_unlock(proc); in binder_thread_read()
4222 static void binder_release_work(struct binder_proc *proc, in binder_release_work() argument
4229 binder_inner_proc_lock(proc); in binder_release_work()
4232 binder_inner_proc_unlock(proc); in binder_release_work()
4282 struct binder_proc *proc, struct binder_thread *new_thread) in binder_get_thread_ilocked() argument
4286 struct rb_node **p = &proc->threads.rb_node; in binder_get_thread_ilocked()
4303 thread->proc = proc; in binder_get_thread_ilocked()
4309 rb_insert_color(&thread->rb_node, &proc->threads); in binder_get_thread_ilocked()
4319 static struct binder_thread *binder_get_thread(struct binder_proc *proc) in binder_get_thread() argument
4324 binder_inner_proc_lock(proc); in binder_get_thread()
4325 thread = binder_get_thread_ilocked(proc, NULL); in binder_get_thread()
4326 binder_inner_proc_unlock(proc); in binder_get_thread()
4331 binder_inner_proc_lock(proc); in binder_get_thread()
4332 thread = binder_get_thread_ilocked(proc, new_thread); in binder_get_thread()
4333 binder_inner_proc_unlock(proc); in binder_get_thread()
4340 static void binder_free_proc(struct binder_proc *proc) in binder_free_proc() argument
4344 BUG_ON(!list_empty(&proc->todo)); in binder_free_proc()
4345 BUG_ON(!list_empty(&proc->delivered_death)); in binder_free_proc()
4346 if (proc->outstanding_txns) in binder_free_proc()
4348 __func__, proc->outstanding_txns); in binder_free_proc()
4349 device = container_of(proc->context, struct binder_device, context); in binder_free_proc()
4351 kfree(proc->context->name); in binder_free_proc()
4354 binder_alloc_deferred_release(&proc->alloc); in binder_free_proc()
4355 put_task_struct(proc->tsk); in binder_free_proc()
4357 kfree(proc); in binder_free_proc()
4364 binder_proc_dec_tmpref(thread->proc); in binder_free_thread()
4368 static int binder_thread_release(struct binder_proc *proc, in binder_thread_release() argument
4376 binder_inner_proc_lock(thread->proc); in binder_thread_release()
4383 proc->tmp_ref++; in binder_thread_release()
4389 rb_erase(&thread->rb_node, &proc->threads); in binder_thread_release()
4405 proc->pid, thread->pid, in binder_thread_release()
4410 thread->proc->outstanding_txns--; in binder_thread_release()
4443 binder_inner_proc_unlock(thread->proc); in binder_thread_release()
4456 binder_release_work(proc, &thread->todo); in binder_thread_release()
4464 struct binder_proc *proc = filp->private_data; in binder_poll() local
4468 thread = binder_get_thread(proc); in binder_poll()
4472 binder_inner_proc_lock(thread->proc); in binder_poll()
4476 binder_inner_proc_unlock(thread->proc); in binder_poll()
4491 struct binder_proc *proc = filp->private_data; in binder_ioctl_write_read() local
4506 proc->pid, thread->pid, in binder_ioctl_write_read()
4511 ret = binder_thread_write(proc, thread, in binder_ioctl_write_read()
4524 ret = binder_thread_read(proc, thread, bwr.read_buffer, in binder_ioctl_write_read()
4529 binder_inner_proc_lock(proc); in binder_ioctl_write_read()
4530 if (!binder_worklist_empty_ilocked(&proc->todo)) in binder_ioctl_write_read()
4531 binder_wakeup_proc_ilocked(proc); in binder_ioctl_write_read()
4532 binder_inner_proc_unlock(proc); in binder_ioctl_write_read()
4541 proc->pid, thread->pid, in binder_ioctl_write_read()
4556 struct binder_proc *proc = filp->private_data; in binder_ioctl_set_ctx_mgr() local
4557 struct binder_context *context = proc->context; in binder_ioctl_set_ctx_mgr()
4567 ret = security_binder_set_context_mgr(proc->tsk); in binder_ioctl_set_ctx_mgr()
4582 new_node = binder_new_node(proc, fbo); in binder_ioctl_set_ctx_mgr()
4600 static int binder_ioctl_get_node_info_for_ref(struct binder_proc *proc, in binder_ioctl_get_node_info_for_ref() argument
4604 struct binder_context *context = proc->context; in binder_ioctl_get_node_info_for_ref()
4610 proc->pid); in binder_ioctl_get_node_info_for_ref()
4617 context->binder_context_mgr_node->proc != proc) { in binder_ioctl_get_node_info_for_ref()
4623 node = binder_get_node_from_ref(proc, handle, true, NULL); in binder_ioctl_get_node_info_for_ref()
4636 static int binder_ioctl_get_node_debug_info(struct binder_proc *proc, in binder_ioctl_get_node_debug_info() argument
4644 binder_inner_proc_lock(proc); in binder_ioctl_get_node_debug_info()
4645 for (n = rb_first(&proc->nodes); n != NULL; n = rb_next(n)) { in binder_ioctl_get_node_debug_info()
4656 binder_inner_proc_unlock(proc); in binder_ioctl_get_node_debug_info()
4661 static bool binder_txns_pending_ilocked(struct binder_proc *proc) in binder_txns_pending_ilocked() argument
4666 if (proc->outstanding_txns > 0) in binder_txns_pending_ilocked()
4669 for (n = rb_first(&proc->threads); n; n = rb_next(n)) { in binder_txns_pending_ilocked()
4758 struct binder_proc *proc = filp->private_data; in binder_ioctl() local
4766 binder_selftest_alloc(&proc->alloc); in binder_ioctl()
4774 thread = binder_get_thread(proc); in binder_ioctl()
4794 binder_inner_proc_lock(proc); in binder_ioctl()
4795 proc->max_threads = max_threads; in binder_ioctl()
4796 binder_inner_proc_unlock(proc); in binder_ioctl()
4818 proc->pid, thread->pid); in binder_ioctl()
4819 binder_thread_release(proc, thread); in binder_ioctl()
4844 ret = binder_ioctl_get_node_info_for_ref(proc, &info); in binder_ioctl()
4863 ret = binder_ioctl_get_node_debug_info(proc, &info); in binder_ioctl()
4958 binder_inner_proc_lock(proc); in binder_ioctl()
4959 proc->oneway_spam_detection_enabled = (bool)enable; in binder_ioctl()
4960 binder_inner_proc_unlock(proc); in binder_ioctl()
4973 pr_info("%d:%d ioctl %x %lx returned %d\n", proc->pid, current->pid, cmd, arg, ret); in binder_ioctl()
4981 struct binder_proc *proc = vma->vm_private_data; in binder_vma_open() local
4985 proc->pid, vma->vm_start, vma->vm_end, in binder_vma_open()
4992 struct binder_proc *proc = vma->vm_private_data; in binder_vma_close() local
4996 proc->pid, vma->vm_start, vma->vm_end, in binder_vma_close()
4999 binder_alloc_vma_close(&proc->alloc); in binder_vma_close()
5015 struct binder_proc *proc = filp->private_data; in binder_mmap() local
5017 if (proc->tsk != current->group_leader) in binder_mmap()
5022 __func__, proc->pid, vma->vm_start, vma->vm_end, in binder_mmap()
5028 proc->pid, vma->vm_start, vma->vm_end, "bad vm_flags", -EPERM); in binder_mmap()
5035 vma->vm_private_data = proc; in binder_mmap()
5037 return binder_alloc_mmap_handler(&proc->alloc, vma); in binder_mmap()
5042 struct binder_proc *proc, *itr; in binder_open() local
5051 proc = kzalloc(sizeof(*proc), GFP_KERNEL); in binder_open()
5052 if (proc == NULL) in binder_open()
5054 spin_lock_init(&proc->inner_lock); in binder_open()
5055 spin_lock_init(&proc->outer_lock); in binder_open()
5057 proc->tsk = current->group_leader; in binder_open()
5058 INIT_LIST_HEAD(&proc->todo); in binder_open()
5059 init_waitqueue_head(&proc->freeze_wait); in binder_open()
5060 proc->default_priority = task_nice(current); in binder_open()
5071 proc->context = &binder_dev->context; in binder_open()
5072 binder_alloc_init(&proc->alloc); in binder_open()
5075 proc->pid = current->group_leader->pid; in binder_open()
5076 INIT_LIST_HEAD(&proc->delivered_death); in binder_open()
5077 INIT_LIST_HEAD(&proc->waiting_threads); in binder_open()
5078 filp->private_data = proc; in binder_open()
5082 if (itr->pid == proc->pid) { in binder_open()
5087 hlist_add_head(&proc->proc_node, &binder_procs); in binder_open()
5093 snprintf(strbuf, sizeof(strbuf), "%u", proc->pid); in binder_open()
5100 proc->debugfs_entry = debugfs_create_file(strbuf, 0444, in binder_open()
5102 (void *)(unsigned long)proc->pid, in binder_open()
5110 snprintf(strbuf, sizeof(strbuf), "%u", proc->pid); in binder_open()
5118 strbuf, &proc_fops, (void *)(unsigned long)proc->pid); in binder_open()
5120 proc->binderfs_entry = binderfs_entry; in binder_open()
5135 struct binder_proc *proc = filp->private_data; in binder_flush() local
5137 binder_defer_work(proc, BINDER_DEFERRED_FLUSH); in binder_flush()
5142 static void binder_deferred_flush(struct binder_proc *proc) in binder_deferred_flush() argument
5147 binder_inner_proc_lock(proc); in binder_deferred_flush()
5148 for (n = rb_first(&proc->threads); n != NULL; n = rb_next(n)) { in binder_deferred_flush()
5157 binder_inner_proc_unlock(proc); in binder_deferred_flush()
5160 "binder_flush: %d woke %d threads\n", proc->pid, in binder_deferred_flush()
5166 struct binder_proc *proc = filp->private_data; in binder_release() local
5168 debugfs_remove(proc->debugfs_entry); in binder_release()
5170 if (proc->binderfs_entry) { in binder_release()
5171 binderfs_remove_file(proc->binderfs_entry); in binder_release()
5172 proc->binderfs_entry = NULL; in binder_release()
5175 binder_defer_work(proc, BINDER_DEFERRED_RELEASE); in binder_release()
5184 struct binder_proc *proc = node->proc; in binder_node_release() local
5186 binder_release_work(proc, &node->async_todo); in binder_node_release()
5189 binder_inner_proc_lock(proc); in binder_node_release()
5196 binder_inner_proc_unlock(proc); in binder_node_release()
5203 node->proc = NULL; in binder_node_release()
5206 binder_inner_proc_unlock(proc); in binder_node_release()
5220 binder_inner_proc_lock(ref->proc); in binder_node_release()
5222 binder_inner_proc_unlock(ref->proc); in binder_node_release()
5231 &ref->proc->todo); in binder_node_release()
5232 binder_wakeup_proc_ilocked(ref->proc); in binder_node_release()
5233 binder_inner_proc_unlock(ref->proc); in binder_node_release()
5245 static void binder_deferred_release(struct binder_proc *proc) in binder_deferred_release() argument
5247 struct binder_context *context = proc->context; in binder_deferred_release()
5252 hlist_del(&proc->proc_node); in binder_deferred_release()
5257 context->binder_context_mgr_node->proc == proc) { in binder_deferred_release()
5260 __func__, proc->pid); in binder_deferred_release()
5264 binder_inner_proc_lock(proc); in binder_deferred_release()
5269 proc->tmp_ref++; in binder_deferred_release()
5271 proc->is_dead = true; in binder_deferred_release()
5272 proc->is_frozen = false; in binder_deferred_release()
5273 proc->sync_recv = false; in binder_deferred_release()
5274 proc->async_recv = false; in binder_deferred_release()
5277 while ((n = rb_first(&proc->threads))) { in binder_deferred_release()
5281 binder_inner_proc_unlock(proc); in binder_deferred_release()
5283 active_transactions += binder_thread_release(proc, thread); in binder_deferred_release()
5284 binder_inner_proc_lock(proc); in binder_deferred_release()
5289 while ((n = rb_first(&proc->nodes))) { in binder_deferred_release()
5300 rb_erase(&node->rb_node, &proc->nodes); in binder_deferred_release()
5301 binder_inner_proc_unlock(proc); in binder_deferred_release()
5303 binder_inner_proc_lock(proc); in binder_deferred_release()
5305 binder_inner_proc_unlock(proc); in binder_deferred_release()
5308 binder_proc_lock(proc); in binder_deferred_release()
5309 while ((n = rb_first(&proc->refs_by_desc))) { in binder_deferred_release()
5315 binder_proc_unlock(proc); in binder_deferred_release()
5317 binder_proc_lock(proc); in binder_deferred_release()
5319 binder_proc_unlock(proc); in binder_deferred_release()
5321 binder_release_work(proc, &proc->todo); in binder_deferred_release()
5322 binder_release_work(proc, &proc->delivered_death); in binder_deferred_release()
5326 __func__, proc->pid, threads, nodes, incoming_refs, in binder_deferred_release()
5329 binder_proc_dec_tmpref(proc); in binder_deferred_release()
5334 struct binder_proc *proc; in binder_deferred_func() local
5341 proc = hlist_entry(binder_deferred_list.first, in binder_deferred_func()
5343 hlist_del_init(&proc->deferred_work_node); in binder_deferred_func()
5344 defer = proc->deferred_work; in binder_deferred_func()
5345 proc->deferred_work = 0; in binder_deferred_func()
5347 proc = NULL; in binder_deferred_func()
5353 binder_deferred_flush(proc); in binder_deferred_func()
5356 binder_deferred_release(proc); /* frees proc */ in binder_deferred_func()
5357 } while (proc); in binder_deferred_func()
5362 binder_defer_work(struct binder_proc *proc, enum binder_deferred_state defer) in binder_defer_work() argument
5365 proc->deferred_work |= defer; in binder_defer_work()
5366 if (hlist_unhashed(&proc->deferred_work_node)) { in binder_defer_work()
5367 hlist_add_head(&proc->deferred_work_node, in binder_defer_work()
5375 struct binder_proc *proc, in print_binder_transaction_ilocked() argument
5387 t->from ? t->from->proc->pid : 0, in print_binder_transaction_ilocked()
5394 if (proc != to_proc) { in print_binder_transaction_ilocked()
5415 struct binder_proc *proc, in print_binder_work_ilocked() argument
5427 m, proc, transaction_prefix, t); in print_binder_work_ilocked()
5477 print_binder_transaction_ilocked(m, thread->proc, in print_binder_thread_ilocked()
5481 print_binder_transaction_ilocked(m, thread->proc, in print_binder_thread_ilocked()
5485 print_binder_transaction_ilocked(m, thread->proc, in print_binder_thread_ilocked()
5491 print_binder_work_ilocked(m, thread->proc, " ", in print_binder_thread_ilocked()
5517 seq_printf(m, " %d", ref->proc->pid); in print_binder_node_nilocked()
5520 if (node->proc) { in print_binder_node_nilocked()
5522 print_binder_work_ilocked(m, node->proc, " ", in print_binder_node_nilocked()
5533 ref->node->proc ? "" : "dead ", in print_binder_ref_olocked()
5540 struct binder_proc *proc, int print_all) in print_binder_proc() argument
5548 seq_printf(m, "proc %d\n", proc->pid); in print_binder_proc()
5549 seq_printf(m, "context %s\n", proc->context->name); in print_binder_proc()
5552 binder_inner_proc_lock(proc); in print_binder_proc()
5553 for (n = rb_first(&proc->threads); n != NULL; n = rb_next(n)) in print_binder_proc()
5557 for (n = rb_first(&proc->nodes); n != NULL; n = rb_next(n)) { in print_binder_proc()
5570 binder_inner_proc_unlock(proc); in print_binder_proc()
5577 binder_inner_proc_lock(proc); in print_binder_proc()
5579 binder_inner_proc_unlock(proc); in print_binder_proc()
5584 binder_proc_lock(proc); in print_binder_proc()
5585 for (n = rb_first(&proc->refs_by_desc); in print_binder_proc()
5591 binder_proc_unlock(proc); in print_binder_proc()
5593 binder_alloc_print_allocated(m, &proc->alloc); in print_binder_proc()
5594 binder_inner_proc_lock(proc); in print_binder_proc()
5595 list_for_each_entry(w, &proc->todo, entry) in print_binder_proc()
5596 print_binder_work_ilocked(m, proc, " ", in print_binder_proc()
5598 list_for_each_entry(w, &proc->delivered_death, entry) { in print_binder_proc()
5602 binder_inner_proc_unlock(proc); in print_binder_proc()
5705 struct binder_proc *proc) in print_binder_proc_stats() argument
5712 binder_alloc_get_free_async_space(&proc->alloc); in print_binder_proc_stats()
5714 seq_printf(m, "proc %d\n", proc->pid); in print_binder_proc_stats()
5715 seq_printf(m, "context %s\n", proc->context->name); in print_binder_proc_stats()
5718 binder_inner_proc_lock(proc); in print_binder_proc_stats()
5719 for (n = rb_first(&proc->threads); n != NULL; n = rb_next(n)) in print_binder_proc_stats()
5722 list_for_each_entry(thread, &proc->waiting_threads, waiting_thread_node) in print_binder_proc_stats()
5728 " free async space %zd\n", proc->requested_threads, in print_binder_proc_stats()
5729 proc->requested_threads_started, proc->max_threads, in print_binder_proc_stats()
5733 for (n = rb_first(&proc->nodes); n != NULL; n = rb_next(n)) in print_binder_proc_stats()
5735 binder_inner_proc_unlock(proc); in print_binder_proc_stats()
5740 binder_proc_lock(proc); in print_binder_proc_stats()
5741 for (n = rb_first(&proc->refs_by_desc); n != NULL; n = rb_next(n)) { in print_binder_proc_stats()
5748 binder_proc_unlock(proc); in print_binder_proc_stats()
5751 count = binder_alloc_get_allocated_count(&proc->alloc); in print_binder_proc_stats()
5754 binder_alloc_print_pages(m, &proc->alloc); in print_binder_proc_stats()
5757 binder_inner_proc_lock(proc); in print_binder_proc_stats()
5758 list_for_each_entry(w, &proc->todo, entry) { in print_binder_proc_stats()
5762 binder_inner_proc_unlock(proc); in print_binder_proc_stats()
5765 print_binder_stats(m, " ", &proc->stats); in print_binder_proc_stats()
5771 struct binder_proc *proc; in binder_state_show() local
5801 hlist_for_each_entry(proc, &binder_procs, proc_node) in binder_state_show()
5802 print_binder_proc(m, proc, 1); in binder_state_show()
5810 struct binder_proc *proc; in binder_stats_show() local
5817 hlist_for_each_entry(proc, &binder_procs, proc_node) in binder_stats_show()
5818 print_binder_proc_stats(m, proc); in binder_stats_show()
5826 struct binder_proc *proc; in binder_transactions_show() local
5830 hlist_for_each_entry(proc, &binder_procs, proc_node) in binder_transactions_show()
5831 print_binder_proc(m, proc, 0); in binder_transactions_show()