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 <kuz...@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

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to