|
@@ -522,12 +522,15 @@ static inline void print_irqtrace_events(struct task_struct *curr)
|
|
|
#ifdef CONFIG_DEBUG_LOCK_ALLOC
|
|
#ifdef CONFIG_DEBUG_LOCK_ALLOC
|
|
|
# ifdef CONFIG_PROVE_LOCKING
|
|
# ifdef CONFIG_PROVE_LOCKING
|
|
|
# define lock_map_acquire(l) lock_acquire(l, 0, 0, 0, 2, NULL, _THIS_IP_)
|
|
# define lock_map_acquire(l) lock_acquire(l, 0, 0, 0, 2, NULL, _THIS_IP_)
|
|
|
|
|
+# define lock_map_acquire_read(l) lock_acquire(l, 0, 0, 2, 2, NULL, _THIS_IP_)
|
|
|
# else
|
|
# else
|
|
|
# define lock_map_acquire(l) lock_acquire(l, 0, 0, 0, 1, NULL, _THIS_IP_)
|
|
# define lock_map_acquire(l) lock_acquire(l, 0, 0, 0, 1, NULL, _THIS_IP_)
|
|
|
|
|
+# define lock_map_acquire_read(l) lock_acquire(l, 0, 0, 2, 1, NULL, _THIS_IP_)
|
|
|
# endif
|
|
# endif
|
|
|
# define lock_map_release(l) lock_release(l, 1, _THIS_IP_)
|
|
# define lock_map_release(l) lock_release(l, 1, _THIS_IP_)
|
|
|
#else
|
|
#else
|
|
|
# define lock_map_acquire(l) do { } while (0)
|
|
# define lock_map_acquire(l) do { } while (0)
|
|
|
|
|
+# define lock_map_acquire_read(l) do { } while (0)
|
|
|
# define lock_map_release(l) do { } while (0)
|
|
# define lock_map_release(l) do { } while (0)
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|