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
8007f78e
Commit
8007f78e
authored
Feb 18, 2003
by
Richard Henderson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[OPROF] Update for change to cpu_type interface.
parent
b997d2a0
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
23 deletions
+16
-23
arch/alpha/oprofile/common.c
arch/alpha/oprofile/common.c
+10
-17
arch/alpha/oprofile/op_impl.h
arch/alpha/oprofile/op_impl.h
+1
-1
arch/alpha/oprofile/op_model_ev4.c
arch/alpha/oprofile/op_model_ev4.c
+1
-1
arch/alpha/oprofile/op_model_ev5.c
arch/alpha/oprofile/op_model_ev5.c
+2
-2
arch/alpha/oprofile/op_model_ev6.c
arch/alpha/oprofile/op_model_ev6.c
+1
-1
arch/alpha/oprofile/op_model_ev67.c
arch/alpha/oprofile/op_model_ev67.c
+1
-1
No files found.
arch/alpha/oprofile/common.c
View file @
8007f78e
...
...
@@ -143,53 +143,46 @@ static struct oprofile_operations oprof_axp_ops = {
.
setup
=
op_axp_setup
,
.
shutdown
=
op_axp_shutdown
,
.
start
=
op_axp_start
,
.
stop
=
op_axp_stop
.
stop
=
op_axp_stop
,
.
cpu_type
=
NULL
/* To be filled in below. */
};
int
__init
oprofile_arch_init
(
struct
oprofile_operations
**
ops
,
enum
oprofile_cpu
*
cpu
)
oprofile_arch_init
(
struct
oprofile_operations
**
ops
)
{
struct
op_axp_model
*
lmodel
=
NULL
;
const
char
*
vername
=
NULL
;
switch
(
implver
())
{
case
IMPLVER_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
))
{
if
(
!
amask
(
AMASK_MAX
))
lmodel
=
&
op_model_pca56
;
vername
=
"PCA56"
;
}
else
{
else
lmodel
=
&
op_model_ev5
;
vername
=
"EV5"
;
}
break
;
case
IMPLVER_EV6
:
/* 21264A supports ProfileMe.
Recognize the chip by the presence of the CIX insns. */
if
(
!
amask
(
AMASK_CIX
))
{
if
(
!
amask
(
AMASK_CIX
))
lmodel
=
&
op_model_ev67
;
vername
=
"EV67"
;
}
else
{
else
lmodel
=
&
op_model_ev6
;
vername
=
"EV6"
;
}
break
;
}
if
(
!
lmodel
)
return
ENODEV
;
model
=
lmodel
;
oprof_axp_ops
.
cpu_type
=
lmodel
->
cpu_type
;
*
ops
=
&
oprof_axp_ops
;
*
cpu
=
model
->
cpu
;
printk
(
KERN_INFO
"oprofile: using %s performance monitoring.
\n
"
,
vernam
e
);
lmodel
->
cpu_typ
e
);
return
0
;
}
arch/alpha/oprofile/op_impl.h
View file @
8007f78e
...
...
@@ -47,7 +47,7 @@ struct op_axp_model {
void
(
*
reset_ctr
)
(
struct
op_register_config
*
,
unsigned
long
);
void
(
*
handle_interrupt
)
(
unsigned
long
,
struct
pt_regs
*
,
struct
op_counter_config
*
);
enum
oprofile_cpu
cpu
;
char
*
cpu_type
;
unsigned
char
num_counters
;
unsigned
char
can_set_proc_mode
;
};
...
...
arch/alpha/oprofile/op_model_ev4.c
View file @
8007f78e
...
...
@@ -110,7 +110,7 @@ struct op_axp_model op_model_ev4 = {
.
cpu_setup
=
ev4_cpu_setup
,
.
reset_ctr
=
NULL
,
.
handle_interrupt
=
ev4_handle_interrupt
,
.
cpu
=
OPROFILE_CPU_AXP_EV4
,
.
cpu
_type
=
"alpha/ev4"
,
.
num_counters
=
2
,
.
can_set_proc_mode
=
0
,
};
arch/alpha/oprofile/op_model_ev5.c
View file @
8007f78e
...
...
@@ -195,7 +195,7 @@ struct op_axp_model op_model_ev5 = {
.
cpu_setup
=
ev5_cpu_setup
,
.
reset_ctr
=
ev5_reset_ctr
,
.
handle_interrupt
=
ev5_handle_interrupt
,
.
cpu
=
OPROFILE_CPU_AXP_EV5
,
.
cpu
=
"alpha/ev5"
,
.
num_counters
=
3
,
.
can_set_proc_mode
=
1
,
};
...
...
@@ -205,7 +205,7 @@ struct op_axp_model op_model_pca56 = {
.
cpu_setup
=
ev5_cpu_setup
,
.
reset_ctr
=
ev5_reset_ctr
,
.
handle_interrupt
=
ev5_handle_interrupt
,
.
cpu
=
OPROFILE_CPU_AXP_PCA56
,
.
cpu
=
"alpha/pca56"
,
.
num_counters
=
3
,
.
can_set_proc_mode
=
1
,
};
arch/alpha/oprofile/op_model_ev6.c
View file @
8007f78e
...
...
@@ -97,7 +97,7 @@ struct op_axp_model op_model_ev6 = {
.
cpu_setup
=
ev6_cpu_setup
,
.
reset_ctr
=
ev6_reset_ctr
,
.
handle_interrupt
=
ev6_handle_interrupt
,
.
cpu
=
OPROFILE_CPU_AXP_EV6
,
.
cpu
=
"alpha/ev6"
,
.
num_counters
=
2
,
.
can_set_proc_mode
=
0
,
};
arch/alpha/oprofile/op_model_ev67.c
View file @
8007f78e
...
...
@@ -257,7 +257,7 @@ struct op_axp_model op_model_ev67 = {
.
cpu_setup
=
ev67_cpu_setup
,
.
reset_ctr
=
ev67_reset_ctr
,
.
handle_interrupt
=
ev67_handle_interrupt
,
.
cpu
=
OPROFILE_CPU_AXP_EV67
,
.
cpu
=
"alpha/ev67"
,
.
num_counters
=
20
,
.
can_set_proc_mode
=
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