Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
b5f875a9
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看板
提交
b5f875a9
编写于
8月 13, 2013
作者:
T
Trond Myklebust
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
NFSv4: Add tracepoints for debugging getattr
Signed-off-by:
N
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
上级
1f2d30b5
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
74 addition
and
2 deletion
+74
-2
fs/nfs/nfs4proc.c
fs/nfs/nfs4proc.c
+5
-2
fs/nfs/nfs4trace.h
fs/nfs/nfs4trace.h
+69
-0
未找到文件。
fs/nfs/nfs4proc.c
浏览文件 @
b5f875a9
...
...
@@ -2697,6 +2697,7 @@ static int nfs4_lookup_root(struct nfs_server *server, struct nfs_fh *fhandle,
int
err
;
do
{
err
=
_nfs4_lookup_root
(
server
,
fhandle
,
info
);
trace_nfs4_lookup_root
(
server
,
fhandle
,
info
->
fattr
,
err
);
switch
(
err
)
{
case
0
:
case
-
NFS4ERR_WRONGSEC
:
...
...
@@ -2906,8 +2907,9 @@ static int nfs4_proc_getattr(struct nfs_server *server, struct nfs_fh *fhandle,
struct
nfs4_exception
exception
=
{
};
int
err
;
do
{
err
=
nfs4_handle_exception
(
server
,
_nfs4_proc_getattr
(
server
,
fhandle
,
fattr
,
label
),
err
=
_nfs4_proc_getattr
(
server
,
fhandle
,
fattr
,
label
);
trace_nfs4_getattr
(
server
,
fhandle
,
fattr
,
err
);
err
=
nfs4_handle_exception
(
server
,
err
,
&
exception
);
}
while
(
exception
.
retry
);
return
err
;
...
...
@@ -3760,6 +3762,7 @@ static int nfs4_do_fsinfo(struct nfs_server *server, struct nfs_fh *fhandle, str
do
{
err
=
_nfs4_do_fsinfo
(
server
,
fhandle
,
fsinfo
);
trace_nfs4_fsinfo
(
server
,
fhandle
,
fsinfo
->
fattr
,
err
);
if
(
err
==
0
)
{
struct
nfs_client
*
clp
=
server
->
nfs_client
;
...
...
fs/nfs/nfs4trace.h
浏览文件 @
b5f875a9
...
...
@@ -174,6 +174,24 @@
{ ((__force unsigned long)FMODE_WRITE), "WRITE" }, \
{ ((__force unsigned long)FMODE_EXEC), "EXEC" })
#define show_nfs_fattr_flags(valid) \
__print_flags((unsigned long)valid, "|", \
{ NFS_ATTR_FATTR_TYPE, "TYPE" }, \
{ NFS_ATTR_FATTR_MODE, "MODE" }, \
{ NFS_ATTR_FATTR_NLINK, "NLINK" }, \
{ NFS_ATTR_FATTR_OWNER, "OWNER" }, \
{ NFS_ATTR_FATTR_GROUP, "GROUP" }, \
{ NFS_ATTR_FATTR_RDEV, "RDEV" }, \
{ NFS_ATTR_FATTR_SIZE, "SIZE" }, \
{ NFS_ATTR_FATTR_FSID, "FSID" }, \
{ NFS_ATTR_FATTR_FILEID, "FILEID" }, \
{ NFS_ATTR_FATTR_ATIME, "ATIME" }, \
{ NFS_ATTR_FATTR_MTIME, "MTIME" }, \
{ NFS_ATTR_FATTR_CTIME, "CTIME" }, \
{ NFS_ATTR_FATTR_CHANGE, "CHANGE" }, \
{ NFS_ATTR_FATTR_OWNER_NAME, "OWNER_NAME" }, \
{ NFS_ATTR_FATTR_GROUP_NAME, "GROUP_NAME" })
DECLARE_EVENT_CLASS
(
nfs4_clientid_event
,
TP_PROTO
(
const
struct
nfs_client
*
clp
,
...
...
@@ -627,6 +645,57 @@ DEFINE_NFS4_INODE_EVENT(nfs4_set_security_label);
DEFINE_NFS4_INODE_EVENT
(
nfs4_recall_delegation
);
DEFINE_NFS4_INODE_EVENT
(
nfs4_delegreturn
);
DECLARE_EVENT_CLASS
(
nfs4_getattr_event
,
TP_PROTO
(
const
struct
nfs_server
*
server
,
const
struct
nfs_fh
*
fhandle
,
const
struct
nfs_fattr
*
fattr
,
int
error
),
TP_ARGS
(
server
,
fhandle
,
fattr
,
error
),
TP_STRUCT__entry
(
__field
(
dev_t
,
dev
)
__field
(
u32
,
fhandle
)
__field
(
u64
,
fileid
)
__field
(
unsigned
int
,
valid
)
__field
(
int
,
error
)
),
TP_fast_assign
(
__entry
->
dev
=
server
->
s_dev
;
__entry
->
valid
=
fattr
->
valid
;
__entry
->
fhandle
=
nfs_fhandle_hash
(
fhandle
);
__entry
->
fileid
=
(
fattr
->
valid
&
NFS_ATTR_FATTR_FILEID
)
?
fattr
->
fileid
:
0
;
__entry
->
error
=
error
;
),
TP_printk
(
"error=%d (%s) fileid=%02x:%02x:%llu fhandle=0x%08x "
"valid=%s"
,
__entry
->
error
,
show_nfsv4_errors
(
__entry
->
error
),
MAJOR
(
__entry
->
dev
),
MINOR
(
__entry
->
dev
),
(
unsigned
long
long
)
__entry
->
fileid
,
__entry
->
fhandle
,
show_nfs_fattr_flags
(
__entry
->
valid
)
)
);
#define DEFINE_NFS4_GETATTR_EVENT(name) \
DEFINE_EVENT(nfs4_getattr_event, name, \
TP_PROTO( \
const struct nfs_server *server, \
const struct nfs_fh *fhandle, \
const struct nfs_fattr *fattr, \
int error \
), \
TP_ARGS(server, fhandle, fattr, error))
DEFINE_NFS4_GETATTR_EVENT
(
nfs4_getattr
);
DEFINE_NFS4_GETATTR_EVENT
(
nfs4_lookup_root
);
DEFINE_NFS4_GETATTR_EVENT
(
nfs4_fsinfo
);
DECLARE_EVENT_CLASS
(
nfs4_idmap_event
,
TP_PROTO
(
const
char
*
name
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录