diff options
Diffstat (limited to 'drivers/block/drbd/drbd_tracing.h')
-rw-r--r-- | drivers/block/drbd/drbd_tracing.h | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/drivers/block/drbd/drbd_tracing.h b/drivers/block/drbd/drbd_tracing.h new file mode 100644 index 000000000000..c4531a137f65 --- /dev/null +++ b/drivers/block/drbd/drbd_tracing.h | |||
@@ -0,0 +1,87 @@ | |||
1 | /* | ||
2 | drbd_tracing.h | ||
3 | |||
4 | This file is part of DRBD by Philipp Reisner and Lars Ellenberg. | ||
5 | |||
6 | Copyright (C) 2003-2008, LINBIT Information Technologies GmbH. | ||
7 | Copyright (C) 2003-2008, Philipp Reisner <philipp.reisner@linbit.com>. | ||
8 | Copyright (C) 2003-2008, Lars Ellenberg <lars.ellenberg@linbit.com>. | ||
9 | |||
10 | drbd is free software; you can redistribute it and/or modify | ||
11 | it under the terms of the GNU General Public License as published by | ||
12 | the Free Software Foundation; either version 2, or (at your option) | ||
13 | any later version. | ||
14 | |||
15 | drbd is distributed in the hope that it will be useful, | ||
16 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
18 | GNU General Public License for more details. | ||
19 | |||
20 | You should have received a copy of the GNU General Public License | ||
21 | along with drbd; see the file COPYING. If not, write to | ||
22 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | ||
23 | |||
24 | */ | ||
25 | |||
26 | #ifndef DRBD_TRACING_H | ||
27 | #define DRBD_TRACING_H | ||
28 | |||
29 | #include <linux/tracepoint.h> | ||
30 | #include "drbd_int.h" | ||
31 | #include "drbd_req.h" | ||
32 | |||
33 | enum { | ||
34 | TRACE_LVL_ALWAYS = 0, | ||
35 | TRACE_LVL_SUMMARY, | ||
36 | TRACE_LVL_METRICS, | ||
37 | TRACE_LVL_ALL, | ||
38 | TRACE_LVL_MAX | ||
39 | }; | ||
40 | |||
41 | DECLARE_TRACE(drbd_unplug, | ||
42 | TP_PROTO(struct drbd_conf *mdev, char* msg), | ||
43 | TP_ARGS(mdev, msg)); | ||
44 | |||
45 | DECLARE_TRACE(drbd_uuid, | ||
46 | TP_PROTO(struct drbd_conf *mdev, enum drbd_uuid_index index), | ||
47 | TP_ARGS(mdev, index)); | ||
48 | |||
49 | DECLARE_TRACE(drbd_ee, | ||
50 | TP_PROTO(struct drbd_conf *mdev, struct drbd_epoch_entry *e, char* msg), | ||
51 | TP_ARGS(mdev, e, msg)); | ||
52 | |||
53 | DECLARE_TRACE(drbd_md_io, | ||
54 | TP_PROTO(struct drbd_conf *mdev, int rw, struct drbd_backing_dev *bdev), | ||
55 | TP_ARGS(mdev, rw, bdev)); | ||
56 | |||
57 | DECLARE_TRACE(drbd_epoch, | ||
58 | TP_PROTO(struct drbd_conf *mdev, struct drbd_epoch *epoch, enum epoch_event ev), | ||
59 | TP_ARGS(mdev, epoch, ev)); | ||
60 | |||
61 | DECLARE_TRACE(drbd_netlink, | ||
62 | TP_PROTO(void *data, int is_req), | ||
63 | TP_ARGS(data, is_req)); | ||
64 | |||
65 | DECLARE_TRACE(drbd_actlog, | ||
66 | TP_PROTO(struct drbd_conf *mdev, sector_t sector, char* msg), | ||
67 | TP_ARGS(mdev, sector, msg)); | ||
68 | |||
69 | DECLARE_TRACE(drbd_bio, | ||
70 | TP_PROTO(struct drbd_conf *mdev, const char *pfx, struct bio *bio, int complete, | ||
71 | struct drbd_request *r), | ||
72 | TP_ARGS(mdev, pfx, bio, complete, r)); | ||
73 | |||
74 | DECLARE_TRACE(drbd_req, | ||
75 | TP_PROTO(struct drbd_request *req, enum drbd_req_event what, char *msg), | ||
76 | TP_ARGS(req, what, msg)); | ||
77 | |||
78 | DECLARE_TRACE(drbd_packet, | ||
79 | TP_PROTO(struct drbd_conf *mdev, struct socket *sock, | ||
80 | int recv, union p_polymorph *p, char *file, int line), | ||
81 | TP_ARGS(mdev, sock, recv, p, file, line)); | ||
82 | |||
83 | DECLARE_TRACE(_drbd_resync, | ||
84 | TP_PROTO(struct drbd_conf *mdev, int level, const char *fmt, va_list args), | ||
85 | TP_ARGS(mdev, level, fmt, args)); | ||
86 | |||
87 | #endif | ||