Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   2) #undef TRACE_SYSTEM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3) #define TRACE_SYSTEM jbd2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5) #if !defined(_TRACE_JBD2_H) || defined(TRACE_HEADER_MULTI_READ)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6) #define _TRACE_JBD2_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8) #include <linux/jbd2.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9) #include <linux/tracepoint.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11) struct transaction_chp_stats_s;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12) struct transaction_run_stats_s;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14) TRACE_EVENT(jbd2_checkpoint,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16) 	TP_PROTO(journal_t *journal, int result),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18) 	TP_ARGS(journal, result),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20) 	TP_STRUCT__entry(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21) 		__field(	dev_t,	dev			)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22) 		__field(	int,	result			)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23) 	),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25) 	TP_fast_assign(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26) 		__entry->dev		= journal->j_fs_dev->bd_dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27) 		__entry->result		= result;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28) 	),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30) 	TP_printk("dev %d,%d result %d",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31) 		  MAJOR(__entry->dev), MINOR(__entry->dev), __entry->result)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34) DECLARE_EVENT_CLASS(jbd2_commit,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36) 	TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38) 	TP_ARGS(journal, commit_transaction),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40) 	TP_STRUCT__entry(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41) 		__field(	dev_t,	dev			)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42) 		__field(	char,	sync_commit		  )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43) 		__field(	int,	transaction		  )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44) 	),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46) 	TP_fast_assign(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47) 		__entry->dev		= journal->j_fs_dev->bd_dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48) 		__entry->sync_commit = commit_transaction->t_synchronous_commit;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49) 		__entry->transaction	= commit_transaction->t_tid;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50) 	),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52) 	TP_printk("dev %d,%d transaction %d sync %d",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53) 		  MAJOR(__entry->dev), MINOR(__entry->dev),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54) 		  __entry->transaction, __entry->sync_commit)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57) DEFINE_EVENT(jbd2_commit, jbd2_start_commit,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59) 	TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61) 	TP_ARGS(journal, commit_transaction)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64) DEFINE_EVENT(jbd2_commit, jbd2_commit_locking,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66) 	TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68) 	TP_ARGS(journal, commit_transaction)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71) DEFINE_EVENT(jbd2_commit, jbd2_commit_flushing,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73) 	TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75) 	TP_ARGS(journal, commit_transaction)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78) DEFINE_EVENT(jbd2_commit, jbd2_commit_logging,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80) 	TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82) 	TP_ARGS(journal, commit_transaction)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85) DEFINE_EVENT(jbd2_commit, jbd2_drop_transaction,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87) 	TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89) 	TP_ARGS(journal, commit_transaction)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92) TRACE_EVENT(jbd2_end_commit,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93) 	TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95) 	TP_ARGS(journal, commit_transaction),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97) 	TP_STRUCT__entry(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98) 		__field(	dev_t,	dev			)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99) 		__field(	char,	sync_commit		  )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) 		__field(	int,	transaction		  )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) 		__field(	int,	head		  	  )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) 	),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) 	TP_fast_assign(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) 		__entry->dev		= journal->j_fs_dev->bd_dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) 		__entry->sync_commit = commit_transaction->t_synchronous_commit;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) 		__entry->transaction	= commit_transaction->t_tid;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) 		__entry->head		= journal->j_tail_sequence;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) 	),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) 	TP_printk("dev %d,%d transaction %d sync %d head %d",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) 		  MAJOR(__entry->dev), MINOR(__entry->dev),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) 		  __entry->transaction, __entry->sync_commit, __entry->head)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) TRACE_EVENT(jbd2_submit_inode_data,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) 	TP_PROTO(struct inode *inode),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) 	TP_ARGS(inode),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) 	TP_STRUCT__entry(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) 		__field(	dev_t,	dev			)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) 		__field(	ino_t,	ino			)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) 	),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) 	TP_fast_assign(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) 		__entry->dev	= inode->i_sb->s_dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) 		__entry->ino	= inode->i_ino;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) 	),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) 	TP_printk("dev %d,%d ino %lu",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) 		  MAJOR(__entry->dev), MINOR(__entry->dev),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) 		  (unsigned long) __entry->ino)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) DECLARE_EVENT_CLASS(jbd2_handle_start_class,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) 	TP_PROTO(dev_t dev, unsigned long tid, unsigned int type,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) 		 unsigned int line_no, int requested_blocks),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) 	TP_ARGS(dev, tid, type, line_no, requested_blocks),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) 	TP_STRUCT__entry(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) 		__field(		dev_t,	dev		)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) 		__field(	unsigned long,	tid		)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) 		__field(	 unsigned int,	type		)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) 		__field(	 unsigned int,	line_no		)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) 		__field(		  int,	requested_blocks)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) 	),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) 	TP_fast_assign(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) 		__entry->dev		  = dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) 		__entry->tid		  = tid;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) 		__entry->type		  = type;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) 		__entry->line_no	  = line_no;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) 		__entry->requested_blocks = requested_blocks;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) 	),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) 	TP_printk("dev %d,%d tid %lu type %u line_no %u "
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) 		  "requested_blocks %d",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) 		  MAJOR(__entry->dev), MINOR(__entry->dev), __entry->tid,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) 		  __entry->type, __entry->line_no, __entry->requested_blocks)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) DEFINE_EVENT(jbd2_handle_start_class, jbd2_handle_start,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) 	TP_PROTO(dev_t dev, unsigned long tid, unsigned int type,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) 		 unsigned int line_no, int requested_blocks),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) 	TP_ARGS(dev, tid, type, line_no, requested_blocks)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) DEFINE_EVENT(jbd2_handle_start_class, jbd2_handle_restart,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) 	TP_PROTO(dev_t dev, unsigned long tid, unsigned int type,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) 		 unsigned int line_no, int requested_blocks),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) 	TP_ARGS(dev, tid, type, line_no, requested_blocks)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) TRACE_EVENT(jbd2_handle_extend,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) 	TP_PROTO(dev_t dev, unsigned long tid, unsigned int type,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) 		 unsigned int line_no, int buffer_credits,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) 		 int requested_blocks),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) 	TP_ARGS(dev, tid, type, line_no, buffer_credits, requested_blocks),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) 	TP_STRUCT__entry(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) 		__field(		dev_t,	dev		)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) 		__field(	unsigned long,	tid		)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) 		__field(	 unsigned int,	type		)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) 		__field(	 unsigned int,	line_no		)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) 		__field(		  int,	buffer_credits  )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) 		__field(		  int,	requested_blocks)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) 	),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) 	TP_fast_assign(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) 		__entry->dev		  = dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) 		__entry->tid		  = tid;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) 		__entry->type		  = type;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) 		__entry->line_no	  = line_no;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) 		__entry->buffer_credits   = buffer_credits;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) 		__entry->requested_blocks = requested_blocks;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) 	),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) 	TP_printk("dev %d,%d tid %lu type %u line_no %u "
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) 		  "buffer_credits %d requested_blocks %d",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) 		  MAJOR(__entry->dev), MINOR(__entry->dev), __entry->tid,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) 		  __entry->type, __entry->line_no, __entry->buffer_credits,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) 		  __entry->requested_blocks)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) TRACE_EVENT(jbd2_handle_stats,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) 	TP_PROTO(dev_t dev, unsigned long tid, unsigned int type,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) 		 unsigned int line_no, int interval, int sync,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) 		 int requested_blocks, int dirtied_blocks),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) 	TP_ARGS(dev, tid, type, line_no, interval, sync,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) 		requested_blocks, dirtied_blocks),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) 	TP_STRUCT__entry(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) 		__field(		dev_t,	dev		)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) 		__field(	unsigned long,	tid		)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) 		__field(	 unsigned int,	type		)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) 		__field(	 unsigned int,	line_no		)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) 		__field(		  int,	interval	)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) 		__field(		  int,	sync		)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225) 		__field(		  int,	requested_blocks)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226) 		__field(		  int,	dirtied_blocks	)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 227) 	),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 228) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 229) 	TP_fast_assign(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 230) 		__entry->dev		  = dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 231) 		__entry->tid		  = tid;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 232) 		__entry->type		  = type;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 233) 		__entry->line_no	  = line_no;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 234) 		__entry->interval	  = interval;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 235) 		__entry->sync		  = sync;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 236) 		__entry->requested_blocks = requested_blocks;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 237) 		__entry->dirtied_blocks	  = dirtied_blocks;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 238) 	),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 239) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 240) 	TP_printk("dev %d,%d tid %lu type %u line_no %u interval %d "
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 241) 		  "sync %d requested_blocks %d dirtied_blocks %d",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 242) 		  MAJOR(__entry->dev), MINOR(__entry->dev), __entry->tid,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 243) 		  __entry->type, __entry->line_no, __entry->interval,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 244) 		  __entry->sync, __entry->requested_blocks,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 245) 		  __entry->dirtied_blocks)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 246) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 247) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 248) TRACE_EVENT(jbd2_run_stats,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 249) 	TP_PROTO(dev_t dev, unsigned long tid,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 250) 		 struct transaction_run_stats_s *stats),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 251) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 252) 	TP_ARGS(dev, tid, stats),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 253) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 254) 	TP_STRUCT__entry(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 255) 		__field(		dev_t,	dev		)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 256) 		__field(	unsigned long,	tid		)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 257) 		__field(	unsigned long,	wait		)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 258) 		__field(	unsigned long,	request_delay	)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 259) 		__field(	unsigned long,	running		)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 260) 		__field(	unsigned long,	locked		)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 261) 		__field(	unsigned long,	flushing	)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 262) 		__field(	unsigned long,	logging		)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 263) 		__field(		__u32,	handle_count	)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 264) 		__field(		__u32,	blocks		)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 265) 		__field(		__u32,	blocks_logged	)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 266) 	),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 267) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 268) 	TP_fast_assign(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 269) 		__entry->dev		= dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 270) 		__entry->tid		= tid;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 271) 		__entry->wait		= stats->rs_wait;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 272) 		__entry->request_delay	= stats->rs_request_delay;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 273) 		__entry->running	= stats->rs_running;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 274) 		__entry->locked		= stats->rs_locked;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 275) 		__entry->flushing	= stats->rs_flushing;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 276) 		__entry->logging	= stats->rs_logging;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 277) 		__entry->handle_count	= stats->rs_handle_count;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 278) 		__entry->blocks		= stats->rs_blocks;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 279) 		__entry->blocks_logged	= stats->rs_blocks_logged;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 280) 	),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 281) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 282) 	TP_printk("dev %d,%d tid %lu wait %u request_delay %u running %u "
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 283) 		  "locked %u flushing %u logging %u handle_count %u "
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 284) 		  "blocks %u blocks_logged %u",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 285) 		  MAJOR(__entry->dev), MINOR(__entry->dev), __entry->tid,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 286) 		  jiffies_to_msecs(__entry->wait),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 287) 		  jiffies_to_msecs(__entry->request_delay),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 288) 		  jiffies_to_msecs(__entry->running),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 289) 		  jiffies_to_msecs(__entry->locked),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 290) 		  jiffies_to_msecs(__entry->flushing),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 291) 		  jiffies_to_msecs(__entry->logging),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 292) 		  __entry->handle_count, __entry->blocks,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 293) 		  __entry->blocks_logged)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 294) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 295) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 296) TRACE_EVENT(jbd2_checkpoint_stats,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 297) 	TP_PROTO(dev_t dev, unsigned long tid,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 298) 		 struct transaction_chp_stats_s *stats),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 299) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 300) 	TP_ARGS(dev, tid, stats),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 301) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 302) 	TP_STRUCT__entry(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 303) 		__field(		dev_t,	dev		)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 304) 		__field(	unsigned long,	tid		)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 305) 		__field(	unsigned long,	chp_time	)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 306) 		__field(		__u32,	forced_to_close	)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 307) 		__field(		__u32,	written		)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 308) 		__field(		__u32,	dropped		)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 309) 	),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 310) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 311) 	TP_fast_assign(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 312) 		__entry->dev		= dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 313) 		__entry->tid		= tid;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 314) 		__entry->chp_time	= stats->cs_chp_time;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 315) 		__entry->forced_to_close= stats->cs_forced_to_close;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 316) 		__entry->written	= stats->cs_written;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 317) 		__entry->dropped	= stats->cs_dropped;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 318) 	),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 319) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 320) 	TP_printk("dev %d,%d tid %lu chp_time %u forced_to_close %u "
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 321) 		  "written %u dropped %u",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 322) 		  MAJOR(__entry->dev), MINOR(__entry->dev), __entry->tid,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 323) 		  jiffies_to_msecs(__entry->chp_time),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 324) 		  __entry->forced_to_close, __entry->written, __entry->dropped)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 325) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 326) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 327) TRACE_EVENT(jbd2_update_log_tail,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 328) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 329) 	TP_PROTO(journal_t *journal, tid_t first_tid,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 330) 		 unsigned long block_nr, unsigned long freed),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 331) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 332) 	TP_ARGS(journal, first_tid, block_nr, freed),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 333) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 334) 	TP_STRUCT__entry(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 335) 		__field(	dev_t,	dev			)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 336) 		__field(	tid_t,	tail_sequence		)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 337) 		__field(	tid_t,	first_tid		)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 338) 		__field(unsigned long,	block_nr		)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 339) 		__field(unsigned long,	freed			)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 340) 	),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 341) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 342) 	TP_fast_assign(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 343) 		__entry->dev		= journal->j_fs_dev->bd_dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 344) 		__entry->tail_sequence	= journal->j_tail_sequence;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 345) 		__entry->first_tid	= first_tid;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 346) 		__entry->block_nr	= block_nr;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 347) 		__entry->freed		= freed;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 348) 	),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 349) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 350) 	TP_printk("dev %d,%d from %u to %u offset %lu freed %lu",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 351) 		  MAJOR(__entry->dev), MINOR(__entry->dev),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 352) 		  __entry->tail_sequence, __entry->first_tid,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 353) 		  __entry->block_nr, __entry->freed)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 354) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 355) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 356) TRACE_EVENT(jbd2_write_superblock,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 357) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 358) 	TP_PROTO(journal_t *journal, int write_op),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 359) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 360) 	TP_ARGS(journal, write_op),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 361) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 362) 	TP_STRUCT__entry(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 363) 		__field(	dev_t,  dev			)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 364) 		__field(	  int,  write_op		)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 365) 	),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 366) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 367) 	TP_fast_assign(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 368) 		__entry->dev		= journal->j_fs_dev->bd_dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 369) 		__entry->write_op	= write_op;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 370) 	),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 371) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 372) 	TP_printk("dev %d,%d write_op %x", MAJOR(__entry->dev),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 373) 		  MINOR(__entry->dev), __entry->write_op)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 374) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 375) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 376) TRACE_EVENT(jbd2_lock_buffer_stall,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 377) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 378) 	TP_PROTO(dev_t dev, unsigned long stall_ms),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 379) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 380) 	TP_ARGS(dev, stall_ms),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 381) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 382) 	TP_STRUCT__entry(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 383) 		__field(        dev_t, dev	)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 384) 		__field(unsigned long, stall_ms	)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 385) 	),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 386) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 387) 	TP_fast_assign(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 388) 		__entry->dev		= dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 389) 		__entry->stall_ms	= stall_ms;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 390) 	),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 391) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 392) 	TP_printk("dev %d,%d stall_ms %lu",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 393) 		MAJOR(__entry->dev), MINOR(__entry->dev),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 394) 		__entry->stall_ms)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 395) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 396) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 397) #endif /* _TRACE_JBD2_H */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 398) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 399) /* This part must be outside protection */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 400) #include <trace/define_trace.h>