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
60ae81ee
Commit
60ae81ee
authored
May 22, 2014
by
Slava Pestov
Committed by
Kent Overstreet
Aug 04, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcache: bcache_write tracepoint was crashing
Signed-off-by:
Kent Overstreet
<
kmo@daterainc.com
>
parent
8e094808
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
drivers/md/bcache/request.c
drivers/md/bcache/request.c
+2
-1
include/trace/events/bcache.h
include/trace/events/bcache.h
+9
-6
No files found.
drivers/md/bcache/request.c
View file @
60ae81ee
...
...
@@ -311,7 +311,8 @@ void bch_data_insert(struct closure *cl)
{
struct
data_insert_op
*
op
=
container_of
(
cl
,
struct
data_insert_op
,
cl
);
trace_bcache_write
(
op
->
bio
,
op
->
writeback
,
op
->
bypass
);
trace_bcache_write
(
op
->
c
,
op
->
inode
,
op
->
bio
,
op
->
writeback
,
op
->
bypass
);
bch_keylist_init
(
&
op
->
insert_keys
);
bio_get
(
op
->
bio
);
...
...
include/trace/events/bcache.h
View file @
60ae81ee
...
...
@@ -148,11 +148,13 @@ TRACE_EVENT(bcache_read,
);
TRACE_EVENT
(
bcache_write
,
TP_PROTO
(
struct
bio
*
bio
,
bool
writeback
,
bool
bypass
),
TP_ARGS
(
bio
,
writeback
,
bypass
),
TP_PROTO
(
struct
cache_set
*
c
,
u64
inode
,
struct
bio
*
bio
,
bool
writeback
,
bool
bypass
),
TP_ARGS
(
c
,
inode
,
bio
,
writeback
,
bypass
),
TP_STRUCT__entry
(
__field
(
dev_t
,
dev
)
__array
(
char
,
uuid
,
16
)
__field
(
u64
,
inode
)
__field
(
sector_t
,
sector
)
__field
(
unsigned
int
,
nr_sector
)
__array
(
char
,
rwbs
,
6
)
...
...
@@ -161,7 +163,8 @@ TRACE_EVENT(bcache_write,
),
TP_fast_assign
(
__entry
->
dev
=
bio
->
bi_bdev
->
bd_dev
;
memcpy
(
__entry
->
uuid
,
c
->
sb
.
set_uuid
,
16
);
__entry
->
inode
=
inode
;
__entry
->
sector
=
bio
->
bi_iter
.
bi_sector
;
__entry
->
nr_sector
=
bio
->
bi_iter
.
bi_size
>>
9
;
blk_fill_rwbs
(
__entry
->
rwbs
,
bio
->
bi_rw
,
bio
->
bi_iter
.
bi_size
);
...
...
@@ -169,8 +172,8 @@ TRACE_EVENT(bcache_write,
__entry
->
bypass
=
bypass
;
),
TP_printk
(
"%
d,%d
%s %llu + %u hit %u bypass %u"
,
MAJOR
(
__entry
->
dev
),
MINOR
(
__entry
->
dev
)
,
TP_printk
(
"%
pU inode %llu
%s %llu + %u hit %u bypass %u"
,
__entry
->
uuid
,
__entry
->
inode
,
__entry
->
rwbs
,
(
unsigned
long
long
)
__entry
->
sector
,
__entry
->
nr_sector
,
__entry
->
writeback
,
__entry
->
bypass
)
);
...
...
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