Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
1fd1085b
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
1fd1085b
编写于
8月 21, 2013
作者:
T
Trond Myklebust
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
NFS: Add tracepoints for debugging NFS hard links
Signed-off-by:
N
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
上级
70ded201
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
72 addition
and
0 deletion
+72
-0
fs/nfs/dir.c
fs/nfs/dir.c
+2
-0
fs/nfs/nfstrace.h
fs/nfs/nfstrace.h
+70
-0
未找到文件。
fs/nfs/dir.c
浏览文件 @
1fd1085b
...
@@ -1860,6 +1860,7 @@ nfs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry)
...
@@ -1860,6 +1860,7 @@ nfs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry)
old_dentry
->
d_parent
->
d_name
.
name
,
old_dentry
->
d_name
.
name
,
old_dentry
->
d_parent
->
d_name
.
name
,
old_dentry
->
d_name
.
name
,
dentry
->
d_parent
->
d_name
.
name
,
dentry
->
d_name
.
name
);
dentry
->
d_parent
->
d_name
.
name
,
dentry
->
d_name
.
name
);
trace_nfs_link_enter
(
inode
,
dir
,
dentry
);
NFS_PROTO
(
inode
)
->
return_delegation
(
inode
);
NFS_PROTO
(
inode
)
->
return_delegation
(
inode
);
d_drop
(
dentry
);
d_drop
(
dentry
);
...
@@ -1868,6 +1869,7 @@ nfs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry)
...
@@ -1868,6 +1869,7 @@ nfs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry)
ihold
(
inode
);
ihold
(
inode
);
d_add
(
dentry
,
inode
);
d_add
(
dentry
,
inode
);
}
}
trace_nfs_link_exit
(
inode
,
dir
,
dentry
,
error
);
return
error
;
return
error
;
}
}
EXPORT_SYMBOL_GPL
(
nfs_link
);
EXPORT_SYMBOL_GPL
(
nfs_link
);
...
...
fs/nfs/nfstrace.h
浏览文件 @
1fd1085b
...
@@ -512,6 +512,76 @@ DEFINE_NFS_DIRECTORY_EVENT_DONE(nfs_unlink_exit);
...
@@ -512,6 +512,76 @@ DEFINE_NFS_DIRECTORY_EVENT_DONE(nfs_unlink_exit);
DEFINE_NFS_DIRECTORY_EVENT
(
nfs_symlink_enter
);
DEFINE_NFS_DIRECTORY_EVENT
(
nfs_symlink_enter
);
DEFINE_NFS_DIRECTORY_EVENT_DONE
(
nfs_symlink_exit
);
DEFINE_NFS_DIRECTORY_EVENT_DONE
(
nfs_symlink_exit
);
TRACE_EVENT
(
nfs_link_enter
,
TP_PROTO
(
const
struct
inode
*
inode
,
const
struct
inode
*
dir
,
const
struct
dentry
*
dentry
),
TP_ARGS
(
inode
,
dir
,
dentry
),
TP_STRUCT__entry
(
__field
(
dev_t
,
dev
)
__field
(
u64
,
fileid
)
__field
(
u64
,
dir
)
__string
(
name
,
dentry
->
d_name
.
name
)
),
TP_fast_assign
(
__entry
->
dev
=
inode
->
i_sb
->
s_dev
;
__entry
->
fileid
=
NFS_FILEID
(
inode
);
__entry
->
dir
=
NFS_FILEID
(
dir
);
__assign_str
(
name
,
dentry
->
d_name
.
name
);
),
TP_printk
(
"fileid=%02x:%02x:%llu name=%02x:%02x:%llu/%s"
,
MAJOR
(
__entry
->
dev
),
MINOR
(
__entry
->
dev
),
__entry
->
fileid
,
MAJOR
(
__entry
->
dev
),
MINOR
(
__entry
->
dev
),
(
unsigned
long
long
)
__entry
->
dir
,
__get_str
(
name
)
)
);
TRACE_EVENT
(
nfs_link_exit
,
TP_PROTO
(
const
struct
inode
*
inode
,
const
struct
inode
*
dir
,
const
struct
dentry
*
dentry
,
int
error
),
TP_ARGS
(
inode
,
dir
,
dentry
,
error
),
TP_STRUCT__entry
(
__field
(
int
,
error
)
__field
(
dev_t
,
dev
)
__field
(
u64
,
fileid
)
__field
(
u64
,
dir
)
__string
(
name
,
dentry
->
d_name
.
name
)
),
TP_fast_assign
(
__entry
->
dev
=
inode
->
i_sb
->
s_dev
;
__entry
->
fileid
=
NFS_FILEID
(
inode
);
__entry
->
dir
=
NFS_FILEID
(
dir
);
__entry
->
error
=
error
;
__assign_str
(
name
,
dentry
->
d_name
.
name
);
),
TP_printk
(
"error=%d fileid=%02x:%02x:%llu name=%02x:%02x:%llu/%s"
,
__entry
->
error
,
MAJOR
(
__entry
->
dev
),
MINOR
(
__entry
->
dev
),
__entry
->
fileid
,
MAJOR
(
__entry
->
dev
),
MINOR
(
__entry
->
dev
),
(
unsigned
long
long
)
__entry
->
dir
,
__get_str
(
name
)
)
);
DECLARE_EVENT_CLASS
(
nfs_rename_event
,
DECLARE_EVENT_CLASS
(
nfs_rename_event
,
TP_PROTO
(
TP_PROTO
(
const
struct
inode
*
old_dir
,
const
struct
inode
*
old_dir
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录