[Devel] [PATCH VZ9 7/10] fs/fuse/kio: extend ktrace protocol to carry aux info
Alexey Kuznetsov
kuznet at virtuozzo.com
Fri Jan 17 21:09:13 MSK 2025
This is only protocol definition. This extension is backward
comaptible way to transfer additional information in ktrace messages.
The extension is especially important for libpcs_blog and vstorage-mount,
but here we are ging to use it to log mre detaile timings and cpu
affinity information.
Signed-off-by: Alexey Kuznetsov <kuznet at virtuozzo.com>
---
fs/fuse/kio/pcs/fuse_ktrace_prot.h | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/fs/fuse/kio/pcs/fuse_ktrace_prot.h b/fs/fuse/kio/pcs/fuse_ktrace_prot.h
index 3c985f9..53356c7 100644
--- a/fs/fuse/kio/pcs/fuse_ktrace_prot.h
+++ b/fs/fuse/kio/pcs/fuse_ktrace_prot.h
@@ -47,4 +47,20 @@ struct fuse_tr_iotimes_cs
__u32 ts_io;
};
+struct fuse_tr_iotimes_aux {
+ __u32 ts_dio;
+ __u8 cpus[4];
+};
+
+#define FUSE_TR_ATTR_MAGIC 0xF8AC
+#define FUSE_TR_ATTR_PAD 0
+#define FUSE_TR_ATTR_NAME 1
+#define FUSE_TR_ATTR_AUX 2
+
+struct fuse_tr_attr {
+ __u16 magic;
+ __u16 type;
+ __u32 len;
+};
+
#endif /* _FUSE_KTRACE_PROT_H_ */
--
1.8.3.1
More information about the Devel
mailing list