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
2b74f0cd
Commit
2b74f0cd
authored
Aug 21, 2004
by
John Levon
Committed by
Linus Torvalds
Aug 21, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] fix OProfile events with zero event values
A silly bug prevented certain events from being used.
parent
752b4f67
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
arch/arm/oprofile/op_model_xscale.c
arch/arm/oprofile/op_model_xscale.c
+2
-2
arch/i386/oprofile/op_model_athlon.c
arch/i386/oprofile/op_model_athlon.c
+1
-1
arch/i386/oprofile/op_model_p4.c
arch/i386/oprofile/op_model_p4.c
+1
-1
arch/i386/oprofile/op_model_ppro.c
arch/i386/oprofile/op_model_ppro.c
+1
-1
No files found.
arch/arm/oprofile/op_model_xscale.c
View file @
2b74f0cd
...
...
@@ -7,7 +7,7 @@
* @remark Copyright 2004 Dave Jiang <dave.jiang@intel.com>
* @remark Copyright 2004 Intel Corporation
* @remark Copyright 2004 Zwane Mwaikambo <zwane@arm.linux.org.uk>
* @remark Copyright 2004 O
p
rofile Authors
* @remark Copyright 2004 O
P
rofile Authors
*
* @remark Read the file COPYING
*
...
...
@@ -249,7 +249,7 @@ static int xscale_setup_ctrs(void)
int
i
;
for
(
i
=
CCNT
;
i
<
MAX_COUNTERS
;
i
++
)
{
if
(
counter_config
[
i
].
e
vent
)
if
(
counter_config
[
i
].
e
nabled
)
continue
;
counter_config
[
i
].
event
=
EVT_UNUSED
;
...
...
arch/i386/oprofile/op_model_athlon.c
View file @
2b74f0cd
...
...
@@ -70,7 +70,7 @@ static void athlon_setup_ctrs(struct op_msrs const * const msrs)
/* enable active counters */
for
(
i
=
0
;
i
<
NUM_COUNTERS
;
++
i
)
{
if
(
counter_config
[
i
].
e
vent
)
{
if
(
counter_config
[
i
].
e
nabled
)
{
reset_value
[
i
]
=
counter_config
[
i
].
count
;
CTR_WRITE
(
counter_config
[
i
].
count
,
msrs
,
i
);
...
...
arch/i386/oprofile/op_model_p4.c
View file @
2b74f0cd
...
...
@@ -578,7 +578,7 @@ static void p4_setup_ctrs(struct op_msrs const * const msrs)
/* setup all counters */
for
(
i
=
0
;
i
<
num_counters
;
++
i
)
{
if
(
counter_config
[
i
].
e
vent
)
{
if
(
counter_config
[
i
].
e
nabled
)
{
reset_value
[
i
]
=
counter_config
[
i
].
count
;
pmc_setup_one_p4_counter
(
i
);
CTR_WRITE
(
counter_config
[
i
].
count
,
VIRT_CTR
(
stag
,
i
));
...
...
arch/i386/oprofile/op_model_ppro.c
View file @
2b74f0cd
...
...
@@ -67,7 +67,7 @@ static void ppro_setup_ctrs(struct op_msrs const * const msrs)
/* enable active counters */
for
(
i
=
0
;
i
<
NUM_COUNTERS
;
++
i
)
{
if
(
counter_config
[
i
].
e
vent
)
{
if
(
counter_config
[
i
].
e
nabled
)
{
reset_value
[
i
]
=
counter_config
[
i
].
count
;
CTR_WRITE
(
counter_config
[
i
].
count
,
msrs
,
i
);
...
...
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