• W
    lite-lockdep: add basic lock acquisition records · d801dbbb
    weiqingv 提交于
    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>
    d801dbbb
mutex.h 7.2 KB