Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
a9e599e5
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看板
提交
a9e599e5
编写于
7月 19, 2013
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
don't bother passing sb to oprofile_create_files()
it's always root->d_sb Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
5d30b427
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
15 addition
and
15 deletion
+15
-15
drivers/oprofile/oprof.h
drivers/oprofile/oprof.h
+1
-1
drivers/oprofile/oprofile_files.c
drivers/oprofile/oprofile_files.c
+13
-13
drivers/oprofile/oprofilefs.c
drivers/oprofile/oprofilefs.c
+1
-1
未找到文件。
drivers/oprofile/oprof.h
浏览文件 @
a9e599e5
...
...
@@ -33,7 +33,7 @@ extern unsigned long oprofile_backtrace_depth;
struct
super_block
;
struct
dentry
;
void
oprofile_create_files
(
struct
super_block
*
sb
,
struct
dentry
*
root
);
void
oprofile_create_files
(
struct
dentry
*
root
);
int
oprofile_timer_init
(
struct
oprofile_operations
*
ops
);
#ifdef CONFIG_OPROFILE_NMI_TIMER
int
op_nmi_timer_init
(
struct
oprofile_operations
*
ops
);
...
...
drivers/oprofile/oprofile_files.c
浏览文件 @
a9e599e5
...
...
@@ -175,7 +175,7 @@ static const struct file_operations dump_fops = {
.
llseek
=
noop_llseek
,
};
void
oprofile_create_files
(
struct
super_block
*
sb
,
struct
dentry
*
root
)
void
oprofile_create_files
(
struct
dentry
*
root
)
{
/* reinitialize default values */
oprofile_buffer_size
=
BUFFER_SIZE_DEFAULT
;
...
...
@@ -183,19 +183,19 @@ void oprofile_create_files(struct super_block *sb, struct dentry *root)
oprofile_buffer_watershed
=
BUFFER_WATERSHED_DEFAULT
;
oprofile_time_slice
=
msecs_to_jiffies
(
TIME_SLICE_DEFAULT
);
oprofilefs_create_file
(
sb
,
root
,
"enable"
,
&
enable_fops
);
oprofilefs_create_file_perm
(
sb
,
root
,
"dump"
,
&
dump_fops
,
0666
);
oprofilefs_create_file
(
sb
,
root
,
"buffer"
,
&
event_buffer_fops
);
oprofilefs_create_ulong
(
sb
,
root
,
"buffer_size"
,
&
oprofile_buffer_size
);
oprofilefs_create_ulong
(
sb
,
root
,
"buffer_watershed"
,
&
oprofile_buffer_watershed
);
oprofilefs_create_ulong
(
sb
,
root
,
"cpu_buffer_size"
,
&
oprofile_cpu_buffer_size
);
oprofilefs_create_file
(
sb
,
root
,
"cpu_type"
,
&
cpu_type_fops
);
oprofilefs_create_file
(
sb
,
root
,
"backtrace_depth"
,
&
depth_fops
);
oprofilefs_create_file
(
sb
,
root
,
"pointer_size"
,
&
pointer_size_fops
);
oprofilefs_create_file
(
root
->
d_
sb
,
root
,
"enable"
,
&
enable_fops
);
oprofilefs_create_file_perm
(
root
->
d_
sb
,
root
,
"dump"
,
&
dump_fops
,
0666
);
oprofilefs_create_file
(
root
->
d_
sb
,
root
,
"buffer"
,
&
event_buffer_fops
);
oprofilefs_create_ulong
(
root
->
d_
sb
,
root
,
"buffer_size"
,
&
oprofile_buffer_size
);
oprofilefs_create_ulong
(
root
->
d_
sb
,
root
,
"buffer_watershed"
,
&
oprofile_buffer_watershed
);
oprofilefs_create_ulong
(
root
->
d_
sb
,
root
,
"cpu_buffer_size"
,
&
oprofile_cpu_buffer_size
);
oprofilefs_create_file
(
root
->
d_
sb
,
root
,
"cpu_type"
,
&
cpu_type_fops
);
oprofilefs_create_file
(
root
->
d_
sb
,
root
,
"backtrace_depth"
,
&
depth_fops
);
oprofilefs_create_file
(
root
->
d_
sb
,
root
,
"pointer_size"
,
&
pointer_size_fops
);
#ifdef CONFIG_OPROFILE_EVENT_MULTIPLEX
oprofilefs_create_file
(
sb
,
root
,
"time_slice"
,
&
timeout_fops
);
oprofilefs_create_file
(
root
->
d_
sb
,
root
,
"time_slice"
,
&
timeout_fops
);
#endif
oprofile_create_stats_files
(
sb
,
root
);
oprofile_create_stats_files
(
root
->
d_
sb
,
root
);
if
(
oprofile_ops
.
create_files
)
oprofile_ops
.
create_files
(
sb
,
root
);
oprofile_ops
.
create_files
(
root
->
d_
sb
,
root
);
}
drivers/oprofile/oprofilefs.c
浏览文件 @
a9e599e5
...
...
@@ -256,7 +256,7 @@ static int oprofilefs_fill_super(struct super_block *sb, void *data, int silent)
if
(
!
sb
->
s_root
)
return
-
ENOMEM
;
oprofile_create_files
(
sb
,
sb
->
s_root
);
oprofile_create_files
(
sb
->
s_root
);
// FIXME: verify kill_litter_super removes our dentries
return
0
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录