struct debug_obj_descr — object type specific debug description structure
struct debug_obj_descr { const char * name; void *(* debug_hint) (void *addr); bool (* is_static_object) (void *addr); bool (* fixup_init) (void *addr, enum debug_obj_state state); bool (* fixup_activate) (void *addr, enum debug_obj_state state); bool (* fixup_destroy) (void *addr, enum debug_obj_state state); bool (* fixup_free) (void *addr, enum debug_obj_state state); bool (* fixup_assert_init) (void *addr, enum debug_obj_state state); };
name of the object typee
function returning address, which have associated kernel symbol, to allow identify the object
return true if the obj is static, otherwise return false
fixup function, which is called when the init check fails. All fixup functions must return true if fixup was successful, otherwise return false
fixup function, which is called when the activate check fails
fixup function, which is called when the destroy check fails
fixup function, which is called when the free check fails
fixup function, which is called when the assert_init check fails