aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSeiji Aguchi <seiji.aguchi@hds.com>2012-02-20 17:53:01 -0500
committerTheodore Ts'o <tytso@mit.edu>2012-02-20 17:53:01 -0500
commit2201c590dd6e802795e21e69e3c152c519f1568e (patch)
treea617a8578dd181bbcb83c0e3c6198a3dc836eef8 /include
parent3d2b158262826e8b75bbbfb7b97010838dd92ac7 (diff)
jbd2: add drop_transaction/update_superblock_end tracepoints
This patch adds trace_jbd2_drop_transaction and trace_jbd2_update_superblock_end because there are similar tracepoints in jbd and they are needed in jbd2 as well. Reviewed-by: Lukas Czerner <lczerner@redhat.com> Signed-off-by: Seiji Aguchi <seiji.aguchi@hds.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'include')
-rw-r--r--include/trace/events/jbd2.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/trace/events/jbd2.h b/include/trace/events/jbd2.h
index 75964412ddbb..ae59bc207d70 100644
--- a/include/trace/events/jbd2.h
+++ b/include/trace/events/jbd2.h
@@ -81,6 +81,13 @@ DEFINE_EVENT(jbd2_commit, jbd2_commit_logging,
81 TP_ARGS(journal, commit_transaction) 81 TP_ARGS(journal, commit_transaction)
82); 82);
83 83
84DEFINE_EVENT(jbd2_commit, jbd2_drop_transaction,
85
86 TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
87
88 TP_ARGS(journal, commit_transaction)
89);
90
84TRACE_EVENT(jbd2_end_commit, 91TRACE_EVENT(jbd2_end_commit,
85 TP_PROTO(journal_t *journal, transaction_t *commit_transaction), 92 TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
86 93
@@ -229,6 +236,27 @@ TRACE_EVENT(jbd2_cleanup_journal_tail,
229 __entry->block_nr, __entry->freed) 236 __entry->block_nr, __entry->freed)
230); 237);
231 238
239TRACE_EVENT(jbd2_update_superblock_end,
240
241 TP_PROTO(journal_t *journal, int wait),
242
243 TP_ARGS(journal, wait),
244
245 TP_STRUCT__entry(
246 __field( dev_t, dev )
247 __field( int, wait )
248 ),
249
250 TP_fast_assign(
251 __entry->dev = journal->j_fs_dev->bd_dev;
252 __entry->wait = wait;
253 ),
254
255 TP_printk("dev %d,%d wait %d",
256 MAJOR(__entry->dev), MINOR(__entry->dev),
257 __entry->wait)
258);
259
232#endif /* _TRACE_JBD2_H */ 260#endif /* _TRACE_JBD2_H */
233 261
234/* This part must be outside protection */ 262/* This part must be outside protection */