--- zzzz-none-000/linux-4.9.279/include/linux/mutex-debug.h 2021-08-08 06:38:54.000000000 +0000 +++ puma7-atom-6591-750/linux-4.9.279/include/linux/mutex-debug.h 2023-02-08 11:43:43.000000000 +0000 @@ -10,7 +10,12 @@ */ #define __DEBUG_MUTEX_INITIALIZER(lockname) \ - , .magic = &lockname + , .magic = &lockname \ + , .owner_info = { \ + .pid = NULL, \ + .ip = 0, \ + } \ + , .owner_lock = __SPIN_LOCK_UNLOCKED(lockname.owner_lock) #define mutex_init(mutex) \ do { \ @@ -21,4 +26,7 @@ extern void mutex_destroy(struct mutex *lock); +extern int debug_mutex_task_blocked_by(struct task_struct *blocking_task, + struct callerinfo *owner_info); +extern void show_blocking_mutex_holder(struct task_struct *task); #endif