• Home
  • Raw
  • Download

Lines Matching refs:addr

125 static struct debug_obj *lookup_object(void *addr, struct debug_bucket *b)  in lookup_object()  argument
132 if (obj->object == addr) in lookup_object()
146 alloc_object(void *addr, struct debug_bucket *b, struct debug_obj_descr *descr) in alloc_object() argument
154 obj->object = addr; in alloc_object()
270 static struct debug_bucket *get_bucket(unsigned long addr) in get_bucket() argument
274 hash = hash_long((addr >> ODEBUG_CHUNK_SHIFT), ODEBUG_HASH_BITS); in get_bucket()
300 debug_object_fixup(bool (*fixup)(void *addr, enum debug_obj_state state), in debug_object_fixup() argument
301 void * addr, enum debug_obj_state state) in debug_object_fixup()
303 if (fixup && fixup(addr, state)) { in debug_object_fixup()
310 static void debug_object_is_on_stack(void *addr, int onstack) in debug_object_is_on_stack() argument
318 is_on_stack = object_is_on_stack(addr); in debug_object_is_on_stack()
324 pr_warn("object %p is on stack %p, but NOT annotated.\n", addr, in debug_object_is_on_stack()
327 pr_warn("object %p is NOT on stack %p, but annotated.\n", addr, in debug_object_is_on_stack()
334 __debug_object_init(void *addr, struct debug_obj_descr *descr, int onstack) in __debug_object_init() argument
343 db = get_bucket((unsigned long) addr); in __debug_object_init()
347 obj = lookup_object(addr, db); in __debug_object_init()
349 obj = alloc_object(addr, db, descr); in __debug_object_init()
356 debug_object_is_on_stack(addr, onstack); in __debug_object_init()
370 debug_object_fixup(descr->fixup_init, addr, state); in __debug_object_init()
388 void debug_object_init(void *addr, struct debug_obj_descr *descr) in debug_object_init() argument
393 __debug_object_init(addr, descr, 0); in debug_object_init()
403 void debug_object_init_on_stack(void *addr, struct debug_obj_descr *descr) in debug_object_init_on_stack() argument
408 __debug_object_init(addr, descr, 1); in debug_object_init_on_stack()
418 int debug_object_activate(void *addr, struct debug_obj_descr *descr) in debug_object_activate() argument
425 struct debug_obj o = { .object = addr, in debug_object_activate()
432 db = get_bucket((unsigned long) addr); in debug_object_activate()
436 obj = lookup_object(addr, db); in debug_object_activate()
449 ret = debug_object_fixup(descr->fixup_activate, addr, state); in debug_object_activate()
472 if (descr->is_static_object && descr->is_static_object(addr)) { in debug_object_activate()
474 debug_object_init(addr, descr); in debug_object_activate()
475 debug_object_activate(addr, descr); in debug_object_activate()
478 ret = debug_object_fixup(descr->fixup_activate, addr, in debug_object_activate()
491 void debug_object_deactivate(void *addr, struct debug_obj_descr *descr) in debug_object_deactivate() argument
500 db = get_bucket((unsigned long) addr); in debug_object_deactivate()
504 obj = lookup_object(addr, db); in debug_object_deactivate()
523 struct debug_obj o = { .object = addr, in debug_object_deactivate()
539 void debug_object_destroy(void *addr, struct debug_obj_descr *descr) in debug_object_destroy() argument
549 db = get_bucket((unsigned long) addr); in debug_object_destroy()
553 obj = lookup_object(addr, db); in debug_object_destroy()
567 debug_object_fixup(descr->fixup_destroy, addr, state); in debug_object_destroy()
586 void debug_object_free(void *addr, struct debug_obj_descr *descr) in debug_object_free() argument
596 db = get_bucket((unsigned long) addr); in debug_object_free()
600 obj = lookup_object(addr, db); in debug_object_free()
609 debug_object_fixup(descr->fixup_free, addr, state); in debug_object_free()
627 void debug_object_assert_init(void *addr, struct debug_obj_descr *descr) in debug_object_assert_init() argument
636 db = get_bucket((unsigned long) addr); in debug_object_assert_init()
640 obj = lookup_object(addr, db); in debug_object_assert_init()
642 struct debug_obj o = { .object = addr, in debug_object_assert_init()
652 if (descr->is_static_object && descr->is_static_object(addr)) { in debug_object_assert_init()
654 debug_object_init(addr, descr); in debug_object_assert_init()
657 debug_object_fixup(descr->fixup_assert_init, addr, in debug_object_assert_init()
675 debug_object_active_state(void *addr, struct debug_obj_descr *descr, in debug_object_active_state() argument
685 db = get_bucket((unsigned long) addr); in debug_object_active_state()
689 obj = lookup_object(addr, db); in debug_object_active_state()
704 struct debug_obj o = { .object = addr, in debug_object_active_state()
848 static bool __init is_static_object(void *addr) in is_static_object() argument
850 struct self_test *obj = addr; in is_static_object()
859 static bool __init fixup_init(void *addr, enum debug_obj_state state) in fixup_init() argument
861 struct self_test *obj = addr; in fixup_init()
878 static bool __init fixup_activate(void *addr, enum debug_obj_state state) in fixup_activate() argument
880 struct self_test *obj = addr; in fixup_activate()
899 static bool __init fixup_destroy(void *addr, enum debug_obj_state state) in fixup_destroy() argument
901 struct self_test *obj = addr; in fixup_destroy()
917 static bool __init fixup_free(void *addr, enum debug_obj_state state) in fixup_free() argument
919 struct self_test *obj = addr; in fixup_free()
932 check_results(void *addr, enum debug_obj_state state, int fixups, int warnings) in check_results() argument
939 db = get_bucket((unsigned long) addr); in check_results()
943 obj = lookup_object(addr, db); in check_results()