diff options
Diffstat (limited to 'include/linux/debugobjects.h')
| -rw-r--r-- | include/linux/debugobjects.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/include/linux/debugobjects.h b/include/linux/debugobjects.h index 98ffcbd4888e..46056cb161fc 100644 --- a/include/linux/debugobjects.h +++ b/include/linux/debugobjects.h | |||
| @@ -38,8 +38,10 @@ struct debug_obj { | |||
| 38 | * @name: name of the object typee | 38 | * @name: name of the object typee |
| 39 | * @debug_hint: function returning address, which have associated | 39 | * @debug_hint: function returning address, which have associated |
| 40 | * kernel symbol, to allow identify the object | 40 | * kernel symbol, to allow identify the object |
| 41 | * @is_static_object return true if the obj is static, otherwise return false | ||
| 41 | * @fixup_init: fixup function, which is called when the init check | 42 | * @fixup_init: fixup function, which is called when the init check |
| 42 | * fails | 43 | * fails. All fixup functions must return true if fixup |
| 44 | * was successful, otherwise return false | ||
| 43 | * @fixup_activate: fixup function, which is called when the activate check | 45 | * @fixup_activate: fixup function, which is called when the activate check |
| 44 | * fails | 46 | * fails |
| 45 | * @fixup_destroy: fixup function, which is called when the destroy check | 47 | * @fixup_destroy: fixup function, which is called when the destroy check |
| @@ -51,12 +53,13 @@ struct debug_obj { | |||
| 51 | */ | 53 | */ |
| 52 | struct debug_obj_descr { | 54 | struct debug_obj_descr { |
| 53 | const char *name; | 55 | const char *name; |
| 54 | void *(*debug_hint) (void *addr); | 56 | void *(*debug_hint)(void *addr); |
| 55 | int (*fixup_init) (void *addr, enum debug_obj_state state); | 57 | bool (*is_static_object)(void *addr); |
| 56 | int (*fixup_activate) (void *addr, enum debug_obj_state state); | 58 | bool (*fixup_init)(void *addr, enum debug_obj_state state); |
| 57 | int (*fixup_destroy) (void *addr, enum debug_obj_state state); | 59 | bool (*fixup_activate)(void *addr, enum debug_obj_state state); |
| 58 | int (*fixup_free) (void *addr, enum debug_obj_state state); | 60 | bool (*fixup_destroy)(void *addr, enum debug_obj_state state); |
| 59 | int (*fixup_assert_init)(void *addr, enum debug_obj_state state); | 61 | bool (*fixup_free)(void *addr, enum debug_obj_state state); |
| 62 | bool (*fixup_assert_init)(void *addr, enum debug_obj_state state); | ||
| 60 | }; | 63 | }; |
| 61 | 64 | ||
| 62 | #ifdef CONFIG_DEBUG_OBJECTS | 65 | #ifdef CONFIG_DEBUG_OBJECTS |
