~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/fs/fuse/fuse_trace.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /fs/fuse/fuse_trace.h (Architecture sparc) and /fs/fuse/fuse_trace.h (Architecture alpha)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #undef TRACE_SYSTEM                                 2 #undef TRACE_SYSTEM
  3 #define TRACE_SYSTEM fuse                           3 #define TRACE_SYSTEM fuse
  4                                                     4 
  5 #if !defined(_TRACE_FUSE_H) || defined(TRACE_H      5 #if !defined(_TRACE_FUSE_H) || defined(TRACE_HEADER_MULTI_READ)
  6 #define _TRACE_FUSE_H                               6 #define _TRACE_FUSE_H
  7                                                     7 
  8 #include <linux/tracepoint.h>                       8 #include <linux/tracepoint.h>
  9                                                     9 
 10 #define OPCODES                                    10 #define OPCODES                                                 \
 11         EM( FUSE_LOOKUP,                "FUSE_     11         EM( FUSE_LOOKUP,                "FUSE_LOOKUP")          \
 12         EM( FUSE_FORGET,                "FUSE_     12         EM( FUSE_FORGET,                "FUSE_FORGET")          \
 13         EM( FUSE_GETATTR,               "FUSE_     13         EM( FUSE_GETATTR,               "FUSE_GETATTR")         \
 14         EM( FUSE_SETATTR,               "FUSE_     14         EM( FUSE_SETATTR,               "FUSE_SETATTR")         \
 15         EM( FUSE_READLINK,              "FUSE_     15         EM( FUSE_READLINK,              "FUSE_READLINK")        \
 16         EM( FUSE_SYMLINK,               "FUSE_     16         EM( FUSE_SYMLINK,               "FUSE_SYMLINK")         \
 17         EM( FUSE_MKNOD,                 "FUSE_     17         EM( FUSE_MKNOD,                 "FUSE_MKNOD")           \
 18         EM( FUSE_MKDIR,                 "FUSE_     18         EM( FUSE_MKDIR,                 "FUSE_MKDIR")           \
 19         EM( FUSE_UNLINK,                "FUSE_     19         EM( FUSE_UNLINK,                "FUSE_UNLINK")          \
 20         EM( FUSE_RMDIR,                 "FUSE_     20         EM( FUSE_RMDIR,                 "FUSE_RMDIR")           \
 21         EM( FUSE_RENAME,                "FUSE_     21         EM( FUSE_RENAME,                "FUSE_RENAME")          \
 22         EM( FUSE_LINK,                  "FUSE_     22         EM( FUSE_LINK,                  "FUSE_LINK")            \
 23         EM( FUSE_OPEN,                  "FUSE_     23         EM( FUSE_OPEN,                  "FUSE_OPEN")            \
 24         EM( FUSE_READ,                  "FUSE_     24         EM( FUSE_READ,                  "FUSE_READ")            \
 25         EM( FUSE_WRITE,                 "FUSE_     25         EM( FUSE_WRITE,                 "FUSE_WRITE")           \
 26         EM( FUSE_STATFS,                "FUSE_     26         EM( FUSE_STATFS,                "FUSE_STATFS")          \
 27         EM( FUSE_RELEASE,               "FUSE_     27         EM( FUSE_RELEASE,               "FUSE_RELEASE")         \
 28         EM( FUSE_FSYNC,                 "FUSE_     28         EM( FUSE_FSYNC,                 "FUSE_FSYNC")           \
 29         EM( FUSE_SETXATTR,              "FUSE_     29         EM( FUSE_SETXATTR,              "FUSE_SETXATTR")        \
 30         EM( FUSE_GETXATTR,              "FUSE_     30         EM( FUSE_GETXATTR,              "FUSE_GETXATTR")        \
 31         EM( FUSE_LISTXATTR,             "FUSE_     31         EM( FUSE_LISTXATTR,             "FUSE_LISTXATTR")       \
 32         EM( FUSE_REMOVEXATTR,           "FUSE_     32         EM( FUSE_REMOVEXATTR,           "FUSE_REMOVEXATTR")     \
 33         EM( FUSE_FLUSH,                 "FUSE_     33         EM( FUSE_FLUSH,                 "FUSE_FLUSH")           \
 34         EM( FUSE_INIT,                  "FUSE_     34         EM( FUSE_INIT,                  "FUSE_INIT")            \
 35         EM( FUSE_OPENDIR,               "FUSE_     35         EM( FUSE_OPENDIR,               "FUSE_OPENDIR")         \
 36         EM( FUSE_READDIR,               "FUSE_     36         EM( FUSE_READDIR,               "FUSE_READDIR")         \
 37         EM( FUSE_RELEASEDIR,            "FUSE_     37         EM( FUSE_RELEASEDIR,            "FUSE_RELEASEDIR")      \
 38         EM( FUSE_FSYNCDIR,              "FUSE_     38         EM( FUSE_FSYNCDIR,              "FUSE_FSYNCDIR")        \
 39         EM( FUSE_GETLK,                 "FUSE_     39         EM( FUSE_GETLK,                 "FUSE_GETLK")           \
 40         EM( FUSE_SETLK,                 "FUSE_     40         EM( FUSE_SETLK,                 "FUSE_SETLK")           \
 41         EM( FUSE_SETLKW,                "FUSE_     41         EM( FUSE_SETLKW,                "FUSE_SETLKW")          \
 42         EM( FUSE_ACCESS,                "FUSE_     42         EM( FUSE_ACCESS,                "FUSE_ACCESS")          \
 43         EM( FUSE_CREATE,                "FUSE_     43         EM( FUSE_CREATE,                "FUSE_CREATE")          \
 44         EM( FUSE_INTERRUPT,             "FUSE_     44         EM( FUSE_INTERRUPT,             "FUSE_INTERRUPT")       \
 45         EM( FUSE_BMAP,                  "FUSE_     45         EM( FUSE_BMAP,                  "FUSE_BMAP")            \
 46         EM( FUSE_DESTROY,               "FUSE_     46         EM( FUSE_DESTROY,               "FUSE_DESTROY")         \
 47         EM( FUSE_IOCTL,                 "FUSE_     47         EM( FUSE_IOCTL,                 "FUSE_IOCTL")           \
 48         EM( FUSE_POLL,                  "FUSE_     48         EM( FUSE_POLL,                  "FUSE_POLL")            \
 49         EM( FUSE_NOTIFY_REPLY,          "FUSE_     49         EM( FUSE_NOTIFY_REPLY,          "FUSE_NOTIFY_REPLY")    \
 50         EM( FUSE_BATCH_FORGET,          "FUSE_     50         EM( FUSE_BATCH_FORGET,          "FUSE_BATCH_FORGET")    \
 51         EM( FUSE_FALLOCATE,             "FUSE_     51         EM( FUSE_FALLOCATE,             "FUSE_FALLOCATE")       \
 52         EM( FUSE_READDIRPLUS,           "FUSE_     52         EM( FUSE_READDIRPLUS,           "FUSE_READDIRPLUS")     \
 53         EM( FUSE_RENAME2,               "FUSE_     53         EM( FUSE_RENAME2,               "FUSE_RENAME2")         \
 54         EM( FUSE_LSEEK,                 "FUSE_     54         EM( FUSE_LSEEK,                 "FUSE_LSEEK")           \
 55         EM( FUSE_COPY_FILE_RANGE,       "FUSE_     55         EM( FUSE_COPY_FILE_RANGE,       "FUSE_COPY_FILE_RANGE") \
 56         EM( FUSE_SETUPMAPPING,          "FUSE_     56         EM( FUSE_SETUPMAPPING,          "FUSE_SETUPMAPPING")    \
 57         EM( FUSE_REMOVEMAPPING,         "FUSE_     57         EM( FUSE_REMOVEMAPPING,         "FUSE_REMOVEMAPPING")   \
 58         EM( FUSE_SYNCFS,                "FUSE_     58         EM( FUSE_SYNCFS,                "FUSE_SYNCFS")          \
 59         EM( FUSE_TMPFILE,               "FUSE_     59         EM( FUSE_TMPFILE,               "FUSE_TMPFILE")         \
 60         EM( FUSE_STATX,                 "FUSE_     60         EM( FUSE_STATX,                 "FUSE_STATX")           \
 61         EMe(CUSE_INIT,                  "CUSE_     61         EMe(CUSE_INIT,                  "CUSE_INIT")
 62                                                    62 
 63 /*                                                 63 /*
 64  * This will turn the above table into TRACE_D     64  * This will turn the above table into TRACE_DEFINE_ENUM() for each of the
 65  * entries.                                        65  * entries.
 66  */                                                66  */
 67 #undef EM                                          67 #undef EM
 68 #undef EMe                                         68 #undef EMe
 69 #define EM(a, b)        TRACE_DEFINE_ENUM(a);      69 #define EM(a, b)        TRACE_DEFINE_ENUM(a);
 70 #define EMe(a, b)       TRACE_DEFINE_ENUM(a);      70 #define EMe(a, b)       TRACE_DEFINE_ENUM(a);
 71                                                    71 
 72 OPCODES                                            72 OPCODES
 73                                                    73 
 74 /* Now we redfine it with the table that __pri     74 /* Now we redfine it with the table that __print_symbolic needs. */
 75 #undef EM                                          75 #undef EM
 76 #undef EMe                                         76 #undef EMe
 77 #define EM(a, b)        {a, b},                    77 #define EM(a, b)        {a, b},
 78 #define EMe(a, b)       {a, b}                     78 #define EMe(a, b)       {a, b}
 79                                                    79 
 80 TRACE_EVENT(fuse_request_send,                     80 TRACE_EVENT(fuse_request_send,
 81         TP_PROTO(const struct fuse_req *req),      81         TP_PROTO(const struct fuse_req *req),
 82                                                    82 
 83         TP_ARGS(req),                              83         TP_ARGS(req),
 84                                                    84 
 85         TP_STRUCT__entry(                          85         TP_STRUCT__entry(
 86                 __field(dev_t,                     86                 __field(dev_t,                  connection)
 87                 __field(uint64_t,                  87                 __field(uint64_t,               unique)
 88                 __field(enum fuse_opcode,          88                 __field(enum fuse_opcode,       opcode)
 89                 __field(uint32_t,                  89                 __field(uint32_t,               len)
 90         ),                                         90         ),
 91                                                    91 
 92         TP_fast_assign(                            92         TP_fast_assign(
 93                 __entry->connection     =          93                 __entry->connection     =       req->fm->fc->dev;
 94                 __entry->unique         =          94                 __entry->unique         =       req->in.h.unique;
 95                 __entry->opcode         =          95                 __entry->opcode         =       req->in.h.opcode;
 96                 __entry->len            =          96                 __entry->len            =       req->in.h.len;
 97         ),                                         97         ),
 98                                                    98 
 99         TP_printk("connection %u req %llu opco     99         TP_printk("connection %u req %llu opcode %u (%s) len %u ",
100                   __entry->connection, __entry    100                   __entry->connection, __entry->unique, __entry->opcode,
101                   __print_symbolic(__entry->op    101                   __print_symbolic(__entry->opcode, OPCODES), __entry->len)
102 );                                                102 );
103                                                   103 
104 TRACE_EVENT(fuse_request_end,                     104 TRACE_EVENT(fuse_request_end,
105         TP_PROTO(const struct fuse_req *req),     105         TP_PROTO(const struct fuse_req *req),
106                                                   106 
107         TP_ARGS(req),                             107         TP_ARGS(req),
108                                                   108 
109         TP_STRUCT__entry(                         109         TP_STRUCT__entry(
110                 __field(dev_t,          connec    110                 __field(dev_t,          connection)
111                 __field(uint64_t,       unique    111                 __field(uint64_t,       unique)
112                 __field(uint32_t,       len)      112                 __field(uint32_t,       len)
113                 __field(int32_t,        error)    113                 __field(int32_t,        error)
114         ),                                        114         ),
115                                                   115 
116         TP_fast_assign(                           116         TP_fast_assign(
117                 __entry->connection     =         117                 __entry->connection     =       req->fm->fc->dev;
118                 __entry->unique         =         118                 __entry->unique         =       req->in.h.unique;
119                 __entry->len            =         119                 __entry->len            =       req->out.h.len;
120                 __entry->error          =         120                 __entry->error          =       req->out.h.error;
121         ),                                        121         ),
122                                                   122 
123         TP_printk("connection %u req %llu len     123         TP_printk("connection %u req %llu len %u error %d", __entry->connection,
124                   __entry->unique, __entry->le    124                   __entry->unique, __entry->len, __entry->error)
125 );                                                125 );
126                                                   126 
127 #endif /* _TRACE_FUSE_H */                        127 #endif /* _TRACE_FUSE_H */
128                                                   128 
129 #undef TRACE_INCLUDE_PATH                         129 #undef TRACE_INCLUDE_PATH
130 #define TRACE_INCLUDE_PATH .                      130 #define TRACE_INCLUDE_PATH .
131 #define TRACE_INCLUDE_FILE fuse_trace             131 #define TRACE_INCLUDE_FILE fuse_trace
132 #include <trace/define_trace.h>                   132 #include <trace/define_trace.h>
133                                                   133 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php