You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 237f0b6
Browse filesBrowse the repository at this point in the historyBrowse files
sched/spinlock: Add backtrace information of lock holder in spinlock debugging.
Add CONFIG_SPINLOCK_BACKTRACE: when enabled, record the full backtrace
of the task that locked the spinlock and print it on misuse, replacing
the single caller frame. Mark/clear the recorded backtrace in the
spinlock mark_locked/mark_unlocked paths, and make the backtrace and
pid-hash locks no-trace so the debug paths do not recurse into the
spinlock mark machinery.
Adapted for master:
- sched/sched_gettcb.c: no g_pidhashlock in the master tree (already
lock-free), the no-trace conversion has no target.
- keeps the otherwise identical vela shape (stack field, conditional
SPINLOCK_DEBUG_INIT, CONFIG_SPINLOCK_BACKTRACE).
Assisted-By: mimo-v2.6-pro
Co-authored-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
Signed-off-by: wangzhi16 <wangzhi16@xiaomi.com>
Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
0 commit comments