Lines Matching refs:descr

220 alloc_object(void *addr, struct debug_bucket *b, const struct debug_obj_descr *descr)  in alloc_object()  argument
271 obj->descr = descr; in alloc_object()
498 const struct debug_obj_descr *descr = obj->descr; in debug_print_object() local
510 if (limit < 5 && descr != descr_test) { in debug_print_object()
511 void *hint = descr->debug_hint ? in debug_print_object()
512 descr->debug_hint(obj->object) : NULL; in debug_print_object()
517 obj->object, descr->name, hint); in debug_print_object()
561 const struct debug_obj_descr *descr, in lookup_object_or_alloc() argument
581 if (!descr->is_static_object || !descr->is_static_object(addr)) in lookup_object_or_alloc()
587 obj = alloc_object(addr, b, descr); in lookup_object_or_alloc()
621 __debug_object_init(void *addr, const struct debug_obj_descr *descr, int onstack) in __debug_object_init() argument
633 obj = lookup_object_or_alloc(addr, db, descr, onstack, false); in __debug_object_init()
656 debug_object_fixup(descr->fixup_init, addr, o.state); in __debug_object_init()
664 void debug_object_init(void *addr, const struct debug_obj_descr *descr) in debug_object_init() argument
669 __debug_object_init(addr, descr, 0); in debug_object_init()
679 void debug_object_init_on_stack(void *addr, const struct debug_obj_descr *descr) in debug_object_init_on_stack() argument
684 __debug_object_init(addr, descr, 1); in debug_object_init_on_stack()
694 int debug_object_activate(void *addr, const struct debug_obj_descr *descr) in debug_object_activate() argument
696 struct debug_obj o = { .object = addr, .state = ODEBUG_STATE_NOTAVAILABLE, .descr = descr }; in debug_object_activate()
710 obj = lookup_object_or_alloc(addr, db, descr, false, true); in debug_object_activate()
737 if (debug_object_fixup(descr->fixup_activate, addr, o.state)) in debug_object_activate()
751 void debug_object_deactivate(void *addr, const struct debug_obj_descr *descr) in debug_object_deactivate() argument
753 struct debug_obj o = { .object = addr, .state = ODEBUG_STATE_NOTAVAILABLE, .descr = descr }; in debug_object_deactivate()
794 void debug_object_destroy(void *addr, const struct debug_obj_descr *descr) in debug_object_destroy() argument
832 debug_object_fixup(descr->fixup_destroy, addr, o.state); in debug_object_destroy()
841 void debug_object_free(void *addr, const struct debug_obj_descr *descr) in debug_object_free() argument
874 debug_object_fixup(descr->fixup_free, addr, o.state); in debug_object_free()
883 void debug_object_assert_init(void *addr, const struct debug_obj_descr *descr) in debug_object_assert_init() argument
885 struct debug_obj o = { .object = addr, .state = ODEBUG_STATE_NOTAVAILABLE, .descr = descr }; in debug_object_assert_init()
898 obj = lookup_object_or_alloc(addr, db, descr, false, true); in debug_object_assert_init()
911 debug_object_fixup(descr->fixup_assert_init, addr, ODEBUG_STATE_NOTAVAILABLE); in debug_object_assert_init()
923 debug_object_active_state(void *addr, const struct debug_obj_descr *descr, in debug_object_active_state() argument
926 struct debug_obj o = { .object = addr, .state = ODEBUG_STATE_NOTAVAILABLE, .descr = descr }; in debug_object_active_state()
990 debug_object_fixup(o.descr->fixup_free, (void *)oaddr, o.state); in __debug_check_no_obj_freed()