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
beac2da7
Commit
beac2da7
authored
Nov 23, 2009
by
Theodore Ts'o
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ext4: add tracepoint for ext4_forget()
Signed-off-by:
"Theodore Ts'o"
<
tytso@mit.edu
>
parent
cf40db13
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
fs/ext4/inode.c
fs/ext4/inode.c
+1
-0
include/trace/events/ext4.h
include/trace/events/ext4.h
+26
-0
No files found.
fs/ext4/inode.c
View file @
beac2da7
...
...
@@ -89,6 +89,7 @@ int ext4_forget(handle_t *handle, int is_metadata, struct inode *inode,
might_sleep
();
trace_ext4_forget
(
inode
,
is_metadata
,
blocknr
);
BUFFER_TRACE
(
bh
,
"enter"
);
jbd_debug
(
4
,
"forgetting bh %p: is_metadata = %d, mode %o, "
...
...
include/trace/events/ext4.h
View file @
beac2da7
...
...
@@ -907,6 +907,32 @@ TRACE_EVENT(ext4_mballoc_free,
__entry
->
result_len
,
__entry
->
result_logical
)
);
TRACE_EVENT
(
ext4_forget
,
TP_PROTO
(
struct
inode
*
inode
,
int
is_metadata
,
__u64
block
),
TP_ARGS
(
inode
,
is_metadata
,
block
),
TP_STRUCT__entry
(
__field
(
dev_t
,
dev
)
__field
(
ino_t
,
ino
)
__field
(
umode_t
,
mode
)
__field
(
int
,
is_metadata
)
__field
(
__u64
,
block
)
),
TP_fast_assign
(
__entry
->
dev
=
inode
->
i_sb
->
s_dev
;
__entry
->
ino
=
inode
->
i_ino
;
__entry
->
mode
=
inode
->
i_mode
;
__entry
->
is_metadata
=
is_metadata
;
__entry
->
block
=
block
;
),
TP_printk
(
"dev %s ino %lu mode %d is_metadata %d block %llu"
,
jbd2_dev_to_name
(
__entry
->
dev
),
(
unsigned
long
)
__entry
->
ino
,
__entry
->
mode
,
__entry
->
is_metadata
,
__entry
->
block
)
);
#endif
/* _TRACE_EXT4_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