]>
Commit | Line | Data |
---|---|---|
1 | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- | |
2 | // vim: ts=8 sw=2 smarttab | |
3 | /* | |
4 | * Ceph - scalable distributed file system | |
5 | * | |
6 | * Copyright (C) 2008-2011 New Dream Network | |
7 | * | |
8 | * This is free software; you can redistribute it and/or | |
9 | * modify it under the terms of the GNU Lesser General Public | |
10 | * License version 2.1, as published by the Free Software | |
11 | * Foundation. See file COPYING. | |
12 | * | |
13 | */ | |
14 | ||
15 | #ifndef CEPH_LOCKDEP_H | |
16 | #define CEPH_LOCKDEP_H | |
17 | ||
18 | class CephContext; | |
19 | ||
20 | extern bool g_lockdep; | |
21 | ||
22 | extern void lockdep_register_ceph_context(CephContext *cct); | |
23 | extern void lockdep_unregister_ceph_context(CephContext *cct); | |
24 | extern int lockdep_register(const char *n); | |
25 | extern void lockdep_unregister(int id); | |
26 | extern int lockdep_will_lock(const char *n, int id, bool force_backtrace=false); | |
27 | extern int lockdep_locked(const char *n, int id, bool force_backtrace=false); | |
28 | extern int lockdep_will_unlock(const char *n, int id); | |
29 | extern int lockdep_dump_locks(); | |
30 | ||
31 | #endif |