* [PATCH][RESEND]tracepoint: add drop_transaction/update_superblock_end to jbd2
@ 2012-01-12 0:10 Seiji Aguchi
2012-01-12 1:02 ` Jan Kara
2012-02-06 23:27 ` Ted Ts'o
0 siblings, 2 replies; 9+ messages in thread
From: Seiji Aguchi @ 2012-01-12 0:10 UTC (permalink / raw)
To: jack@suse.cz
Cc: dle-develop@lists.sourceforge.net, linux-ext4@vger.kernel.org,
Lukas Czerner, Satoru Moriya
Hi Jan,
Please review this patch below (and hopefully apply to your tree).
This has already been reviewed by Lukas.
Seiji
---
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.
Signed-off-by: Seiji Aguchi <seiji.aguchi@hds.com>
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
---
fs/jbd2/checkpoint.c | 2 ++
fs/jbd2/journal.c | 2 ++
include/trace/events/jbd2.h | 28 ++++++++++++++++++++++++++++
3 files changed, 32 insertions(+), 0 deletions(-)
diff --git a/fs/jbd2/checkpoint.c b/fs/jbd2/checkpoint.c
index 16a698b..2bfd8b0 100644
--- a/fs/jbd2/checkpoint.c
+++ b/fs/jbd2/checkpoint.c
@@ -797,5 +797,7 @@ void __jbd2_journal_drop_transaction(journal_t *journal, transaction_t *transact
J_ASSERT(journal->j_committing_transaction != transaction);
J_ASSERT(journal->j_running_transaction != transaction);
+ trace_jbd2_drop_transaction(journal, transaction);
+
jbd_debug(1, "Dropping transaction %d, all done\n", transaction->t_tid);
}
diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c
index f24df13..5953b3d 100644
--- a/fs/jbd2/journal.c
+++ b/fs/jbd2/journal.c
@@ -1185,6 +1185,8 @@ void jbd2_journal_update_superblock(journal_t *journal, int wait)
} else
write_dirty_buffer(bh, WRITE);
+ trace_jbd2_update_superblock_end(journal, wait);
+
out:
/* If we have just flushed the log (by marking s_start==0), then
* any future commit will have to be careful to update the
diff --git a/include/trace/events/jbd2.h b/include/trace/events/jbd2.h
index 7596441..ae59bc2 100644
--- a/include/trace/events/jbd2.h
+++ b/include/trace/events/jbd2.h
@@ -81,6 +81,13 @@ DEFINE_EVENT(jbd2_commit, jbd2_commit_logging,
TP_ARGS(journal, commit_transaction)
);
+DEFINE_EVENT(jbd2_commit, jbd2_drop_transaction,
+
+ TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
+
+ TP_ARGS(journal, commit_transaction)
+);
+
TRACE_EVENT(jbd2_end_commit,
TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
@@ -229,6 +236,27 @@ TRACE_EVENT(jbd2_cleanup_journal_tail,
__entry->block_nr, __entry->freed)
);
+TRACE_EVENT(jbd2_update_superblock_end,
+
+ TP_PROTO(journal_t *journal, int wait),
+
+ TP_ARGS(journal, wait),
+
+ TP_STRUCT__entry(
+ __field( dev_t, dev )
+ __field( int, wait )
+ ),
+
+ TP_fast_assign(
+ __entry->dev = journal->j_fs_dev->bd_dev;
+ __entry->wait = wait;
+ ),
+
+ TP_printk("dev %d,%d wait %d",
+ MAJOR(__entry->dev), MINOR(__entry->dev),
+ __entry->wait)
+);
+
#endif /* _TRACE_JBD2_H */
/* This part must be outside protection */
--
1.7.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH][RESEND]tracepoint: add drop_transaction/update_superblock_end to jbd2
2012-01-12 0:10 [PATCH][RESEND]tracepoint: add drop_transaction/update_superblock_end to jbd2 Seiji Aguchi
@ 2012-01-12 1:02 ` Jan Kara
2012-01-12 1:06 ` Seiji Aguchi
2012-02-06 23:27 ` Ted Ts'o
1 sibling, 1 reply; 9+ messages in thread
From: Jan Kara @ 2012-01-12 1:02 UTC (permalink / raw)
To: Seiji Aguchi
Cc: jack@suse.cz, dle-develop@lists.sourceforge.net,
linux-ext4@vger.kernel.org, Lukas Czerner, Satoru Moriya
Hello Seiji,
On Wed 11-01-12 19:10:40, Seiji Aguchi wrote:
> Please review this patch below (and hopefully apply to your tree).
> This has already been reviewed by Lukas.
The patch looks OK to me so feel free to add
Acked-by: Jan Kara <jack@suse.cz>
but JBD2 patches are usually merged by Ted Tso <tytso@mit.edu> since
he is an ext4 maintainer and so he carries most of changes that modify
JBD2.
Honza
> ---
> 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.
>
>
> Signed-off-by: Seiji Aguchi <seiji.aguchi@hds.com>
> Reviewed-by: Lukas Czerner <lczerner@redhat.com>
>
>
> ---
> fs/jbd2/checkpoint.c | 2 ++
> fs/jbd2/journal.c | 2 ++
> include/trace/events/jbd2.h | 28 ++++++++++++++++++++++++++++
> 3 files changed, 32 insertions(+), 0 deletions(-)
>
> diff --git a/fs/jbd2/checkpoint.c b/fs/jbd2/checkpoint.c
> index 16a698b..2bfd8b0 100644
> --- a/fs/jbd2/checkpoint.c
> +++ b/fs/jbd2/checkpoint.c
> @@ -797,5 +797,7 @@ void __jbd2_journal_drop_transaction(journal_t *journal, transaction_t *transact
> J_ASSERT(journal->j_committing_transaction != transaction);
> J_ASSERT(journal->j_running_transaction != transaction);
>
> + trace_jbd2_drop_transaction(journal, transaction);
> +
> jbd_debug(1, "Dropping transaction %d, all done\n", transaction->t_tid);
> }
> diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c
> index f24df13..5953b3d 100644
> --- a/fs/jbd2/journal.c
> +++ b/fs/jbd2/journal.c
> @@ -1185,6 +1185,8 @@ void jbd2_journal_update_superblock(journal_t *journal, int wait)
> } else
> write_dirty_buffer(bh, WRITE);
>
> + trace_jbd2_update_superblock_end(journal, wait);
> +
> out:
> /* If we have just flushed the log (by marking s_start==0), then
> * any future commit will have to be careful to update the
> diff --git a/include/trace/events/jbd2.h b/include/trace/events/jbd2.h
> index 7596441..ae59bc2 100644
> --- a/include/trace/events/jbd2.h
> +++ b/include/trace/events/jbd2.h
> @@ -81,6 +81,13 @@ DEFINE_EVENT(jbd2_commit, jbd2_commit_logging,
> TP_ARGS(journal, commit_transaction)
> );
>
> +DEFINE_EVENT(jbd2_commit, jbd2_drop_transaction,
> +
> + TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
> +
> + TP_ARGS(journal, commit_transaction)
> +);
> +
> TRACE_EVENT(jbd2_end_commit,
> TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
>
> @@ -229,6 +236,27 @@ TRACE_EVENT(jbd2_cleanup_journal_tail,
> __entry->block_nr, __entry->freed)
> );
>
> +TRACE_EVENT(jbd2_update_superblock_end,
> +
> + TP_PROTO(journal_t *journal, int wait),
> +
> + TP_ARGS(journal, wait),
> +
> + TP_STRUCT__entry(
> + __field( dev_t, dev )
> + __field( int, wait )
> + ),
> +
> + TP_fast_assign(
> + __entry->dev = journal->j_fs_dev->bd_dev;
> + __entry->wait = wait;
> + ),
> +
> + TP_printk("dev %d,%d wait %d",
> + MAJOR(__entry->dev), MINOR(__entry->dev),
> + __entry->wait)
> +);
> +
> #endif /* _TRACE_JBD2_H */
>
> /* This part must be outside protection */
> --
> 1.7.1
>
--
Jan Kara <jack@suse.cz>
SUSE Labs, CR
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: [PATCH][RESEND]tracepoint: add drop_transaction/update_superblock_end to jbd2
2012-01-12 1:02 ` Jan Kara
@ 2012-01-12 1:06 ` Seiji Aguchi
0 siblings, 0 replies; 9+ messages in thread
From: Seiji Aguchi @ 2012-01-12 1:06 UTC (permalink / raw)
To: Jan Kara
Cc: dle-develop@lists.sourceforge.net, linux-ext4@vger.kernel.org,
Lukas Czerner, Satoru Moriya
Thanks.
I will ask Ted to merge this patch.
Seiji
>-----Original Message-----
>From: linux-ext4-owner@vger.kernel.org [mailto:linux-ext4-owner@vger.kernel.org] On Behalf Of Jan Kara
>Sent: Wednesday, January 11, 2012 8:02 PM
>To: Seiji Aguchi
>Cc: jack@suse.cz; dle-develop@lists.sourceforge.net; linux-ext4@vger.kernel.org; Lukas Czerner; Satoru Moriya
>Subject: Re: [PATCH][RESEND]tracepoint: add drop_transaction/update_superblock_end to jbd2
>
> Hello Seiji,
>
>On Wed 11-01-12 19:10:40, Seiji Aguchi wrote:
>> Please review this patch below (and hopefully apply to your tree).
>> This has already been reviewed by Lukas.
> The patch looks OK to me so feel free to add
>Acked-by: Jan Kara <jack@suse.cz>
> but JBD2 patches are usually merged by Ted Tso <tytso@mit.edu> since
>he is an ext4 maintainer and so he carries most of changes that modify
>JBD2.
>
> Honza
>
>> ---
>> 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.
>>
>>
>> Signed-off-by: Seiji Aguchi <seiji.aguchi@hds.com>
>> Reviewed-by: Lukas Czerner <lczerner@redhat.com>
>>
>>
>> ---
>> fs/jbd2/checkpoint.c | 2 ++
>> fs/jbd2/journal.c | 2 ++
>> include/trace/events/jbd2.h | 28 ++++++++++++++++++++++++++++
>> 3 files changed, 32 insertions(+), 0 deletions(-)
>>
>> diff --git a/fs/jbd2/checkpoint.c b/fs/jbd2/checkpoint.c
>> index 16a698b..2bfd8b0 100644
>> --- a/fs/jbd2/checkpoint.c
>> +++ b/fs/jbd2/checkpoint.c
>> @@ -797,5 +797,7 @@ void __jbd2_journal_drop_transaction(journal_t *journal, transaction_t *transact
>> J_ASSERT(journal->j_committing_transaction != transaction);
>> J_ASSERT(journal->j_running_transaction != transaction);
>>
>> + trace_jbd2_drop_transaction(journal, transaction);
>> +
>> jbd_debug(1, "Dropping transaction %d, all done\n", transaction->t_tid);
>> }
>> diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c
>> index f24df13..5953b3d 100644
>> --- a/fs/jbd2/journal.c
>> +++ b/fs/jbd2/journal.c
>> @@ -1185,6 +1185,8 @@ void jbd2_journal_update_superblock(journal_t *journal, int wait)
>> } else
>> write_dirty_buffer(bh, WRITE);
>>
>> + trace_jbd2_update_superblock_end(journal, wait);
>> +
>> out:
>> /* If we have just flushed the log (by marking s_start==0), then
>> * any future commit will have to be careful to update the
>> diff --git a/include/trace/events/jbd2.h b/include/trace/events/jbd2.h
>> index 7596441..ae59bc2 100644
>> --- a/include/trace/events/jbd2.h
>> +++ b/include/trace/events/jbd2.h
>> @@ -81,6 +81,13 @@ DEFINE_EVENT(jbd2_commit, jbd2_commit_logging,
>> TP_ARGS(journal, commit_transaction)
>> );
>>
>> +DEFINE_EVENT(jbd2_commit, jbd2_drop_transaction,
>> +
>> + TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
>> +
>> + TP_ARGS(journal, commit_transaction)
>> +);
>> +
>> TRACE_EVENT(jbd2_end_commit,
>> TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
>>
>> @@ -229,6 +236,27 @@ TRACE_EVENT(jbd2_cleanup_journal_tail,
>> __entry->block_nr, __entry->freed)
>> );
>>
>> +TRACE_EVENT(jbd2_update_superblock_end,
>> +
>> + TP_PROTO(journal_t *journal, int wait),
>> +
>> + TP_ARGS(journal, wait),
>> +
>> + TP_STRUCT__entry(
>> + __field( dev_t, dev )
>> + __field( int, wait )
>> + ),
>> +
>> + TP_fast_assign(
>> + __entry->dev = journal->j_fs_dev->bd_dev;
>> + __entry->wait = wait;
>> + ),
>> +
>> + TP_printk("dev %d,%d wait %d",
>> + MAJOR(__entry->dev), MINOR(__entry->dev),
>> + __entry->wait)
>> +);
>> +
>> #endif /* _TRACE_JBD2_H */
>>
>> /* This part must be outside protection */
>> --
>> 1.7.1
>>
>--
>Jan Kara <jack@suse.cz>
>SUSE Labs, CR
>--
>To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH][RESEND]tracepoint: add drop_transaction/update_superblock_end to jbd2
2012-01-12 0:10 [PATCH][RESEND]tracepoint: add drop_transaction/update_superblock_end to jbd2 Seiji Aguchi
2012-01-12 1:02 ` Jan Kara
@ 2012-02-06 23:27 ` Ted Ts'o
1 sibling, 0 replies; 9+ messages in thread
From: Ted Ts'o @ 2012-02-06 23:27 UTC (permalink / raw)
To: Seiji Aguchi
Cc: jack@suse.cz, dle-develop@lists.sourceforge.net,
linux-ext4@vger.kernel.org, Lukas Czerner, Satoru Moriya
On Wed, Jan 11, 2012 at 07:10:40PM -0500, Seiji Aguchi wrote:
> 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.
>
> Signed-off-by: Seiji Aguchi <seiji.aguchi@hds.com>
> Reviewed-by: Lukas Czerner <lczerner@redhat.com>
I've applied this patch to my ext4 tree. Apologies for the delay in
getting back to you.
- Ted
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH][RESEND]tracepoint: add drop_transaction/update_superblock_end to jbd2
@ 2012-01-12 20:58 Seiji Aguchi
2012-01-24 7:08 ` Lukas Czerner
0 siblings, 1 reply; 9+ messages in thread
From: Seiji Aguchi @ 2012-01-12 20:58 UTC (permalink / raw)
To: tytso@mit.edu
Cc: dle-develop@lists.sourceforge.net, linux-ext4@vger.kernel.org,
Lukas Czerner, jack@suse.cz, Satoru Moriya
Hello Ted,
Please review this patch adding jbd2 tracepoints(and hopefully apply to your tree).
This has already been accepted by Lukas and Jan.
Seiji
---
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.
Signed-off-by: Seiji Aguchi <seiji.aguchi@hds.com>
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
Acked-by: Jan Kara <jack@suse.cz>
---
fs/jbd2/checkpoint.c | 2 ++
fs/jbd2/journal.c | 2 ++
include/trace/events/jbd2.h | 28 ++++++++++++++++++++++++++++
3 files changed, 32 insertions(+), 0 deletions(-)
diff --git a/fs/jbd2/checkpoint.c b/fs/jbd2/checkpoint.c
index 16a698b..2bfd8b0 100644
--- a/fs/jbd2/checkpoint.c
+++ b/fs/jbd2/checkpoint.c
@@ -797,5 +797,7 @@ void __jbd2_journal_drop_transaction(journal_t *journal, transaction_t *transact
J_ASSERT(journal->j_committing_transaction != transaction);
J_ASSERT(journal->j_running_transaction != transaction);
+ trace_jbd2_drop_transaction(journal, transaction);
+
jbd_debug(1, "Dropping transaction %d, all done\n", transaction->t_tid);
}
diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c
index f24df13..5953b3d 100644
--- a/fs/jbd2/journal.c
+++ b/fs/jbd2/journal.c
@@ -1185,6 +1185,8 @@ void jbd2_journal_update_superblock(journal_t *journal, int wait)
} else
write_dirty_buffer(bh, WRITE);
+ trace_jbd2_update_superblock_end(journal, wait);
+
out:
/* If we have just flushed the log (by marking s_start==0), then
* any future commit will have to be careful to update the
diff --git a/include/trace/events/jbd2.h b/include/trace/events/jbd2.h
index 7596441..ae59bc2 100644
--- a/include/trace/events/jbd2.h
+++ b/include/trace/events/jbd2.h
@@ -81,6 +81,13 @@ DEFINE_EVENT(jbd2_commit, jbd2_commit_logging,
TP_ARGS(journal, commit_transaction)
);
+DEFINE_EVENT(jbd2_commit, jbd2_drop_transaction,
+
+ TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
+
+ TP_ARGS(journal, commit_transaction)
+);
+
TRACE_EVENT(jbd2_end_commit,
TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
@@ -229,6 +236,27 @@ TRACE_EVENT(jbd2_cleanup_journal_tail,
__entry->block_nr, __entry->freed)
);
+TRACE_EVENT(jbd2_update_superblock_end,
+
+ TP_PROTO(journal_t *journal, int wait),
+
+ TP_ARGS(journal, wait),
+
+ TP_STRUCT__entry(
+ __field( dev_t, dev )
+ __field( int, wait )
+ ),
+
+ TP_fast_assign(
+ __entry->dev = journal->j_fs_dev->bd_dev;
+ __entry->wait = wait;
+ ),
+
+ TP_printk("dev %d,%d wait %d",
+ MAJOR(__entry->dev), MINOR(__entry->dev),
+ __entry->wait)
+);
+
#endif /* _TRACE_JBD2_H */
/* This part must be outside protection */
--
1.7.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH][RESEND]tracepoint: add drop_transaction/update_superblock_end to jbd2
2012-01-12 20:58 Seiji Aguchi
@ 2012-01-24 7:08 ` Lukas Czerner
2012-01-30 6:21 ` Lukas Czerner
0 siblings, 1 reply; 9+ messages in thread
From: Lukas Czerner @ 2012-01-24 7:08 UTC (permalink / raw)
To: Seiji Aguchi
Cc: tytso@mit.edu, dle-develop@lists.sourceforge.net,
linux-ext4@vger.kernel.org, Lukas Czerner, jack@suse.cz,
Satoru Moriya
On Thu, 12 Jan 2012, Seiji Aguchi wrote:
> Hello Ted,
>
> Please review this patch adding jbd2 tracepoints(and hopefully apply to your tree).
> This has already been accepted by Lukas and Jan.
>
> Seiji
Hi Ted,
can we get this thing in ? It has ACK and review so I do not thing there
is a reason to hold it back. Or do you have any problems with it ?
Thanks!
-Lukas
>
> ---
> 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.
>
>
> Signed-off-by: Seiji Aguchi <seiji.aguchi@hds.com>
> Reviewed-by: Lukas Czerner <lczerner@redhat.com>
> Acked-by: Jan Kara <jack@suse.cz>
>
> ---
> fs/jbd2/checkpoint.c | 2 ++
> fs/jbd2/journal.c | 2 ++
> include/trace/events/jbd2.h | 28 ++++++++++++++++++++++++++++
> 3 files changed, 32 insertions(+), 0 deletions(-)
>
> diff --git a/fs/jbd2/checkpoint.c b/fs/jbd2/checkpoint.c
> index 16a698b..2bfd8b0 100644
> --- a/fs/jbd2/checkpoint.c
> +++ b/fs/jbd2/checkpoint.c
> @@ -797,5 +797,7 @@ void __jbd2_journal_drop_transaction(journal_t *journal, transaction_t *transact
> J_ASSERT(journal->j_committing_transaction != transaction);
> J_ASSERT(journal->j_running_transaction != transaction);
>
> + trace_jbd2_drop_transaction(journal, transaction);
> +
> jbd_debug(1, "Dropping transaction %d, all done\n", transaction->t_tid);
> }
> diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c
> index f24df13..5953b3d 100644
> --- a/fs/jbd2/journal.c
> +++ b/fs/jbd2/journal.c
> @@ -1185,6 +1185,8 @@ void jbd2_journal_update_superblock(journal_t *journal, int wait)
> } else
> write_dirty_buffer(bh, WRITE);
>
> + trace_jbd2_update_superblock_end(journal, wait);
> +
> out:
> /* If we have just flushed the log (by marking s_start==0), then
> * any future commit will have to be careful to update the
> diff --git a/include/trace/events/jbd2.h b/include/trace/events/jbd2.h
> index 7596441..ae59bc2 100644
> --- a/include/trace/events/jbd2.h
> +++ b/include/trace/events/jbd2.h
> @@ -81,6 +81,13 @@ DEFINE_EVENT(jbd2_commit, jbd2_commit_logging,
> TP_ARGS(journal, commit_transaction)
> );
>
> +DEFINE_EVENT(jbd2_commit, jbd2_drop_transaction,
> +
> + TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
> +
> + TP_ARGS(journal, commit_transaction)
> +);
> +
> TRACE_EVENT(jbd2_end_commit,
> TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
>
> @@ -229,6 +236,27 @@ TRACE_EVENT(jbd2_cleanup_journal_tail,
> __entry->block_nr, __entry->freed)
> );
>
> +TRACE_EVENT(jbd2_update_superblock_end,
> +
> + TP_PROTO(journal_t *journal, int wait),
> +
> + TP_ARGS(journal, wait),
> +
> + TP_STRUCT__entry(
> + __field( dev_t, dev )
> + __field( int, wait )
> + ),
> +
> + TP_fast_assign(
> + __entry->dev = journal->j_fs_dev->bd_dev;
> + __entry->wait = wait;
> + ),
> +
> + TP_printk("dev %d,%d wait %d",
> + MAJOR(__entry->dev), MINOR(__entry->dev),
> + __entry->wait)
> +);
> +
> #endif /* _TRACE_JBD2_H */
>
> /* This part must be outside protection */
>
--
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH][RESEND]tracepoint: add drop_transaction/update_superblock_end to jbd2
2012-01-24 7:08 ` Lukas Czerner
@ 2012-01-30 6:21 ` Lukas Czerner
2012-02-06 19:59 ` Seiji Aguchi
0 siblings, 1 reply; 9+ messages in thread
From: Lukas Czerner @ 2012-01-30 6:21 UTC (permalink / raw)
To: Lukas Czerner
Cc: Seiji Aguchi, tytso@mit.edu, dle-develop@lists.sourceforge.net,
linux-ext4@vger.kernel.org, jack@suse.cz, Satoru Moriya
On Tue, 24 Jan 2012, Lukas Czerner wrote:
> On Thu, 12 Jan 2012, Seiji Aguchi wrote:
>
> > Hello Ted,
> >
> > Please review this patch adding jbd2 tracepoints(and hopefully apply to your tree).
> > This has already been accepted by Lukas and Jan.
> >
> > Seiji
>
> Hi Ted,
>
> can we get this thing in ? It has ACK and review so I do not thing there
> is a reason to hold it back. Or do you have any problems with it ?
>
> Thanks!
> -Lukas
Ping!
-Lukas
>
> >
> > ---
> > 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.
> >
> >
> > Signed-off-by: Seiji Aguchi <seiji.aguchi@hds.com>
> > Reviewed-by: Lukas Czerner <lczerner@redhat.com>
> > Acked-by: Jan Kara <jack@suse.cz>
> >
> > ---
> > fs/jbd2/checkpoint.c | 2 ++
> > fs/jbd2/journal.c | 2 ++
> > include/trace/events/jbd2.h | 28 ++++++++++++++++++++++++++++
> > 3 files changed, 32 insertions(+), 0 deletions(-)
> >
> > diff --git a/fs/jbd2/checkpoint.c b/fs/jbd2/checkpoint.c
> > index 16a698b..2bfd8b0 100644
> > --- a/fs/jbd2/checkpoint.c
> > +++ b/fs/jbd2/checkpoint.c
> > @@ -797,5 +797,7 @@ void __jbd2_journal_drop_transaction(journal_t *journal, transaction_t *transact
> > J_ASSERT(journal->j_committing_transaction != transaction);
> > J_ASSERT(journal->j_running_transaction != transaction);
> >
> > + trace_jbd2_drop_transaction(journal, transaction);
> > +
> > jbd_debug(1, "Dropping transaction %d, all done\n", transaction->t_tid);
> > }
> > diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c
> > index f24df13..5953b3d 100644
> > --- a/fs/jbd2/journal.c
> > +++ b/fs/jbd2/journal.c
> > @@ -1185,6 +1185,8 @@ void jbd2_journal_update_superblock(journal_t *journal, int wait)
> > } else
> > write_dirty_buffer(bh, WRITE);
> >
> > + trace_jbd2_update_superblock_end(journal, wait);
> > +
> > out:
> > /* If we have just flushed the log (by marking s_start==0), then
> > * any future commit will have to be careful to update the
> > diff --git a/include/trace/events/jbd2.h b/include/trace/events/jbd2.h
> > index 7596441..ae59bc2 100644
> > --- a/include/trace/events/jbd2.h
> > +++ b/include/trace/events/jbd2.h
> > @@ -81,6 +81,13 @@ DEFINE_EVENT(jbd2_commit, jbd2_commit_logging,
> > TP_ARGS(journal, commit_transaction)
> > );
> >
> > +DEFINE_EVENT(jbd2_commit, jbd2_drop_transaction,
> > +
> > + TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
> > +
> > + TP_ARGS(journal, commit_transaction)
> > +);
> > +
> > TRACE_EVENT(jbd2_end_commit,
> > TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
> >
> > @@ -229,6 +236,27 @@ TRACE_EVENT(jbd2_cleanup_journal_tail,
> > __entry->block_nr, __entry->freed)
> > );
> >
> > +TRACE_EVENT(jbd2_update_superblock_end,
> > +
> > + TP_PROTO(journal_t *journal, int wait),
> > +
> > + TP_ARGS(journal, wait),
> > +
> > + TP_STRUCT__entry(
> > + __field( dev_t, dev )
> > + __field( int, wait )
> > + ),
> > +
> > + TP_fast_assign(
> > + __entry->dev = journal->j_fs_dev->bd_dev;
> > + __entry->wait = wait;
> > + ),
> > +
> > + TP_printk("dev %d,%d wait %d",
> > + MAJOR(__entry->dev), MINOR(__entry->dev),
> > + __entry->wait)
> > +);
> > +
> > #endif /* _TRACE_JBD2_H */
> >
> > /* This part must be outside protection */
> >
>
>
--
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: [PATCH][RESEND]tracepoint: add drop_transaction/update_superblock_end to jbd2
2012-01-30 6:21 ` Lukas Czerner
@ 2012-02-06 19:59 ` Seiji Aguchi
0 siblings, 0 replies; 9+ messages in thread
From: Seiji Aguchi @ 2012-02-06 19:59 UTC (permalink / raw)
To: tytso@mit.edu
Cc: dle-develop@lists.sourceforge.net, linux-ext4@vger.kernel.org,
jack@suse.cz, Satoru Moriya, lczerner@redhat.com
Hello Ted,
I explain the reason why this patch is needed.
Tracepoints of drop_transaction and update_superblock are missing from jbd2 even though
They are in jbd.
When our customers migrate their file system from ext3 to ext4 and some issues happen in jbd2,
we may not diagnose it even though we could do it in ext3 system.
It seems like a regression for our customers.
This patch is important for us.
Please give us some feedback.
Seiji
-----Original Message-----
From: Lukas Czerner [mailto:lczerner@redhat.com]
Sent: Monday, January 30, 2012 1:21 AM
To: Lukas Czerner
Cc: Seiji Aguchi; tytso@mit.edu; dle-develop@lists.sourceforge.net; linux-ext4@vger.kernel.org; jack@suse.cz; Satoru Moriya
Subject: Re: [PATCH][RESEND]tracepoint: add drop_transaction/update_superblock_end to jbd2
On Tue, 24 Jan 2012, Lukas Czerner wrote:
> On Thu, 12 Jan 2012, Seiji Aguchi wrote:
>
> > Hello Ted,
> >
> > Please review this patch adding jbd2 tracepoints(and hopefully apply to your tree).
> > This has already been accepted by Lukas and Jan.
> >
> > Seiji
>
> Hi Ted,
>
> can we get this thing in ? It has ACK and review so I do not thing
> there is a reason to hold it back. Or do you have any problems with it ?
>
> Thanks!
> -Lukas
Ping!
-Lukas
>
> >
> > ---
> > 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.
> >
> >
> > Signed-off-by: Seiji Aguchi <seiji.aguchi@hds.com>
> > Reviewed-by: Lukas Czerner <lczerner@redhat.com>
> > Acked-by: Jan Kara <jack@suse.cz>
> >
> > ---
> > fs/jbd2/checkpoint.c | 2 ++
> > fs/jbd2/journal.c | 2 ++
> > include/trace/events/jbd2.h | 28 ++++++++++++++++++++++++++++
> > 3 files changed, 32 insertions(+), 0 deletions(-)
> >
> > diff --git a/fs/jbd2/checkpoint.c b/fs/jbd2/checkpoint.c index
> > 16a698b..2bfd8b0 100644
> > --- a/fs/jbd2/checkpoint.c
> > +++ b/fs/jbd2/checkpoint.c
> > @@ -797,5 +797,7 @@ void __jbd2_journal_drop_transaction(journal_t *journal, transaction_t *transact
> > J_ASSERT(journal->j_committing_transaction != transaction);
> > J_ASSERT(journal->j_running_transaction != transaction);
> >
> > + trace_jbd2_drop_transaction(journal, transaction);
> > +
> > jbd_debug(1, "Dropping transaction %d, all done\n",
> > transaction->t_tid); } diff --git a/fs/jbd2/journal.c
> > b/fs/jbd2/journal.c index f24df13..5953b3d 100644
> > --- a/fs/jbd2/journal.c
> > +++ b/fs/jbd2/journal.c
> > @@ -1185,6 +1185,8 @@ void jbd2_journal_update_superblock(journal_t *journal, int wait)
> > } else
> > write_dirty_buffer(bh, WRITE);
> >
> > + trace_jbd2_update_superblock_end(journal, wait);
> > +
> > out:
> > /* If we have just flushed the log (by marking s_start==0), then
> > * any future commit will have to be careful to update the diff
> > --git a/include/trace/events/jbd2.h b/include/trace/events/jbd2.h
> > index 7596441..ae59bc2 100644
> > --- a/include/trace/events/jbd2.h
> > +++ b/include/trace/events/jbd2.h
> > @@ -81,6 +81,13 @@ DEFINE_EVENT(jbd2_commit, jbd2_commit_logging,
> > TP_ARGS(journal, commit_transaction) );
> >
> > +DEFINE_EVENT(jbd2_commit, jbd2_drop_transaction,
> > +
> > + TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
> > +
> > + TP_ARGS(journal, commit_transaction) );
> > +
> > TRACE_EVENT(jbd2_end_commit,
> > TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
> >
> > @@ -229,6 +236,27 @@ TRACE_EVENT(jbd2_cleanup_journal_tail,
> > __entry->block_nr, __entry->freed) );
> >
> > +TRACE_EVENT(jbd2_update_superblock_end,
> > +
> > + TP_PROTO(journal_t *journal, int wait),
> > +
> > + TP_ARGS(journal, wait),
> > +
> > + TP_STRUCT__entry(
> > + __field( dev_t, dev )
> > + __field( int, wait )
> > + ),
> > +
> > + TP_fast_assign(
> > + __entry->dev = journal->j_fs_dev->bd_dev;
> > + __entry->wait = wait;
> > + ),
> > +
> > + TP_printk("dev %d,%d wait %d",
> > + MAJOR(__entry->dev), MINOR(__entry->dev),
> > + __entry->wait)
> > +);
> > +
> > #endif /* _TRACE_JBD2_H */
> >
> > /* This part must be outside protection */
> >
>
>
--
^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <32727E9A83EE9A42A1F0906295A3A77B2C78F4996B@USINDEVS01.corp.hds.com>]
* RE: [PATCH][RESEND]tracepoint: add drop_transaction/update_superblock_end to jbd2
[not found] <32727E9A83EE9A42A1F0906295A3A77B2C78F4996B@USINDEVS01.corp.hds.com>
@ 2012-01-19 16:05 ` Seiji Aguchi
0 siblings, 0 replies; 9+ messages in thread
From: Seiji Aguchi @ 2012-01-19 16:05 UTC (permalink / raw)
To: tytso@mit.edu
Cc: dle-develop@lists.sourceforge.net, linux-ext4@vger.kernel.org,
Lukas Czerner, jack@suse.cz, Satoru Moriya
Ping?
________________________________________
Hello Ted,
Please review this patch adding jbd2 tracepoints(and hopefully apply to your tree).
This has already been accepted by Lukas and Jan.
Seiji
---
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.
Signed-off-by: Seiji Aguchi <seiji.aguchi@hds.com>
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
Acked-by: Jan Kara <jack@suse.cz>
---
fs/jbd2/checkpoint.c | 2 ++
fs/jbd2/journal.c | 2 ++
include/trace/events/jbd2.h | 28 ++++++++++++++++++++++++++++
3 files changed, 32 insertions(+), 0 deletions(-)
diff --git a/fs/jbd2/checkpoint.c b/fs/jbd2/checkpoint.c
index 16a698b..2bfd8b0 100644
--- a/fs/jbd2/checkpoint.c
+++ b/fs/jbd2/checkpoint.c
@@ -797,5 +797,7 @@ void __jbd2_journal_drop_transaction(journal_t *journal, transaction_t *transact
J_ASSERT(journal->j_committing_transaction != transaction);
J_ASSERT(journal->j_running_transaction != transaction);
+ trace_jbd2_drop_transaction(journal, transaction);
+
jbd_debug(1, "Dropping transaction %d, all done\n", transaction->t_tid);
}
diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c
index f24df13..5953b3d 100644
--- a/fs/jbd2/journal.c
+++ b/fs/jbd2/journal.c
@@ -1185,6 +1185,8 @@ void jbd2_journal_update_superblock(journal_t *journal, int wait)
} else
write_dirty_buffer(bh, WRITE);
+ trace_jbd2_update_superblock_end(journal, wait);
+
out:
/* If we have just flushed the log (by marking s_start==0), then
* any future commit will have to be careful to update the
diff --git a/include/trace/events/jbd2.h b/include/trace/events/jbd2.h
index 7596441..ae59bc2 100644
--- a/include/trace/events/jbd2.h
+++ b/include/trace/events/jbd2.h
@@ -81,6 +81,13 @@ DEFINE_EVENT(jbd2_commit, jbd2_commit_logging,
TP_ARGS(journal, commit_transaction)
);
+DEFINE_EVENT(jbd2_commit, jbd2_drop_transaction,
+
+ TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
+
+ TP_ARGS(journal, commit_transaction)
+);
+
TRACE_EVENT(jbd2_end_commit,
TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
@@ -229,6 +236,27 @@ TRACE_EVENT(jbd2_cleanup_journal_tail,
__entry->block_nr, __entry->freed)
);
+TRACE_EVENT(jbd2_update_superblock_end,
+
+ TP_PROTO(journal_t *journal, int wait),
+
+ TP_ARGS(journal, wait),
+
+ TP_STRUCT__entry(
+ __field( dev_t, dev )
+ __field( int, wait )
+ ),
+
+ TP_fast_assign(
+ __entry->dev = journal->j_fs_dev->bd_dev;
+ __entry->wait = wait;
+ ),
+
+ TP_printk("dev %d,%d wait %d",
+ MAJOR(__entry->dev), MINOR(__entry->dev),
+ __entry->wait)
+);
+
#endif /* _TRACE_JBD2_H */
/* This part must be outside protection */
--
1.7.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
end of thread, other threads:[~2012-02-06 23:27 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-12 0:10 [PATCH][RESEND]tracepoint: add drop_transaction/update_superblock_end to jbd2 Seiji Aguchi
2012-01-12 1:02 ` Jan Kara
2012-01-12 1:06 ` Seiji Aguchi
2012-02-06 23:27 ` Ted Ts'o
-- strict thread matches above, loose matches on Subject: below --
2012-01-12 20:58 Seiji Aguchi
2012-01-24 7:08 ` Lukas Czerner
2012-01-30 6:21 ` Lukas Czerner
2012-02-06 19:59 ` Seiji Aguchi
[not found] <32727E9A83EE9A42A1F0906295A3A77B2C78F4996B@USINDEVS01.corp.hds.com>
2012-01-19 16:05 ` Seiji Aguchi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).