]> git.baikalelectronics.ru Git - kernel.git/commit
debugobjects: Add hint for better object identification
authorStanislaw Gruszka <sgruszka@redhat.com>
Mon, 7 Mar 2011 08:58:33 +0000 (09:58 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 8 Mar 2011 15:10:38 +0000 (16:10 +0100)
commita29939c414bd4732c9a36f6915c540d023ba4a8f
tree618ef63c45e16892ea26a99cafef6b0442e8eca1
parent80e7c449e8b9ba334a4a21064a0b0281b9f62f70
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>
include/linux/debugobjects.h
kernel/hrtimer.c
kernel/timer.c
kernel/workqueue.c
lib/debugobjects.c