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
nexedi
linux
Commits
1dfd7b49
Commit
1dfd7b49
authored
Mar 29, 2011
by
Ingo Molnar
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'core' of
git://git.kernel.org/pub/scm/linux/kernel/git/rric/oprofile
into perf/urgent
parents
6c6804fb
914a76ca
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
arch/x86/oprofile/nmi_int.c
arch/x86/oprofile/nmi_int.c
+5
-0
arch/x86/oprofile/op_counter.h
arch/x86/oprofile/op_counter.h
+1
-0
No files found.
arch/x86/oprofile/nmi_int.c
View file @
1dfd7b49
...
...
@@ -49,6 +49,10 @@ u64 op_x86_get_ctrl(struct op_x86_model_spec const *model,
val
|=
counter_config
->
user
?
ARCH_PERFMON_EVENTSEL_USR
:
0
;
val
|=
counter_config
->
kernel
?
ARCH_PERFMON_EVENTSEL_OS
:
0
;
val
|=
(
counter_config
->
unit_mask
&
0xFF
)
<<
8
;
counter_config
->
extra
&=
(
ARCH_PERFMON_EVENTSEL_INV
|
ARCH_PERFMON_EVENTSEL_EDGE
|
ARCH_PERFMON_EVENTSEL_CMASK
);
val
|=
counter_config
->
extra
;
event
&=
model
->
event_mask
?
model
->
event_mask
:
0xFF
;
val
|=
event
&
0xFF
;
val
|=
(
event
&
0x0F00
)
<<
24
;
...
...
@@ -440,6 +444,7 @@ static int nmi_create_files(struct super_block *sb, struct dentry *root)
oprofilefs_create_ulong
(
sb
,
dir
,
"unit_mask"
,
&
counter_config
[
i
].
unit_mask
);
oprofilefs_create_ulong
(
sb
,
dir
,
"kernel"
,
&
counter_config
[
i
].
kernel
);
oprofilefs_create_ulong
(
sb
,
dir
,
"user"
,
&
counter_config
[
i
].
user
);
oprofilefs_create_ulong
(
sb
,
dir
,
"extra"
,
&
counter_config
[
i
].
extra
);
}
return
0
;
...
...
arch/x86/oprofile/op_counter.h
View file @
1dfd7b49
...
...
@@ -22,6 +22,7 @@ struct op_counter_config {
unsigned
long
kernel
;
unsigned
long
user
;
unsigned
long
unit_mask
;
unsigned
long
extra
;
};
extern
struct
op_counter_config
counter_config
[];
...
...
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