mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
debugobjects: Add hint for better object identification
In complex subsystems like mac80211 structures can contain several timers and work structs, so identifying a specific instance from the call trace and object type output of debugobjects can be hard. Allow the subsystems which support debugobjects to provide a hint function. This function returns a pointer to a kernel address (preferrably the objects callback function) which is printed along with the debugobjects type. Add hint methods for timer_list, work_struct and hrtimer. [ tglx: Massaged changelog, made it compile ] Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> LKML-Reference: <20110307085809.GA9334@redhat.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
a5abba989d
commit
9977728840
5 changed files with 28 additions and 4 deletions
|
@ -34,7 +34,10 @@ struct debug_obj {
|
|||
|
||||
/**
|
||||
* struct debug_obj_descr - object type specific debug description structure
|
||||
*
|
||||
* @name: name of the object typee
|
||||
* @debug_hint: function returning address, which have associated
|
||||
* kernel symbol, to allow identify the object
|
||||
* @fixup_init: fixup function, which is called when the init check
|
||||
* fails
|
||||
* @fixup_activate: fixup function, which is called when the activate check
|
||||
|
@ -46,7 +49,7 @@ struct debug_obj {
|
|||
*/
|
||||
struct debug_obj_descr {
|
||||
const char *name;
|
||||
|
||||
void *(*debug_hint) (void *addr);
|
||||
int (*fixup_init) (void *addr, enum debug_obj_state state);
|
||||
int (*fixup_activate) (void *addr, enum debug_obj_state state);
|
||||
int (*fixup_destroy) (void *addr, enum debug_obj_state state);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue