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
f77be5bb
Commit
f77be5bb
authored
Jan 11, 2003
by
Richard Henderson
Committed by
Richard Henderson
Jan 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[OPROF] Display banner message on startup.
parent
544786eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
9 deletions
+20
-9
arch/alpha/oprofile/common.c
arch/alpha/oprofile/common.c
+20
-9
No files found.
arch/alpha/oprofile/common.c
View file @
f77be5bb
...
...
@@ -151,29 +151,40 @@ static struct oprofile_operations oprof_axp_ops = {
int
__init
oprofile_arch_init
(
struct
oprofile_operations
**
ops
,
enum
oprofile_cpu
*
cpu
)
{
struct
op_axp_model
*
lmodel
=
NULL
;
const
char
*
vername
=
NULL
;
switch
(
implver
())
{
case
IMPLVER_EV4
:
model
=
&
op_model_ev4
;
lmodel
=
&
op_model_ev4
;
vername
=
"EV4"
;
break
;
case
IMPLVER_EV5
:
/* 21164PC has a slightly different set of events.
Recognize the chip by the presence of the MAX insns. */
if
(
!
amask
(
AMASK_MAX
))
model
=
&
op_model_pca56
;
else
model
=
&
op_model_ev5
;
if
(
!
amask
(
AMASK_MAX
))
{
lmodel
=
&
op_model_pca56
;
vername
=
"PCA56"
;
}
else
{
lmodel
=
&
op_model_ev5
;
vername
=
"EV5"
;
}
break
;
case
IMPLVER_EV6
:
model
=
&
op_model_ev6
;
lmodel
=
&
op_model_ev6
;
vername
=
"EV6"
;
break
;
default:
model
=
NULL
;
}
if
(
!
model
)
if
(
!
l
model
)
return
ENODEV
;
model
=
lmodel
;
*
ops
=
&
oprof_axp_ops
;
*
cpu
=
model
->
cpu
;
printk
(
KERN_INFO
"oprofile: using %s performance monitoring.
\n
"
,
vername
);
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