2 #define TRACE_SYSTEM jbd2
4 #if !defined(_TRACE_JBD2_H) || defined(TRACE_HEADER_MULTI_READ)
10 struct transaction_chp_stats_s;
11 struct transaction_run_stats_s;
25 __entry->dev = journal->j_fs_dev->bd_dev;
37 TP_ARGS(journal, commit_transaction),
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;
51 TP_printk(
"dev %d,%d transaction %d sync %d",
60 TP_ARGS(journal, commit_transaction)
67 TP_ARGS(journal, commit_transaction)
74 TP_ARGS(journal, commit_transaction)
81 TP_ARGS(journal, commit_transaction)
88 TP_ARGS(journal, commit_transaction)
94 TP_ARGS(journal, commit_transaction),
104 __entry->dev = journal->j_fs_dev->bd_dev;
105 __entry->sync_commit = commit_transaction->t_synchronous_commit;
106 __entry->transaction = commit_transaction->t_tid;
107 __entry->head = journal->j_tail_sequence;
110 TP_printk(
"dev %d,%d transaction %d sync %d head %d",
137 struct transaction_run_stats_s *
stats),
145 __field(
unsigned long, running )
147 __field(
unsigned long, flushing )
148 __field(
unsigned long, logging )
157 __entry->wait = stats->rs_wait;
158 __entry->running = stats->rs_running;
159 __entry->locked = stats->rs_locked;
160 __entry->flushing = stats->rs_flushing;
161 __entry->logging = stats->rs_logging;
162 __entry->handle_count = stats->rs_handle_count;
163 __entry->blocks = stats->rs_blocks;
164 __entry->blocks_logged = stats->rs_blocks_logged;
167 TP_printk(
"dev %d,%d tid %lu wait %u running %u locked %u flushing %u "
168 "logging %u handle_count %u blocks %u blocks_logged %u",
181 struct transaction_chp_stats_s *stats),
188 __field(
unsigned long, chp_time )
197 __entry->chp_time = stats->cs_chp_time;
198 __entry->forced_to_close= stats->cs_forced_to_close;
199 __entry->written = stats->cs_written;
200 __entry->dropped = stats->cs_dropped;
203 TP_printk(
"dev %d,%d tid %lu chp_time %u forced_to_close %u "
204 "written %u dropped %u",
213 unsigned long block_nr,
unsigned long freed),
215 TP_ARGS(journal, first_tid, block_nr, freed),
221 __field(
unsigned long, block_nr )
226 __entry->dev = journal->j_fs_dev->bd_dev;
227 __entry->tail_sequence = journal->j_tail_sequence;
228 __entry->first_tid = first_tid;
233 TP_printk(
"dev %d,%d from %u to %u offset %lu freed %lu",
241 TP_PROTO(journal_t *journal,
int write_op),
251 __entry->dev = journal->j_fs_dev->bd_dev;