Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
40437c71
K
Kernel
项目概览
openeuler
/
Kernel
大约 1 年 前同步成功
通知
5
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
40437c71
编写于
7月 19, 2013
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
don't bother with passing superblock to oprofile_create_stats_files()
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
ef7bca14
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
14 addition
and
14 deletion
+14
-14
drivers/oprofile/oprofile_files.c
drivers/oprofile/oprofile_files.c
+1
-1
drivers/oprofile/oprofile_stats.c
drivers/oprofile/oprofile_stats.c
+12
-12
drivers/oprofile/oprofile_stats.h
drivers/oprofile/oprofile_stats.h
+1
-1
未找到文件。
drivers/oprofile/oprofile_files.c
浏览文件 @
40437c71
...
...
@@ -195,7 +195,7 @@ void oprofile_create_files(struct dentry *root)
#ifdef CONFIG_OPROFILE_EVENT_MULTIPLEX
oprofilefs_create_file
(
root
->
d_sb
,
root
,
"time_slice"
,
&
timeout_fops
);
#endif
oprofile_create_stats_files
(
root
->
d_sb
,
root
);
oprofile_create_stats_files
(
root
);
if
(
oprofile_ops
.
create_files
)
oprofile_ops
.
create_files
(
root
);
}
drivers/oprofile/oprofile_stats.c
浏览文件 @
40437c71
...
...
@@ -38,7 +38,7 @@ void oprofile_reset_stats(void)
}
void
oprofile_create_stats_files
(
struct
super_block
*
sb
,
struct
dentry
*
root
)
void
oprofile_create_stats_files
(
struct
dentry
*
root
)
{
struct
oprofile_cpu_buffer
*
cpu_buf
;
struct
dentry
*
cpudir
;
...
...
@@ -46,39 +46,39 @@ void oprofile_create_stats_files(struct super_block *sb, struct dentry *root)
char
buf
[
10
];
int
i
;
dir
=
oprofilefs_mkdir
(
sb
,
root
,
"stats"
);
dir
=
oprofilefs_mkdir
(
root
->
d_
sb
,
root
,
"stats"
);
if
(
!
dir
)
return
;
for_each_possible_cpu
(
i
)
{
cpu_buf
=
&
per_cpu
(
op_cpu_buffer
,
i
);
snprintf
(
buf
,
10
,
"cpu%d"
,
i
);
cpudir
=
oprofilefs_mkdir
(
sb
,
dir
,
buf
);
cpudir
=
oprofilefs_mkdir
(
root
->
d_
sb
,
dir
,
buf
);
/* Strictly speaking access to these ulongs is racy,
* but we can't simply lock them, and they are
* informational only.
*/
oprofilefs_create_ro_ulong
(
sb
,
cpudir
,
"sample_received"
,
oprofilefs_create_ro_ulong
(
root
->
d_
sb
,
cpudir
,
"sample_received"
,
&
cpu_buf
->
sample_received
);
oprofilefs_create_ro_ulong
(
sb
,
cpudir
,
"sample_lost_overflow"
,
oprofilefs_create_ro_ulong
(
root
->
d_
sb
,
cpudir
,
"sample_lost_overflow"
,
&
cpu_buf
->
sample_lost_overflow
);
oprofilefs_create_ro_ulong
(
sb
,
cpudir
,
"backtrace_aborted"
,
oprofilefs_create_ro_ulong
(
root
->
d_
sb
,
cpudir
,
"backtrace_aborted"
,
&
cpu_buf
->
backtrace_aborted
);
oprofilefs_create_ro_ulong
(
sb
,
cpudir
,
"sample_invalid_eip"
,
oprofilefs_create_ro_ulong
(
root
->
d_
sb
,
cpudir
,
"sample_invalid_eip"
,
&
cpu_buf
->
sample_invalid_eip
);
}
oprofilefs_create_ro_atomic
(
sb
,
dir
,
"sample_lost_no_mm"
,
oprofilefs_create_ro_atomic
(
root
->
d_
sb
,
dir
,
"sample_lost_no_mm"
,
&
oprofile_stats
.
sample_lost_no_mm
);
oprofilefs_create_ro_atomic
(
sb
,
dir
,
"sample_lost_no_mapping"
,
oprofilefs_create_ro_atomic
(
root
->
d_
sb
,
dir
,
"sample_lost_no_mapping"
,
&
oprofile_stats
.
sample_lost_no_mapping
);
oprofilefs_create_ro_atomic
(
sb
,
dir
,
"event_lost_overflow"
,
oprofilefs_create_ro_atomic
(
root
->
d_
sb
,
dir
,
"event_lost_overflow"
,
&
oprofile_stats
.
event_lost_overflow
);
oprofilefs_create_ro_atomic
(
sb
,
dir
,
"bt_lost_no_mapping"
,
oprofilefs_create_ro_atomic
(
root
->
d_
sb
,
dir
,
"bt_lost_no_mapping"
,
&
oprofile_stats
.
bt_lost_no_mapping
);
#ifdef CONFIG_OPROFILE_EVENT_MULTIPLEX
oprofilefs_create_ro_atomic
(
sb
,
dir
,
"multiplex_counter"
,
oprofilefs_create_ro_atomic
(
root
->
d_
sb
,
dir
,
"multiplex_counter"
,
&
oprofile_stats
.
multiplex_counter
);
#endif
}
drivers/oprofile/oprofile_stats.h
浏览文件 @
40437c71
...
...
@@ -29,6 +29,6 @@ struct super_block;
struct
dentry
;
/* create the stats/ dir */
void
oprofile_create_stats_files
(
struct
super_block
*
sb
,
struct
dentry
*
root
);
void
oprofile_create_stats_files
(
struct
dentry
*
root
);
#endif
/* OPROFILE_STATS_H */
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录