Release 4.7 include/linux/debug_locks.h
#ifndef __LINUX_DEBUG_LOCKING_H
#define __LINUX_DEBUG_LOCKING_H
#include <linux/kernel.h>
#include <linux/atomic.h>
#include <linux/bug.h>
struct task_struct;
extern int debug_locks;
extern int debug_locks_silent;
static inline int __debug_locks_off(void)
{
return xchg(&debug_locks, 0);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
frederic weisbecker | frederic weisbecker | 18 | 100.00% | 1 | 100.00% |
| Total | 18 | 100.00% | 1 | 100.00% |
/*
* Generic 'turn off all lock debugging' function:
*/
extern int debug_locks_off(void);
#define DEBUG_LOCKS_WARN_ON(c) \
({ \
int __ret = 0; \
\
if (!oops_in_progress && unlikely(c)) { \
if (debug_locks_off() && !debug_locks_silent) \
WARN(1, "DEBUG_LOCKS_WARN_ON(%s)", #c); \
__ret = 1; \
} \
__ret; \
})
#ifdef CONFIG_SMP
# define SMP_DEBUG_LOCKS_WARN_ON(c) DEBUG_LOCKS_WARN_ON(c)
#else
# define SMP_DEBUG_LOCKS_WARN_ON(c) do { } while (0)
#endif
#ifdef CONFIG_DEBUG_LOCKING_API_SELFTESTS
extern void locking_selftest(void);
#else
# define locking_selftest() do { } while (0)
#endif
struct task_struct;
#ifdef CONFIG_LOCKDEP
extern void debug_show_all_locks(void);
extern void debug_show_held_locks(struct task_struct *task);
extern void debug_check_no_locks_freed(const void *from, unsigned long len);
extern void debug_check_no_locks_held(void);
#else
static inline void debug_show_all_locks(void)
{
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
ingo molnar | ingo molnar | 8 | 100.00% | 1 | 100.00% |
| Total | 8 | 100.00% | 1 | 100.00% |
static inline void debug_show_held_locks(struct task_struct *task)
{
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
ingo molnar | ingo molnar | 11 | 100.00% | 1 | 100.00% |
| Total | 11 | 100.00% | 1 | 100.00% |
static inline void
debug_check_no_locks_freed(const void *from, unsigned long len)
{
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
ingo molnar | ingo molnar | 15 | 100.00% | 1 | 100.00% |
| Total | 15 | 100.00% | 1 | 100.00% |
static inline void
debug_check_no_locks_held(void)
{
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
ingo molnar | ingo molnar | 7 | 87.50% | 1 | 50.00% |
colin cross | colin cross | 1 | 12.50% | 1 | 50.00% |
| Total | 8 | 100.00% | 2 | 100.00% |
#endif
#endif
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
ingo molnar | ingo molnar | 158 | 82.29% | 2 | 20.00% |
frederic weisbecker | frederic weisbecker | 20 | 10.42% | 1 | 10.00% |
alexey dobriyan | alexey dobriyan | 3 | 1.56% | 1 | 10.00% |
kyle mcmartin | kyle mcmartin | 3 | 1.56% | 1 | 10.00% |
eduard gabriel munteanu | eduard gabriel munteanu | 3 | 1.56% | 1 | 10.00% |
colin cross | colin cross | 2 | 1.04% | 1 | 10.00% |
james hogan | james hogan | 1 | 0.52% | 1 | 10.00% |
paul gortmaker | paul gortmaker | 1 | 0.52% | 1 | 10.00% |
arun sharma | arun sharma | 1 | 0.52% | 1 | 10.00% |
| Total | 192 | 100.00% | 10 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.