lite-lockdep: add basic lock acquisition records
ECNU inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I5R8DS -------------------------------- Construct a new tool for lightweight lock traces. The basic data structures and hook points are similar to Lockdep in this commit. Various lock instances are mapped to lite lock classes. The initialization, acquisition and release of lite lock classes are hooked to obtain lock information. The held locks of each task_struct are dynamically recorded. When running into some abnormal cases such as hung tasks, the lock states are supported to be output. Differ from Lockdep, locks are only recorded without coupled context and circular dependency checks, which leads to lower overhead. For now, mutexes, spinlocks, and rwsems are supported. Signed-off-by: Nweiqingv <709088312@qq.com>
Showing
include/linux/lite_lockdep.h
0 → 100644
include/trace/events/lite_lock.h
0 → 100644
kernel/locking/lite_lockdep.c
0 → 100644
想要评论请 注册 或 登录