[PATCH] pi-futex: rt mutex debug
Runtime debugging functionality for rt-mutexes. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Arjan van de Ven <arjan@linux.intel.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committed by
Linus Torvalds

parent
a6537be932
commit
e7eebaf6a8
@@ -40,6 +40,19 @@ struct rt_mutex {
|
||||
struct rt_mutex_waiter;
|
||||
struct hrtimer_sleeper;
|
||||
|
||||
#ifdef CONFIG_DEBUG_RT_MUTEXES
|
||||
extern int rt_mutex_debug_check_no_locks_freed(const void *from,
|
||||
unsigned long len);
|
||||
extern void rt_mutex_debug_check_no_locks_held(struct task_struct *task);
|
||||
#else
|
||||
static inline int rt_mutex_debug_check_no_locks_freed(const void *from,
|
||||
unsigned long len)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
# define rt_mutex_debug_check_no_locks_held(task) do { } while (0)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_RT_MUTEXES
|
||||
# define __DEBUG_RT_MUTEX_INITIALIZER(mutexname) \
|
||||
, .name = #mutexname, .file = __FILE__, .line = __LINE__
|
||||
@@ -48,7 +61,7 @@ struct hrtimer_sleeper;
|
||||
#else
|
||||
# define __DEBUG_RT_MUTEX_INITIALIZER(mutexname)
|
||||
# define rt_mutex_init(mutex) __rt_mutex_init(mutex, NULL)
|
||||
# define rt_mutex_debug_task_free(t) do { } while (0)
|
||||
# define rt_mutex_debug_task_free(t) do { } while (0)
|
||||
#endif
|
||||
|
||||
#define __RT_MUTEX_INITIALIZER(mutexname) \
|
||||
|
Reference in New Issue
Block a user