• Home
  • Raw
  • Download

Lines Matching refs:addr

113 static struct debug_obj *lookup_object(void *addr, struct debug_bucket *b)  in lookup_object()  argument
120 if (obj->object == addr) in lookup_object()
134 alloc_object(void *addr, struct debug_bucket *b, struct debug_obj_descr *descr) in alloc_object() argument
142 obj->object = addr; in alloc_object()
243 static struct debug_bucket *get_bucket(unsigned long addr) in get_bucket() argument
247 hash = hash_long((addr >> ODEBUG_CHUNK_SHIFT), ODEBUG_HASH_BITS); in get_bucket()
273 debug_object_fixup(bool (*fixup)(void *addr, enum debug_obj_state state), in debug_object_fixup() argument
274 void * addr, enum debug_obj_state state) in debug_object_fixup()
276 if (fixup && fixup(addr, state)) { in debug_object_fixup()
283 static void debug_object_is_on_stack(void *addr, int onstack) in debug_object_is_on_stack() argument
291 is_on_stack = object_is_on_stack(addr); in debug_object_is_on_stack()
297 pr_warn("object %p is on stack %p, but NOT annotated\n", addr, in debug_object_is_on_stack()
300 pr_warn("object %p is NOT on stack %p, but annotated\n", addr, in debug_object_is_on_stack()
307 __debug_object_init(void *addr, struct debug_obj_descr *descr, int onstack) in __debug_object_init() argument
316 db = get_bucket((unsigned long) addr); in __debug_object_init()
320 obj = lookup_object(addr, db); in __debug_object_init()
322 obj = alloc_object(addr, db, descr); in __debug_object_init()
329 debug_object_is_on_stack(addr, onstack); in __debug_object_init()
343 debug_object_fixup(descr->fixup_init, addr, state); in __debug_object_init()
361 void debug_object_init(void *addr, struct debug_obj_descr *descr) in debug_object_init() argument
366 __debug_object_init(addr, descr, 0); in debug_object_init()
376 void debug_object_init_on_stack(void *addr, struct debug_obj_descr *descr) in debug_object_init_on_stack() argument
381 __debug_object_init(addr, descr, 1); in debug_object_init_on_stack()
391 int debug_object_activate(void *addr, struct debug_obj_descr *descr) in debug_object_activate() argument
398 struct debug_obj o = { .object = addr, in debug_object_activate()
405 db = get_bucket((unsigned long) addr); in debug_object_activate()
409 obj = lookup_object(addr, db); in debug_object_activate()
422 ret = debug_object_fixup(descr->fixup_activate, addr, state); in debug_object_activate()
445 if (descr->is_static_object && descr->is_static_object(addr)) { in debug_object_activate()
447 debug_object_init(addr, descr); in debug_object_activate()
448 debug_object_activate(addr, descr); in debug_object_activate()
451 ret = debug_object_fixup(descr->fixup_activate, addr, in debug_object_activate()
464 void debug_object_deactivate(void *addr, struct debug_obj_descr *descr) in debug_object_deactivate() argument
473 db = get_bucket((unsigned long) addr); in debug_object_deactivate()
477 obj = lookup_object(addr, db); in debug_object_deactivate()
496 struct debug_obj o = { .object = addr, in debug_object_deactivate()
512 void debug_object_destroy(void *addr, struct debug_obj_descr *descr) in debug_object_destroy() argument
522 db = get_bucket((unsigned long) addr); in debug_object_destroy()
526 obj = lookup_object(addr, db); in debug_object_destroy()
540 debug_object_fixup(descr->fixup_destroy, addr, state); in debug_object_destroy()
559 void debug_object_free(void *addr, struct debug_obj_descr *descr) in debug_object_free() argument
569 db = get_bucket((unsigned long) addr); in debug_object_free()
573 obj = lookup_object(addr, db); in debug_object_free()
582 debug_object_fixup(descr->fixup_free, addr, state); in debug_object_free()
600 void debug_object_assert_init(void *addr, struct debug_obj_descr *descr) in debug_object_assert_init() argument
609 db = get_bucket((unsigned long) addr); in debug_object_assert_init()
613 obj = lookup_object(addr, db); in debug_object_assert_init()
615 struct debug_obj o = { .object = addr, in debug_object_assert_init()
625 if (descr->is_static_object && descr->is_static_object(addr)) { in debug_object_assert_init()
627 debug_object_init(addr, descr); in debug_object_assert_init()
630 debug_object_fixup(descr->fixup_assert_init, addr, in debug_object_assert_init()
648 debug_object_active_state(void *addr, struct debug_obj_descr *descr, in debug_object_active_state() argument
658 db = get_bucket((unsigned long) addr); in debug_object_active_state()
662 obj = lookup_object(addr, db); in debug_object_active_state()
677 struct debug_obj o = { .object = addr, in debug_object_active_state()
819 static bool __init is_static_object(void *addr) in is_static_object() argument
821 struct self_test *obj = addr; in is_static_object()
830 static bool __init fixup_init(void *addr, enum debug_obj_state state) in fixup_init() argument
832 struct self_test *obj = addr; in fixup_init()
849 static bool __init fixup_activate(void *addr, enum debug_obj_state state) in fixup_activate() argument
851 struct self_test *obj = addr; in fixup_activate()
870 static bool __init fixup_destroy(void *addr, enum debug_obj_state state) in fixup_destroy() argument
872 struct self_test *obj = addr; in fixup_destroy()
888 static bool __init fixup_free(void *addr, enum debug_obj_state state) in fixup_free() argument
890 struct self_test *obj = addr; in fixup_free()
903 check_results(void *addr, enum debug_obj_state state, int fixups, int warnings) in check_results() argument
910 db = get_bucket((unsigned long) addr); in check_results()
914 obj = lookup_object(addr, db); in check_results()