summaryrefslogtreecommitdiff
path: root/drivers/md/dm-vdo/dump.h
diff options
context:
space:
mode:
authorMatthew Sakai <msakai@redhat.com>2023-11-17 05:12:14 +0300
committerMike Snitzer <snitzer@kernel.org>2024-02-20 21:43:15 +0300
commit29a811959c72b60601842b5c61a66d677ecbcc92 (patch)
tree5a19376dc718c807e1cd94f4cbf552adc7296f93 /drivers/md/dm-vdo/dump.h
parent92f8d7a94fe743831728943aa8988ddf1dddac22 (diff)
downloadlinux-29a811959c72b60601842b5c61a66d677ecbcc92.tar.xz
dm vdo: add debugging support
Add support for dumping detailed vdo state to the kernel log via a dmsetup message. The dump code is not thread-safe and is generally intended for use only when the vdo is hung. Co-developed-by: J. corwin Coburn <corwin@hurlbutnet.net> Signed-off-by: J. corwin Coburn <corwin@hurlbutnet.net> Co-developed-by: Michael Sclafani <dm-devel@lists.linux.dev> Signed-off-by: Michael Sclafani <dm-devel@lists.linux.dev> Co-developed-by: Sweet Tea Dorminy <sweettea-kernel@dorminy.me> Signed-off-by: Sweet Tea Dorminy <sweettea-kernel@dorminy.me> Co-developed-by: Bruce Johnston <bjohnsto@redhat.com> Signed-off-by: Bruce Johnston <bjohnsto@redhat.com> Co-developed-by: Ken Raeburn <raeburn@redhat.com> Signed-off-by: Ken Raeburn <raeburn@redhat.com> Signed-off-by: Matthew Sakai <msakai@redhat.com> Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'drivers/md/dm-vdo/dump.h')
-rw-r--r--drivers/md/dm-vdo/dump.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/md/dm-vdo/dump.h b/drivers/md/dm-vdo/dump.h
new file mode 100644
index 000000000000..ad47c70cca78
--- /dev/null
+++ b/drivers/md/dm-vdo/dump.h
@@ -0,0 +1,17 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+/*
+ * Copyright 2023 Red Hat
+ */
+
+#ifndef VDO_DUMP_H
+#define VDO_DUMP_H
+
+#include "types.h"
+
+int vdo_dump(struct vdo *vdo, unsigned int argc, char *const *argv, const char *why);
+
+void vdo_dump_all(struct vdo *vdo, const char *why);
+
+void dump_data_vio(void *data);
+
+#endif /* VDO_DUMP_H */