Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
2d55a478
Commit
2d55a478
authored
Jul 18, 2008
by
Robert Richter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OProfile: Rework string handling in setup_ibs_files()
Signed-off-by:
Robert Richter
<
robert.richter@amd.com
>
parent
e2fee276
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
arch/x86/oprofile/op_model_amd.c
arch/x86/oprofile/op_model_amd.c
+11
-12
No files found.
arch/x86/oprofile/op_model_amd.c
View file @
2d55a478
...
@@ -473,7 +473,6 @@ static int (*create_arch_files)(struct super_block * sb, struct dentry * root);
...
@@ -473,7 +473,6 @@ static int (*create_arch_files)(struct super_block * sb, struct dentry * root);
static
int
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
];
struct
dentry
*
dir
;
struct
dentry
*
dir
;
int
ret
=
0
;
int
ret
=
0
;
...
@@ -495,22 +494,22 @@ static int setup_ibs_files(struct super_block * sb, struct dentry * root)
...
@@ -495,22 +494,22 @@ static int setup_ibs_files(struct super_block * sb, struct dentry * root)
ibs_config
.
max_cnt_op
=
250000
;
ibs_config
.
max_cnt_op
=
250000
;
ibs_config
.
op_enabled
=
0
;
ibs_config
.
op_enabled
=
0
;
ibs_config
.
dispatched_ops
=
1
;
ibs_config
.
dispatched_ops
=
1
;
snprintf
(
buf
,
sizeof
(
buf
),
"ibs_fetch"
);
dir
=
oprofilefs_mkdir
(
sb
,
root
,
buf
);
dir
=
oprofilefs_mkdir
(
sb
,
root
,
"ibs_fetch"
);
oprofilefs_create_ulong
(
sb
,
dir
,
"rand_enable"
,
&
ibs_config
.
rand_en
);
oprofilefs_create_ulong
(
sb
,
dir
,
"enable"
,
oprofilefs_create_ulong
(
sb
,
dir
,
"enable"
,
&
ibs_config
.
fetch_enabled
);
&
ibs_config
.
fetch_enabled
);
oprofilefs_create_ulong
(
sb
,
dir
,
"max_count"
,
oprofilefs_create_ulong
(
sb
,
dir
,
"max_count"
,
&
ibs_config
.
max_cnt_fetch
);
&
ibs_config
.
max_cnt_fetch
);
snprintf
(
buf
,
sizeof
(
buf
),
"ibs_uops"
);
oprofilefs_create_ulong
(
sb
,
dir
,
"rand_enable"
,
dir
=
oprofilefs_mkdir
(
sb
,
root
,
buf
);
&
ibs_config
.
rand_en
);
dir
=
oprofilefs_mkdir
(
sb
,
root
,
"ibs_uops"
);
oprofilefs_create_ulong
(
sb
,
dir
,
"enable"
,
oprofilefs_create_ulong
(
sb
,
dir
,
"enable"
,
&
ibs_config
.
op_enabled
);
&
ibs_config
.
op_enabled
);
oprofilefs_create_ulong
(
sb
,
dir
,
"max_count"
,
oprofilefs_create_ulong
(
sb
,
dir
,
"max_count"
,
&
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
;
return
0
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment