Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
f307333e
Commit
f307333e
authored
May 17, 2010
by
Theodore Ts'o
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ext4: Add new tracepoints to track mballoc's buddy bitmap loads
Signed-off-by:
"Theodore Ts'o"
<
tytso@mit.edu
>
parent
5a58ec87
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
0 deletions
+35
-0
fs/ext4/mballoc.c
fs/ext4/mballoc.c
+2
-0
include/trace/events/ext4.h
include/trace/events/ext4.h
+33
-0
No files found.
fs/ext4/mballoc.c
View file @
f307333e
...
...
@@ -890,6 +890,7 @@ static int ext4_mb_init_cache(struct page *page, char *incore)
BUG_ON
(
incore
==
NULL
);
mb_debug
(
1
,
"put buddy for group %u in page %lu/%x
\n
"
,
group
,
page
->
index
,
i
*
blocksize
);
trace_ext4_mb_buddy_bitmap_load
(
sb
,
group
);
grinfo
=
ext4_get_group_info
(
sb
,
group
);
grinfo
->
bb_fragments
=
0
;
memset
(
grinfo
->
bb_counters
,
0
,
...
...
@@ -907,6 +908,7 @@ static int ext4_mb_init_cache(struct page *page, char *incore)
BUG_ON
(
incore
!=
NULL
);
mb_debug
(
1
,
"put bitmap for group %u in page %lu/%x
\n
"
,
group
,
page
->
index
,
i
*
blocksize
);
trace_ext4_mb_bitmap_load
(
sb
,
group
);
/* see comments in ext4_mb_put_pa() */
ext4_lock_group
(
sb
,
group
);
...
...
include/trace/events/ext4.h
View file @
f307333e
...
...
@@ -974,6 +974,39 @@ TRACE_EVENT(ext4_da_release_space,
__entry
->
reserved_meta_blocks
,
__entry
->
allocated_meta_blocks
)
);
DECLARE_EVENT_CLASS
(
ext4__bitmap_load
,
TP_PROTO
(
struct
super_block
*
sb
,
unsigned
long
group
),
TP_ARGS
(
sb
,
group
),
TP_STRUCT__entry
(
__field
(
dev_t
,
dev
)
__field
(
__u32
,
group
)
),
TP_fast_assign
(
__entry
->
dev
=
sb
->
s_dev
;
__entry
->
group
=
group
;
),
TP_printk
(
"dev %s group %u"
,
jbd2_dev_to_name
(
__entry
->
dev
),
__entry
->
group
)
);
DEFINE_EVENT
(
ext4__bitmap_load
,
ext4_mb_bitmap_load
,
TP_PROTO
(
struct
super_block
*
sb
,
unsigned
long
group
),
TP_ARGS
(
sb
,
group
)
);
DEFINE_EVENT
(
ext4__bitmap_load
,
ext4_mb_buddy_bitmap_load
,
TP_PROTO
(
struct
super_block
*
sb
,
unsigned
long
group
),
TP_ARGS
(
sb
,
group
)
);
#endif
/* _TRACE_EXT4_H */
...
...
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