Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
1037e6ea
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
1037e6ea
编写于
8月 14, 2013
作者:
T
Trond Myklebust
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
NFSv4.1: Add tracepoints for debugging layoutget/return/commit
Signed-off-by:
N
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
上级
cc668ab3
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
61 addition
and
0 deletion
+61
-0
fs/nfs/nfs4proc.c
fs/nfs/nfs4proc.c
+6
-0
fs/nfs/nfs4trace.h
fs/nfs/nfs4trace.h
+55
-0
未找到文件。
fs/nfs/nfs4proc.c
浏览文件 @
1037e6ea
...
...
@@ -6860,6 +6860,10 @@ nfs4_proc_layoutget(struct nfs4_layoutget *lgp, gfp_t gfp_flags)
status
=
nfs4_wait_for_completion_rpc_task
(
task
);
if
(
status
==
0
)
status
=
task
->
tk_status
;
trace_nfs4_layoutget
(
lgp
->
args
.
ctx
,
&
lgp
->
args
.
range
,
&
lgp
->
res
.
range
,
status
);
/* if layoutp->len is 0, nfs4_layoutget_prepare called rpc_exit */
if
(
status
==
0
&&
lgp
->
res
.
layoutp
->
len
)
lseg
=
pnfs_layout_process
(
lgp
);
...
...
@@ -6945,6 +6949,7 @@ int nfs4_proc_layoutreturn(struct nfs4_layoutreturn *lrp)
if
(
IS_ERR
(
task
))
return
PTR_ERR
(
task
);
status
=
task
->
tk_status
;
trace_nfs4_layoutreturn
(
lrp
->
args
.
inode
,
status
);
dprintk
(
"<-- %s status=%d
\n
"
,
__func__
,
status
);
rpc_put_task
(
task
);
return
status
;
...
...
@@ -7131,6 +7136,7 @@ nfs4_proc_layoutcommit(struct nfs4_layoutcommit_data *data, bool sync)
if
(
status
!=
0
)
goto
out
;
status
=
task
->
tk_status
;
trace_nfs4_layoutcommit
(
data
->
args
.
inode
,
status
);
out:
dprintk
(
"%s: status %d
\n
"
,
__func__
,
status
);
rpc_put_task
(
task
);
...
...
fs/nfs/nfs4trace.h
浏览文件 @
1037e6ea
...
...
@@ -894,6 +894,61 @@ DECLARE_EVENT_CLASS(nfs4_commit_event,
DEFINE_NFS4_COMMIT_EVENT
(
nfs4_commit
);
#ifdef CONFIG_NFS_V4_1
DEFINE_NFS4_COMMIT_EVENT
(
nfs4_pnfs_commit_ds
);
#define show_pnfs_iomode(iomode) \
__print_symbolic(iomode, \
{ IOMODE_READ, "READ" }, \
{ IOMODE_RW, "RW" }, \
{ IOMODE_ANY, "ANY" })
TRACE_EVENT
(
nfs4_layoutget
,
TP_PROTO
(
const
struct
nfs_open_context
*
ctx
,
const
struct
pnfs_layout_range
*
args
,
const
struct
pnfs_layout_range
*
res
,
int
error
),
TP_ARGS
(
ctx
,
args
,
res
,
error
),
TP_STRUCT__entry
(
__field
(
dev_t
,
dev
)
__field
(
u32
,
fhandle
)
__field
(
u64
,
fileid
)
__field
(
u32
,
iomode
)
__field
(
u64
,
offset
)
__field
(
u64
,
count
)
__field
(
int
,
error
)
),
TP_fast_assign
(
const
struct
inode
*
inode
=
ctx
->
dentry
->
d_inode
;
__entry
->
dev
=
inode
->
i_sb
->
s_dev
;
__entry
->
fileid
=
NFS_FILEID
(
inode
);
__entry
->
fhandle
=
nfs_fhandle_hash
(
NFS_FH
(
inode
));
__entry
->
iomode
=
args
->
iomode
;
__entry
->
offset
=
args
->
offset
;
__entry
->
count
=
args
->
length
;
__entry
->
error
=
error
;
),
TP_printk
(
"error=%d (%s) fileid=%02x:%02x:%llu fhandle=0x%08x "
"iomode=%s offset=%llu count=%llu"
,
__entry
->
error
,
show_nfsv4_errors
(
__entry
->
error
),
MAJOR
(
__entry
->
dev
),
MINOR
(
__entry
->
dev
),
(
unsigned
long
long
)
__entry
->
fileid
,
__entry
->
fhandle
,
show_pnfs_iomode
(
__entry
->
iomode
),
(
unsigned
long
long
)
__entry
->
offset
,
(
unsigned
long
long
)
__entry
->
count
)
);
DEFINE_NFS4_INODE_EVENT
(
nfs4_layoutcommit
);
DEFINE_NFS4_INODE_EVENT
(
nfs4_layoutreturn
);
#endif
/* CONFIG_NFS_V4_1 */
#endif
/* _TRACE_NFS4_H */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录