提交 fc2bd734 编写于 作者: R Robert Richter 提交者: Ingo Molnar

OProfile: fix setup_ibs_files() function interface

Signed-off-by: NRobert Richter <robert.richter@amd.com>
Cc: oprofile-list <oprofile-list@lists.sourceforge.net>
Cc: Barry Kasindorf <barry.kasindorf@amd.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 ebb535de
...@@ -446,13 +446,13 @@ static void clear_ibs_nmi(void) ...@@ -446,13 +446,13 @@ static void clear_ibs_nmi(void)
on_each_cpu(apic_clear_ibs_nmi_per_cpu, NULL, 1); on_each_cpu(apic_clear_ibs_nmi_per_cpu, NULL, 1);
} }
static void setup_ibs_files(struct super_block *sb, struct dentry *root) static int setup_ibs_files(struct super_block * sb, struct dentry * root)
{ {
char buf[12]; char buf[12];
struct dentry *dir; struct dentry *dir;
if (!ibs_allowed) if (!ibs_allowed)
return; return 0;
/* setup some reasonable defaults */ /* setup some reasonable defaults */
ibs_config.max_cnt_fetch = 250000; ibs_config.max_cnt_fetch = 250000;
...@@ -476,6 +476,8 @@ static void setup_ibs_files(struct super_block *sb, struct dentry *root) ...@@ -476,6 +476,8 @@ static void setup_ibs_files(struct super_block *sb, struct dentry *root)
&ibs_config.max_cnt_op); &ibs_config.max_cnt_op);
oprofilefs_create_ulong(sb, dir, "dispatched_ops", oprofilefs_create_ulong(sb, dir, "dispatched_ops",
&ibs_config.dispatched_ops); &ibs_config.dispatched_ops);
return 0;
} }
static int op_amd_init(struct oprofile_operations *ops) static int op_amd_init(struct oprofile_operations *ops)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册