Blame view
kernel/locking/rtmutex-debug.h
1.44 KB
b24413180
|
1 |
/* SPDX-License-Identifier: GPL-2.0 */ |
e7eebaf6a
|
2 3 4 5 6 7 8 9 10 11 |
/* * RT-Mutexes: blocking mutual exclusion locks with PI support * * started by Ingo Molnar and Thomas Gleixner: * * Copyright (C) 2004-2006 Red Hat, Inc., Ingo Molnar <mingo@redhat.com> * Copyright (C) 2006, Timesys Corp., Thomas Gleixner <tglx@timesys.com> * * This file contains macros used solely by rtmutex.c. Debug version. */ |
e7eebaf6a
|
12 13 |
extern void debug_rt_mutex_init_waiter(struct rt_mutex_waiter *waiter); extern void debug_rt_mutex_free_waiter(struct rt_mutex_waiter *waiter); |
f5694788a
|
14 |
extern void debug_rt_mutex_init(struct rt_mutex *lock, const char *name, struct lock_class_key *key); |
9a11b49a8
|
15 |
extern void debug_rt_mutex_lock(struct rt_mutex *lock); |
e7eebaf6a
|
16 17 |
extern void debug_rt_mutex_unlock(struct rt_mutex *lock); extern void debug_rt_mutex_proxy_lock(struct rt_mutex *lock, |
9a11b49a8
|
18 |
struct task_struct *powner); |
e7eebaf6a
|
19 |
extern void debug_rt_mutex_proxy_unlock(struct rt_mutex *lock); |
8930ed80f
|
20 21 |
extern void debug_rt_mutex_deadlock(enum rtmutex_chainwalk chwalk, struct rt_mutex_waiter *waiter, |
e7eebaf6a
|
22 23 24 25 |
struct rt_mutex *lock); extern void debug_rt_mutex_print_deadlock(struct rt_mutex_waiter *waiter); # define debug_rt_mutex_reset_waiter(w) \ do { (w)->deadlock_lock = NULL; } while (0) |
8930ed80f
|
26 27 |
static inline bool debug_rt_mutex_detect_deadlock(struct rt_mutex_waiter *waiter, enum rtmutex_chainwalk walk) |
e7eebaf6a
|
28 29 30 |
{ return (waiter != NULL); } |
3d5c9340d
|
31 32 33 34 35 |
static inline void rt_mutex_print_deadlock(struct rt_mutex_waiter *w) { debug_rt_mutex_print_deadlock(w); } |