XenevaOS
Loading...
Searching...
No Matches
Macros | Functions | Variables
debug_locks.h File Reference
#include <linux/atomic.h>
#include <linux/cache.h>
Include dependency graph for debug_locks.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEBUG_LOCKS_WARN_ON(c)
 
#define SMP_DEBUG_LOCKS_WARN_ON(c)   do { } while (0)
 
#define locking_selftest()   do { } while (0)
 

Functions

int debug_locks_off (void)
 

Variables

int debug_locks __read_mostly
 

Macro Definition Documentation

◆ DEBUG_LOCKS_WARN_ON

#define DEBUG_LOCKS_WARN_ON (   c)
Value:
({ \
int __ret = 0; \
\
if (!oops_in_progress && unlikely(c)) { \
instrumentation_begin(); \
if (debug_locks_off() && !debug_locks_silent) \
WARN(1, "DEBUG_LOCKS_WARN_ON(%s)", #c); \
instrumentation_end(); \
__ret = 1; \
} \
__ret; \
})
#define unlikely(x)
Definition compiler.h:30
int debug_locks_off(void)
int oops_in_progress

◆ locking_selftest

#define locking_selftest ( )    do { } while (0)

◆ SMP_DEBUG_LOCKS_WARN_ON

#define SMP_DEBUG_LOCKS_WARN_ON (   c)    do { } while (0)

Function Documentation

◆ debug_locks_off()

int debug_locks_off ( void  )
extern

Variable Documentation

◆ __read_mostly

int debug_locks_silent __read_mostly
extern