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

TOMOYO Linux Cross Reference
Linux/include/trace/events/jbd2.h

Version: ~ [ linux-5.3-rc4 ] ~ [ linux-5.2.8 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.66 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.138 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.189 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.189 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.71 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-3.9.11 ] ~ [ linux-3.8.13 ] ~ [ linux-3.7.10 ] ~ [ linux-3.6.11 ] ~ [ linux-3.5.7 ] ~ [ linux-3.4.113 ] ~ [ linux-3.3.8 ] ~ [ linux-3.2.102 ] ~ [ linux-3.1.10 ] ~ [ linux-3.0.101 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 #undef TRACE_SYSTEM
  2 #define TRACE_SYSTEM jbd2
  3 
  4 #if !defined(_TRACE_JBD2_H) || defined(TRACE_HEADER_MULTI_READ)
  5 #define _TRACE_JBD2_H
  6 
  7 #include <linux/jbd2.h>
  8 #include <linux/tracepoint.h>
  9 
 10 struct transaction_chp_stats_s;
 11 struct transaction_run_stats_s;
 12 
 13 TRACE_EVENT(jbd2_checkpoint,
 14 
 15         TP_PROTO(journal_t *journal, int result),
 16 
 17         TP_ARGS(journal, result),
 18 
 19         TP_STRUCT__entry(
 20                 __field(        dev_t,  dev                     )
 21                 __field(        int,    result                  )
 22         ),
 23 
 24         TP_fast_assign(
 25                 __entry->dev            = journal->j_fs_dev->bd_dev;
 26                 __entry->result         = result;
 27         ),
 28 
 29         TP_printk("dev %s result %d",
 30                   jbd2_dev_to_name(__entry->dev), __entry->result)
 31 );
 32 
 33 TRACE_EVENT(jbd2_start_commit,
 34 
 35         TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
 36 
 37         TP_ARGS(journal, commit_transaction),
 38 
 39         TP_STRUCT__entry(
 40                 __field(        dev_t,  dev                     )
 41                 __field(        char,   sync_commit               )
 42                 __field(        int,    transaction               )
 43         ),
 44 
 45         TP_fast_assign(
 46                 __entry->dev            = journal->j_fs_dev->bd_dev;
 47                 __entry->sync_commit = commit_transaction->t_synchronous_commit;
 48                 __entry->transaction    = commit_transaction->t_tid;
 49         ),
 50 
 51         TP_printk("dev %s transaction %d sync %d",
 52                   jbd2_dev_to_name(__entry->dev), __entry->transaction,
 53                   __entry->sync_commit)
 54 );
 55 
 56 TRACE_EVENT(jbd2_commit_locking,
 57 
 58         TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
 59 
 60         TP_ARGS(journal, commit_transaction),
 61 
 62         TP_STRUCT__entry(
 63                 __field(        dev_t,  dev                     )
 64                 __field(        char,   sync_commit               )
 65                 __field(        int,    transaction               )
 66         ),
 67 
 68         TP_fast_assign(
 69                 __entry->dev            = journal->j_fs_dev->bd_dev;
 70                 __entry->sync_commit = commit_transaction->t_synchronous_commit;
 71                 __entry->transaction    = commit_transaction->t_tid;
 72         ),
 73 
 74         TP_printk("dev %s transaction %d sync %d",
 75                   jbd2_dev_to_name(__entry->dev), __entry->transaction,
 76                   __entry->sync_commit)
 77 );
 78 
 79 TRACE_EVENT(jbd2_commit_flushing,
 80 
 81         TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
 82 
 83         TP_ARGS(journal, commit_transaction),
 84 
 85         TP_STRUCT__entry(
 86                 __field(        dev_t,  dev                     )
 87                 __field(        char,   sync_commit               )
 88                 __field(        int,    transaction               )
 89         ),
 90 
 91         TP_fast_assign(
 92                 __entry->dev            = journal->j_fs_dev->bd_dev;
 93                 __entry->sync_commit = commit_transaction->t_synchronous_commit;
 94                 __entry->transaction    = commit_transaction->t_tid;
 95         ),
 96 
 97         TP_printk("dev %s transaction %d sync %d",
 98                   jbd2_dev_to_name(__entry->dev), __entry->transaction,
 99                   __entry->sync_commit)
100 );
101 
102 TRACE_EVENT(jbd2_commit_logging,
103 
104         TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
105 
106         TP_ARGS(journal, commit_transaction),
107 
108         TP_STRUCT__entry(
109                 __field(        dev_t,  dev                     )
110                 __field(        char,   sync_commit               )
111                 __field(        int,    transaction               )
112         ),
113 
114         TP_fast_assign(
115                 __entry->dev            = journal->j_fs_dev->bd_dev;
116                 __entry->sync_commit = commit_transaction->t_synchronous_commit;
117                 __entry->transaction    = commit_transaction->t_tid;
118         ),
119 
120         TP_printk("dev %s transaction %d sync %d",
121                   jbd2_dev_to_name(__entry->dev), __entry->transaction,
122                   __entry->sync_commit)
123 );
124 
125 TRACE_EVENT(jbd2_end_commit,
126         TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
127 
128         TP_ARGS(journal, commit_transaction),
129 
130         TP_STRUCT__entry(
131                 __field(        dev_t,  dev                     )
132                 __field(        char,   sync_commit               )
133                 __field(        int,    transaction               )
134                 __field(        int,    head                      )
135         ),
136 
137         TP_fast_assign(
138                 __entry->dev            = journal->j_fs_dev->bd_dev;
139                 __entry->sync_commit = commit_transaction->t_synchronous_commit;
140                 __entry->transaction    = commit_transaction->t_tid;
141                 __entry->head           = journal->j_tail_sequence;
142         ),
143 
144         TP_printk("dev %s transaction %d sync %d head %d",
145                   jbd2_dev_to_name(__entry->dev), __entry->transaction,
146                   __entry->sync_commit, __entry->head)
147 );
148 
149 TRACE_EVENT(jbd2_submit_inode_data,
150         TP_PROTO(struct inode *inode),
151 
152         TP_ARGS(inode),
153 
154         TP_STRUCT__entry(
155                 __field(        dev_t,  dev                     )
156                 __field(        ino_t,  ino                     )
157         ),
158 
159         TP_fast_assign(
160                 __entry->dev    = inode->i_sb->s_dev;
161                 __entry->ino    = inode->i_ino;
162         ),
163 
164         TP_printk("dev %s ino %lu",
165                   jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino)
166 );
167 
168 TRACE_EVENT(jbd2_run_stats,
169         TP_PROTO(dev_t dev, unsigned long tid,
170                  struct transaction_run_stats_s *stats),
171 
172         TP_ARGS(dev, tid, stats),
173 
174         TP_STRUCT__entry(
175                 __field(                dev_t,  dev             )
176                 __field(        unsigned long,  tid             )
177                 __field(        unsigned long,  wait            )
178                 __field(        unsigned long,  running         )
179                 __field(        unsigned long,  locked          )
180                 __field(        unsigned long,  flushing        )
181                 __field(        unsigned long,  logging         )
182                 __field(                __u32,  handle_count    )
183                 __field(                __u32,  blocks          )
184                 __field(                __u32,  blocks_logged   )
185         ),
186 
187         TP_fast_assign(
188                 __entry->dev            = dev;
189                 __entry->tid            = tid;
190                 __entry->wait           = stats->rs_wait;
191                 __entry->running        = stats->rs_running;
192                 __entry->locked         = stats->rs_locked;
193                 __entry->flushing       = stats->rs_flushing;
194                 __entry->logging        = stats->rs_logging;
195                 __entry->handle_count   = stats->rs_handle_count;
196                 __entry->blocks         = stats->rs_blocks;
197                 __entry->blocks_logged  = stats->rs_blocks_logged;
198         ),
199 
200         TP_printk("dev %s tid %lu wait %u running %u locked %u flushing %u "
201                   "logging %u handle_count %u blocks %u blocks_logged %u",
202                   jbd2_dev_to_name(__entry->dev), __entry->tid,
203                   jiffies_to_msecs(__entry->wait),
204                   jiffies_to_msecs(__entry->running),
205                   jiffies_to_msecs(__entry->locked),
206                   jiffies_to_msecs(__entry->flushing),
207                   jiffies_to_msecs(__entry->logging),
208                   __entry->handle_count, __entry->blocks,
209                   __entry->blocks_logged)
210 );
211 
212 TRACE_EVENT(jbd2_checkpoint_stats,
213         TP_PROTO(dev_t dev, unsigned long tid,
214                  struct transaction_chp_stats_s *stats),
215 
216         TP_ARGS(dev, tid, stats),
217 
218         TP_STRUCT__entry(
219                 __field(                dev_t,  dev             )
220                 __field(        unsigned long,  tid             )
221                 __field(        unsigned long,  chp_time        )
222                 __field(                __u32,  forced_to_close )
223                 __field(                __u32,  written         )
224                 __field(                __u32,  dropped         )
225         ),
226 
227         TP_fast_assign(
228                 __entry->dev            = dev;
229                 __entry->tid            = tid;
230                 __entry->chp_time       = stats->cs_chp_time;
231                 __entry->forced_to_close= stats->cs_forced_to_close;
232                 __entry->written        = stats->cs_written;
233                 __entry->dropped        = stats->cs_dropped;
234         ),
235 
236         TP_printk("dev %s tid %lu chp_time %u forced_to_close %u "
237                   "written %u dropped %u",
238                   jbd2_dev_to_name(__entry->dev), __entry->tid,
239                   jiffies_to_msecs(__entry->chp_time),
240                   __entry->forced_to_close, __entry->written, __entry->dropped)
241 );
242 
243 #endif /* _TRACE_JBD2_H */
244 
245 /* This part must be outside protection */
246 #include <trace/define_trace.h>
247 

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

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | 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.

osdn.jp