Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
60ae81ee
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
60ae81ee
编写于
5月 22, 2014
作者:
S
Slava Pestov
提交者:
Kent Overstreet
8月 04, 2014
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bcache: bcache_write tracepoint was crashing
Signed-off-by:
N
Kent Overstreet
<
kmo@daterainc.com
>
上级
8e094808
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
11 addition
and
7 deletion
+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
未找到文件。
drivers/md/bcache/request.c
浏览文件 @
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
浏览文件 @
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
)
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录