Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
71f2be21
Commit
71f2be21
authored
Dec 23, 2009
by
Theodore Ts'o
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ext4: Add new tracepoint for jbd2_cleanup_journal_tail
Signed-off-by:
"Theodore Ts'o"
<
tytso@mit.edu
>
parent
1f2acb60
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
fs/jbd2/checkpoint.c
fs/jbd2/checkpoint.c
+1
-0
include/trace/events/jbd2.h
include/trace/events/jbd2.h
+28
-0
No files found.
fs/jbd2/checkpoint.c
View file @
71f2be21
...
...
@@ -507,6 +507,7 @@ int jbd2_cleanup_journal_tail(journal_t *journal)
if
(
blocknr
<
journal
->
j_tail
)
freed
=
freed
+
journal
->
j_last
-
journal
->
j_first
;
trace_jbd2_cleanup_journal_tail
(
journal
,
first_tid
,
blocknr
,
freed
);
jbd_debug
(
1
,
"Cleaning journal tail from %d to %d (offset %lu), "
"freeing %lu
\n
"
,
...
...
include/trace/events/jbd2.h
View file @
71f2be21
...
...
@@ -199,6 +199,34 @@ TRACE_EVENT(jbd2_checkpoint_stats,
__entry
->
forced_to_close
,
__entry
->
written
,
__entry
->
dropped
)
);
TRACE_EVENT
(
jbd2_cleanup_journal_tail
,
TP_PROTO
(
journal_t
*
journal
,
tid_t
first_tid
,
unsigned
long
block_nr
,
unsigned
long
freed
),
TP_ARGS
(
journal
,
first_tid
,
block_nr
,
freed
),
TP_STRUCT__entry
(
__field
(
dev_t
,
dev
)
__field
(
tid_t
,
tail_sequence
)
__field
(
tid_t
,
first_tid
)
__field
(
unsigned
long
,
block_nr
)
__field
(
unsigned
long
,
freed
)
),
TP_fast_assign
(
__entry
->
dev
=
journal
->
j_fs_dev
->
bd_dev
;
__entry
->
tail_sequence
=
journal
->
j_tail_sequence
;
__entry
->
first_tid
=
first_tid
;
__entry
->
block_nr
=
block_nr
;
__entry
->
freed
=
freed
;
),
TP_printk
(
"dev %s from %u to %u offset %lu freed %lu"
,
jbd2_dev_to_name
(
__entry
->
dev
),
__entry
->
tail_sequence
,
__entry
->
first_tid
,
__entry
->
block_nr
,
__entry
->
freed
)
);
#endif
/* _TRACE_JBD2_H */
/* This part must be outside protection */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment