1d0b6e04aSLi Zefan #undef TRACE_SYSTEM 2d0b6e04aSLi Zefan #define TRACE_SYSTEM jbd2 3d0b6e04aSLi Zefan 4879c5e6bSTheodore Ts'o #if !defined(_TRACE_JBD2_H) || defined(TRACE_HEADER_MULTI_READ) 5879c5e6bSTheodore Ts'o #define _TRACE_JBD2_H 6879c5e6bSTheodore Ts'o 7879c5e6bSTheodore Ts'o #include <linux/jbd2.h> 8879c5e6bSTheodore Ts'o #include <linux/tracepoint.h> 9879c5e6bSTheodore Ts'o 10bf699327STheodore Ts'o struct transaction_chp_stats_s; 11bf699327STheodore Ts'o struct transaction_run_stats_s; 12bf699327STheodore Ts'o 13879c5e6bSTheodore Ts'o TRACE_EVENT(jbd2_checkpoint, 14879c5e6bSTheodore Ts'o 15879c5e6bSTheodore Ts'o TP_PROTO(journal_t *journal, int result), 16879c5e6bSTheodore Ts'o 17879c5e6bSTheodore Ts'o TP_ARGS(journal, result), 18879c5e6bSTheodore Ts'o 19879c5e6bSTheodore Ts'o TP_STRUCT__entry( 200562e0baSJiaying Zhang __field( dev_t, dev ) 21879c5e6bSTheodore Ts'o __field( int, result ) 22879c5e6bSTheodore Ts'o ), 23879c5e6bSTheodore Ts'o 24879c5e6bSTheodore Ts'o TP_fast_assign( 250562e0baSJiaying Zhang __entry->dev = journal->j_fs_dev->bd_dev; 26879c5e6bSTheodore Ts'o __entry->result = result; 27879c5e6bSTheodore Ts'o ), 28879c5e6bSTheodore Ts'o 294862fd60STheodore Ts'o TP_printk("dev %d,%d result %d", 304862fd60STheodore Ts'o MAJOR(__entry->dev), MINOR(__entry->dev), __entry->result) 31879c5e6bSTheodore Ts'o ); 32879c5e6bSTheodore Ts'o 33071688f3SLi Zefan DECLARE_EVENT_CLASS(jbd2_commit, 34879c5e6bSTheodore Ts'o 35879c5e6bSTheodore Ts'o TP_PROTO(journal_t *journal, transaction_t *commit_transaction), 36879c5e6bSTheodore Ts'o 37879c5e6bSTheodore Ts'o TP_ARGS(journal, commit_transaction), 38879c5e6bSTheodore Ts'o 39879c5e6bSTheodore Ts'o TP_STRUCT__entry( 400562e0baSJiaying Zhang __field( dev_t, dev ) 41879c5e6bSTheodore Ts'o __field( char, sync_commit ) 42879c5e6bSTheodore Ts'o __field( int, transaction ) 43879c5e6bSTheodore Ts'o ), 44879c5e6bSTheodore Ts'o 45879c5e6bSTheodore Ts'o TP_fast_assign( 460562e0baSJiaying Zhang __entry->dev = journal->j_fs_dev->bd_dev; 47879c5e6bSTheodore Ts'o __entry->sync_commit = commit_transaction->t_synchronous_commit; 48879c5e6bSTheodore Ts'o __entry->transaction = commit_transaction->t_tid; 49879c5e6bSTheodore Ts'o ), 50879c5e6bSTheodore Ts'o 514862fd60STheodore Ts'o TP_printk("dev %d,%d transaction %d sync %d", 524862fd60STheodore Ts'o MAJOR(__entry->dev), MINOR(__entry->dev), 534862fd60STheodore Ts'o __entry->transaction, __entry->sync_commit) 54879c5e6bSTheodore Ts'o ); 55879c5e6bSTheodore Ts'o 56071688f3SLi Zefan DEFINE_EVENT(jbd2_commit, jbd2_start_commit, 57879c5e6bSTheodore Ts'o 58879c5e6bSTheodore Ts'o TP_PROTO(journal_t *journal, transaction_t *commit_transaction), 59879c5e6bSTheodore Ts'o 60071688f3SLi Zefan TP_ARGS(journal, commit_transaction) 61879c5e6bSTheodore Ts'o ); 62879c5e6bSTheodore Ts'o 63071688f3SLi Zefan DEFINE_EVENT(jbd2_commit, jbd2_commit_locking, 64879c5e6bSTheodore Ts'o 65879c5e6bSTheodore Ts'o TP_PROTO(journal_t *journal, transaction_t *commit_transaction), 66879c5e6bSTheodore Ts'o 67071688f3SLi Zefan TP_ARGS(journal, commit_transaction) 68879c5e6bSTheodore Ts'o ); 69879c5e6bSTheodore Ts'o 70071688f3SLi Zefan DEFINE_EVENT(jbd2_commit, jbd2_commit_flushing, 71879c5e6bSTheodore Ts'o 72879c5e6bSTheodore Ts'o TP_PROTO(journal_t *journal, transaction_t *commit_transaction), 73879c5e6bSTheodore Ts'o 74071688f3SLi Zefan TP_ARGS(journal, commit_transaction) 75071688f3SLi Zefan ); 76879c5e6bSTheodore Ts'o 77071688f3SLi Zefan DEFINE_EVENT(jbd2_commit, jbd2_commit_logging, 78879c5e6bSTheodore Ts'o 79071688f3SLi Zefan TP_PROTO(journal_t *journal, transaction_t *commit_transaction), 80879c5e6bSTheodore Ts'o 81071688f3SLi Zefan TP_ARGS(journal, commit_transaction) 82879c5e6bSTheodore Ts'o ); 83879c5e6bSTheodore Ts'o 842201c590SSeiji Aguchi DEFINE_EVENT(jbd2_commit, jbd2_drop_transaction, 852201c590SSeiji Aguchi 862201c590SSeiji Aguchi TP_PROTO(journal_t *journal, transaction_t *commit_transaction), 872201c590SSeiji Aguchi 882201c590SSeiji Aguchi TP_ARGS(journal, commit_transaction) 892201c590SSeiji Aguchi ); 902201c590SSeiji Aguchi 91879c5e6bSTheodore Ts'o TRACE_EVENT(jbd2_end_commit, 92879c5e6bSTheodore Ts'o TP_PROTO(journal_t *journal, transaction_t *commit_transaction), 93879c5e6bSTheodore Ts'o 94879c5e6bSTheodore Ts'o TP_ARGS(journal, commit_transaction), 95879c5e6bSTheodore Ts'o 96879c5e6bSTheodore Ts'o TP_STRUCT__entry( 970562e0baSJiaying Zhang __field( dev_t, dev ) 98879c5e6bSTheodore Ts'o __field( char, sync_commit ) 99879c5e6bSTheodore Ts'o __field( int, transaction ) 100879c5e6bSTheodore Ts'o __field( int, head ) 101879c5e6bSTheodore Ts'o ), 102879c5e6bSTheodore Ts'o 103879c5e6bSTheodore Ts'o TP_fast_assign( 1040562e0baSJiaying Zhang __entry->dev = journal->j_fs_dev->bd_dev; 105879c5e6bSTheodore Ts'o __entry->sync_commit = commit_transaction->t_synchronous_commit; 106879c5e6bSTheodore Ts'o __entry->transaction = commit_transaction->t_tid; 107879c5e6bSTheodore Ts'o __entry->head = journal->j_tail_sequence; 108879c5e6bSTheodore Ts'o ), 109879c5e6bSTheodore Ts'o 1104862fd60STheodore Ts'o TP_printk("dev %d,%d transaction %d sync %d head %d", 1114862fd60STheodore Ts'o MAJOR(__entry->dev), MINOR(__entry->dev), 1124862fd60STheodore Ts'o __entry->transaction, __entry->sync_commit, __entry->head) 113879c5e6bSTheodore Ts'o ); 114879c5e6bSTheodore Ts'o 115879c5e6bSTheodore Ts'o TRACE_EVENT(jbd2_submit_inode_data, 116879c5e6bSTheodore Ts'o TP_PROTO(struct inode *inode), 117879c5e6bSTheodore Ts'o 118879c5e6bSTheodore Ts'o TP_ARGS(inode), 119879c5e6bSTheodore Ts'o 120879c5e6bSTheodore Ts'o TP_STRUCT__entry( 1210562e0baSJiaying Zhang __field( dev_t, dev ) 122879c5e6bSTheodore Ts'o __field( ino_t, ino ) 123879c5e6bSTheodore Ts'o ), 124879c5e6bSTheodore Ts'o 125879c5e6bSTheodore Ts'o TP_fast_assign( 1260562e0baSJiaying Zhang __entry->dev = inode->i_sb->s_dev; 127879c5e6bSTheodore Ts'o __entry->ino = inode->i_ino; 128879c5e6bSTheodore Ts'o ), 129879c5e6bSTheodore Ts'o 1304862fd60STheodore Ts'o TP_printk("dev %d,%d ino %lu", 1314862fd60STheodore Ts'o MAJOR(__entry->dev), MINOR(__entry->dev), 1324862fd60STheodore Ts'o (unsigned long) __entry->ino) 133879c5e6bSTheodore Ts'o ); 134879c5e6bSTheodore Ts'o 135343d9c28STheodore Ts'o TRACE_EVENT(jbd2_handle_start, 136343d9c28STheodore Ts'o TP_PROTO(dev_t dev, unsigned long tid, unsigned int type, 137343d9c28STheodore Ts'o unsigned int line_no, int requested_blocks), 138343d9c28STheodore Ts'o 139343d9c28STheodore Ts'o TP_ARGS(dev, tid, type, line_no, requested_blocks), 140343d9c28STheodore Ts'o 141343d9c28STheodore Ts'o TP_STRUCT__entry( 142343d9c28STheodore Ts'o __field( dev_t, dev ) 143343d9c28STheodore Ts'o __field( unsigned long, tid ) 144343d9c28STheodore Ts'o __field( unsigned int, type ) 145343d9c28STheodore Ts'o __field( unsigned int, line_no ) 146343d9c28STheodore Ts'o __field( int, requested_blocks) 147343d9c28STheodore Ts'o ), 148343d9c28STheodore Ts'o 149343d9c28STheodore Ts'o TP_fast_assign( 150343d9c28STheodore Ts'o __entry->dev = dev; 151343d9c28STheodore Ts'o __entry->tid = tid; 152343d9c28STheodore Ts'o __entry->type = type; 153343d9c28STheodore Ts'o __entry->line_no = line_no; 154343d9c28STheodore Ts'o __entry->requested_blocks = requested_blocks; 155343d9c28STheodore Ts'o ), 156343d9c28STheodore Ts'o 157343d9c28STheodore Ts'o TP_printk("dev %d,%d tid %lu type %u line_no %u " 158343d9c28STheodore Ts'o "requested_blocks %d", 159343d9c28STheodore Ts'o MAJOR(__entry->dev), MINOR(__entry->dev), __entry->tid, 160343d9c28STheodore Ts'o __entry->type, __entry->line_no, __entry->requested_blocks) 161343d9c28STheodore Ts'o ); 162343d9c28STheodore Ts'o 163343d9c28STheodore Ts'o TRACE_EVENT(jbd2_handle_extend, 164343d9c28STheodore Ts'o TP_PROTO(dev_t dev, unsigned long tid, unsigned int type, 165343d9c28STheodore Ts'o unsigned int line_no, int buffer_credits, 166343d9c28STheodore Ts'o int requested_blocks), 167343d9c28STheodore Ts'o 168343d9c28STheodore Ts'o TP_ARGS(dev, tid, type, line_no, buffer_credits, requested_blocks), 169343d9c28STheodore Ts'o 170343d9c28STheodore Ts'o TP_STRUCT__entry( 171343d9c28STheodore Ts'o __field( dev_t, dev ) 172343d9c28STheodore Ts'o __field( unsigned long, tid ) 173343d9c28STheodore Ts'o __field( unsigned int, type ) 174343d9c28STheodore Ts'o __field( unsigned int, line_no ) 175343d9c28STheodore Ts'o __field( int, buffer_credits ) 176343d9c28STheodore Ts'o __field( int, requested_blocks) 177343d9c28STheodore Ts'o ), 178343d9c28STheodore Ts'o 179343d9c28STheodore Ts'o TP_fast_assign( 180343d9c28STheodore Ts'o __entry->dev = dev; 181343d9c28STheodore Ts'o __entry->tid = tid; 182343d9c28STheodore Ts'o __entry->type = type; 183343d9c28STheodore Ts'o __entry->line_no = line_no; 184343d9c28STheodore Ts'o __entry->buffer_credits = buffer_credits; 185343d9c28STheodore Ts'o __entry->requested_blocks = requested_blocks; 186343d9c28STheodore Ts'o ), 187343d9c28STheodore Ts'o 188343d9c28STheodore Ts'o TP_printk("dev %d,%d tid %lu type %u line_no %u " 189343d9c28STheodore Ts'o "buffer_credits %d requested_blocks %d", 190343d9c28STheodore Ts'o MAJOR(__entry->dev), MINOR(__entry->dev), __entry->tid, 191343d9c28STheodore Ts'o __entry->type, __entry->line_no, __entry->buffer_credits, 192343d9c28STheodore Ts'o __entry->requested_blocks) 193343d9c28STheodore Ts'o ); 194343d9c28STheodore Ts'o 195343d9c28STheodore Ts'o TRACE_EVENT(jbd2_handle_stats, 196343d9c28STheodore Ts'o TP_PROTO(dev_t dev, unsigned long tid, unsigned int type, 197343d9c28STheodore Ts'o unsigned int line_no, int interval, int sync, 198343d9c28STheodore Ts'o int requested_blocks, int dirtied_blocks), 199343d9c28STheodore Ts'o 200343d9c28STheodore Ts'o TP_ARGS(dev, tid, type, line_no, interval, sync, 201343d9c28STheodore Ts'o requested_blocks, dirtied_blocks), 202343d9c28STheodore Ts'o 203343d9c28STheodore Ts'o TP_STRUCT__entry( 204343d9c28STheodore Ts'o __field( dev_t, dev ) 205343d9c28STheodore Ts'o __field( unsigned long, tid ) 206343d9c28STheodore Ts'o __field( unsigned int, type ) 207343d9c28STheodore Ts'o __field( unsigned int, line_no ) 208343d9c28STheodore Ts'o __field( int, interval ) 209343d9c28STheodore Ts'o __field( int, sync ) 210343d9c28STheodore Ts'o __field( int, requested_blocks) 211343d9c28STheodore Ts'o __field( int, dirtied_blocks ) 212343d9c28STheodore Ts'o ), 213343d9c28STheodore Ts'o 214343d9c28STheodore Ts'o TP_fast_assign( 215343d9c28STheodore Ts'o __entry->dev = dev; 216343d9c28STheodore Ts'o __entry->tid = tid; 217343d9c28STheodore Ts'o __entry->type = type; 218343d9c28STheodore Ts'o __entry->line_no = line_no; 219343d9c28STheodore Ts'o __entry->interval = interval; 220343d9c28STheodore Ts'o __entry->sync = sync; 221343d9c28STheodore Ts'o __entry->requested_blocks = requested_blocks; 222343d9c28STheodore Ts'o __entry->dirtied_blocks = dirtied_blocks; 223343d9c28STheodore Ts'o ), 224343d9c28STheodore Ts'o 225343d9c28STheodore Ts'o TP_printk("dev %d,%d tid %lu type %u line_no %u interval %d " 226343d9c28STheodore Ts'o "sync %d requested_blocks %d dirtied_blocks %d", 227343d9c28STheodore Ts'o MAJOR(__entry->dev), MINOR(__entry->dev), __entry->tid, 228343d9c28STheodore Ts'o __entry->type, __entry->line_no, __entry->interval, 229343d9c28STheodore Ts'o __entry->sync, __entry->requested_blocks, 230343d9c28STheodore Ts'o __entry->dirtied_blocks) 231343d9c28STheodore Ts'o ); 232343d9c28STheodore Ts'o 233bf699327STheodore Ts'o TRACE_EVENT(jbd2_run_stats, 234bf699327STheodore Ts'o TP_PROTO(dev_t dev, unsigned long tid, 235bf699327STheodore Ts'o struct transaction_run_stats_s *stats), 236bf699327STheodore Ts'o 237bf699327STheodore Ts'o TP_ARGS(dev, tid, stats), 238bf699327STheodore Ts'o 239bf699327STheodore Ts'o TP_STRUCT__entry( 2400562e0baSJiaying Zhang __field( dev_t, dev ) 241bf699327STheodore Ts'o __field( unsigned long, tid ) 242bf699327STheodore Ts'o __field( unsigned long, wait ) 2439fff24aaSTheodore Ts'o __field( unsigned long, request_delay ) 244bf699327STheodore Ts'o __field( unsigned long, running ) 245bf699327STheodore Ts'o __field( unsigned long, locked ) 246bf699327STheodore Ts'o __field( unsigned long, flushing ) 247bf699327STheodore Ts'o __field( unsigned long, logging ) 248bf699327STheodore Ts'o __field( __u32, handle_count ) 249bf699327STheodore Ts'o __field( __u32, blocks ) 250bf699327STheodore Ts'o __field( __u32, blocks_logged ) 251bf699327STheodore Ts'o ), 252bf699327STheodore Ts'o 253bf699327STheodore Ts'o TP_fast_assign( 2540562e0baSJiaying Zhang __entry->dev = dev; 255bf699327STheodore Ts'o __entry->tid = tid; 256bf699327STheodore Ts'o __entry->wait = stats->rs_wait; 2579fff24aaSTheodore Ts'o __entry->request_delay = stats->rs_request_delay; 258bf699327STheodore Ts'o __entry->running = stats->rs_running; 259bf699327STheodore Ts'o __entry->locked = stats->rs_locked; 260bf699327STheodore Ts'o __entry->flushing = stats->rs_flushing; 261bf699327STheodore Ts'o __entry->logging = stats->rs_logging; 262bf699327STheodore Ts'o __entry->handle_count = stats->rs_handle_count; 263bf699327STheodore Ts'o __entry->blocks = stats->rs_blocks; 264bf699327STheodore Ts'o __entry->blocks_logged = stats->rs_blocks_logged; 265bf699327STheodore Ts'o ), 266bf699327STheodore Ts'o 2679fff24aaSTheodore Ts'o TP_printk("dev %d,%d tid %lu wait %u request_delay %u running %u " 2689fff24aaSTheodore Ts'o "locked %u flushing %u logging %u handle_count %u " 2699fff24aaSTheodore Ts'o "blocks %u blocks_logged %u", 2704862fd60STheodore Ts'o MAJOR(__entry->dev), MINOR(__entry->dev), __entry->tid, 271bf699327STheodore Ts'o jiffies_to_msecs(__entry->wait), 2729fff24aaSTheodore Ts'o jiffies_to_msecs(__entry->request_delay), 273bf699327STheodore Ts'o jiffies_to_msecs(__entry->running), 274bf699327STheodore Ts'o jiffies_to_msecs(__entry->locked), 275bf699327STheodore Ts'o jiffies_to_msecs(__entry->flushing), 276bf699327STheodore Ts'o jiffies_to_msecs(__entry->logging), 277bf699327STheodore Ts'o __entry->handle_count, __entry->blocks, 278bf699327STheodore Ts'o __entry->blocks_logged) 279bf699327STheodore Ts'o ); 280bf699327STheodore Ts'o 281bf699327STheodore Ts'o TRACE_EVENT(jbd2_checkpoint_stats, 282bf699327STheodore Ts'o TP_PROTO(dev_t dev, unsigned long tid, 283bf699327STheodore Ts'o struct transaction_chp_stats_s *stats), 284bf699327STheodore Ts'o 285bf699327STheodore Ts'o TP_ARGS(dev, tid, stats), 286bf699327STheodore Ts'o 287bf699327STheodore Ts'o TP_STRUCT__entry( 2880562e0baSJiaying Zhang __field( dev_t, dev ) 289bf699327STheodore Ts'o __field( unsigned long, tid ) 290bf699327STheodore Ts'o __field( unsigned long, chp_time ) 291bf699327STheodore Ts'o __field( __u32, forced_to_close ) 292bf699327STheodore Ts'o __field( __u32, written ) 293bf699327STheodore Ts'o __field( __u32, dropped ) 294bf699327STheodore Ts'o ), 295bf699327STheodore Ts'o 296bf699327STheodore Ts'o TP_fast_assign( 2970562e0baSJiaying Zhang __entry->dev = dev; 298bf699327STheodore Ts'o __entry->tid = tid; 299bf699327STheodore Ts'o __entry->chp_time = stats->cs_chp_time; 300bf699327STheodore Ts'o __entry->forced_to_close= stats->cs_forced_to_close; 301bf699327STheodore Ts'o __entry->written = stats->cs_written; 302bf699327STheodore Ts'o __entry->dropped = stats->cs_dropped; 303bf699327STheodore Ts'o ), 304bf699327STheodore Ts'o 3054862fd60STheodore Ts'o TP_printk("dev %d,%d tid %lu chp_time %u forced_to_close %u " 306bf699327STheodore Ts'o "written %u dropped %u", 3074862fd60STheodore Ts'o MAJOR(__entry->dev), MINOR(__entry->dev), __entry->tid, 308bf699327STheodore Ts'o jiffies_to_msecs(__entry->chp_time), 309bf699327STheodore Ts'o __entry->forced_to_close, __entry->written, __entry->dropped) 310bf699327STheodore Ts'o ); 311bf699327STheodore Ts'o 31279feb521SJan Kara TRACE_EVENT(jbd2_update_log_tail, 31371f2be21STheodore Ts'o 31471f2be21STheodore Ts'o TP_PROTO(journal_t *journal, tid_t first_tid, 31571f2be21STheodore Ts'o unsigned long block_nr, unsigned long freed), 31671f2be21STheodore Ts'o 31771f2be21STheodore Ts'o TP_ARGS(journal, first_tid, block_nr, freed), 31871f2be21STheodore Ts'o 31971f2be21STheodore Ts'o TP_STRUCT__entry( 3200562e0baSJiaying Zhang __field( dev_t, dev ) 32171f2be21STheodore Ts'o __field( tid_t, tail_sequence ) 32271f2be21STheodore Ts'o __field( tid_t, first_tid ) 32371f2be21STheodore Ts'o __field(unsigned long, block_nr ) 32471f2be21STheodore Ts'o __field(unsigned long, freed ) 32571f2be21STheodore Ts'o ), 32671f2be21STheodore Ts'o 32771f2be21STheodore Ts'o TP_fast_assign( 3280562e0baSJiaying Zhang __entry->dev = journal->j_fs_dev->bd_dev; 32971f2be21STheodore Ts'o __entry->tail_sequence = journal->j_tail_sequence; 33071f2be21STheodore Ts'o __entry->first_tid = first_tid; 33171f2be21STheodore Ts'o __entry->block_nr = block_nr; 33271f2be21STheodore Ts'o __entry->freed = freed; 33371f2be21STheodore Ts'o ), 33471f2be21STheodore Ts'o 3354862fd60STheodore Ts'o TP_printk("dev %d,%d from %u to %u offset %lu freed %lu", 3364862fd60STheodore Ts'o MAJOR(__entry->dev), MINOR(__entry->dev), 3374862fd60STheodore Ts'o __entry->tail_sequence, __entry->first_tid, 3384862fd60STheodore Ts'o __entry->block_nr, __entry->freed) 33971f2be21STheodore Ts'o ); 34071f2be21STheodore Ts'o 34124bcc89cSJan Kara TRACE_EVENT(jbd2_write_superblock, 3422201c590SSeiji Aguchi 34379feb521SJan Kara TP_PROTO(journal_t *journal, int write_op), 3442201c590SSeiji Aguchi 34579feb521SJan Kara TP_ARGS(journal, write_op), 3462201c590SSeiji Aguchi 3472201c590SSeiji Aguchi TP_STRUCT__entry( 3482201c590SSeiji Aguchi __field( dev_t, dev ) 34979feb521SJan Kara __field( int, write_op ) 3502201c590SSeiji Aguchi ), 3512201c590SSeiji Aguchi 3522201c590SSeiji Aguchi TP_fast_assign( 3532201c590SSeiji Aguchi __entry->dev = journal->j_fs_dev->bd_dev; 35479feb521SJan Kara __entry->write_op = write_op; 3552201c590SSeiji Aguchi ), 3562201c590SSeiji Aguchi 35779feb521SJan Kara TP_printk("dev %d,%d write_op %x", MAJOR(__entry->dev), 35879feb521SJan Kara MINOR(__entry->dev), __entry->write_op) 3592201c590SSeiji Aguchi ); 3602201c590SSeiji Aguchi 361*f783f091STheodore Ts'o TRACE_EVENT(jbd2_lock_buffer_stall, 362*f783f091STheodore Ts'o 363*f783f091STheodore Ts'o TP_PROTO(dev_t dev, unsigned long stall_ms), 364*f783f091STheodore Ts'o 365*f783f091STheodore Ts'o TP_ARGS(dev, stall_ms), 366*f783f091STheodore Ts'o 367*f783f091STheodore Ts'o TP_STRUCT__entry( 368*f783f091STheodore Ts'o __field( dev_t, dev ) 369*f783f091STheodore Ts'o __field(unsigned long, stall_ms ) 370*f783f091STheodore Ts'o ), 371*f783f091STheodore Ts'o 372*f783f091STheodore Ts'o TP_fast_assign( 373*f783f091STheodore Ts'o __entry->dev = dev; 374*f783f091STheodore Ts'o __entry->stall_ms = stall_ms; 375*f783f091STheodore Ts'o ), 376*f783f091STheodore Ts'o 377*f783f091STheodore Ts'o TP_printk("dev %d,%d stall_ms %lu", 378*f783f091STheodore Ts'o MAJOR(__entry->dev), MINOR(__entry->dev), 379*f783f091STheodore Ts'o __entry->stall_ms) 380*f783f091STheodore Ts'o ); 381*f783f091STheodore Ts'o 382879c5e6bSTheodore Ts'o #endif /* _TRACE_JBD2_H */ 383879c5e6bSTheodore Ts'o 384879c5e6bSTheodore Ts'o /* This part must be outside protection */ 385879c5e6bSTheodore Ts'o #include <trace/define_trace.h> 386