Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
d0b86480
Commit
d0b86480
authored
Sep 26, 2009
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sparc: Add Niagara2 HW cache event support.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
28e8f9be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
88 additions
and
0 deletions
+88
-0
arch/sparc/kernel/perf_event.c
arch/sparc/kernel/perf_event.c
+88
-0
No files found.
arch/sparc/kernel/perf_event.c
View file @
d0b86480
...
...
@@ -215,8 +215,96 @@ static const struct perf_event_map *niagara2_event_map(int event_id)
return
&
niagara2_perfmon_event_map
[
event_id
];
}
static
const
cache_map_t
niagara2_cache_map
=
{
[
C
(
L1D
)]
=
{
[
C
(
OP_READ
)]
=
{
[
C
(
RESULT_ACCESS
)]
=
{
0x0208
,
PIC_UPPER
|
PIC_LOWER
,
},
[
C
(
RESULT_MISS
)]
=
{
0x0302
,
PIC_UPPER
|
PIC_LOWER
,
},
},
[
C
(
OP_WRITE
)]
=
{
[
C
(
RESULT_ACCESS
)]
=
{
0x0210
,
PIC_UPPER
|
PIC_LOWER
,
},
[
C
(
RESULT_MISS
)]
=
{
0x0302
,
PIC_UPPER
|
PIC_LOWER
,
},
},
[
C
(
OP_PREFETCH
)]
=
{
[
C
(
RESULT_ACCESS
)]
=
{
CACHE_OP_UNSUPPORTED
},
[
C
(
RESULT_MISS
)]
=
{
CACHE_OP_UNSUPPORTED
},
},
},
[
C
(
L1I
)]
=
{
[
C
(
OP_READ
)]
=
{
[
C
(
RESULT_ACCESS
)]
=
{
0x02ff
,
PIC_UPPER
|
PIC_LOWER
,
},
[
C
(
RESULT_MISS
)]
=
{
0x0301
,
PIC_UPPER
|
PIC_LOWER
,
},
},
[
C
(
OP_WRITE
)
]
=
{
[
C
(
RESULT_ACCESS
)
]
=
{
CACHE_OP_NONSENSE
},
[
C
(
RESULT_MISS
)
]
=
{
CACHE_OP_NONSENSE
},
},
[
C
(
OP_PREFETCH
)
]
=
{
[
C
(
RESULT_ACCESS
)
]
=
{
CACHE_OP_UNSUPPORTED
},
[
C
(
RESULT_MISS
)
]
=
{
CACHE_OP_UNSUPPORTED
},
},
},
[
C
(
LL
)]
=
{
[
C
(
OP_READ
)]
=
{
[
C
(
RESULT_ACCESS
)]
=
{
0x0208
,
PIC_UPPER
|
PIC_LOWER
,
},
[
C
(
RESULT_MISS
)]
=
{
0x0330
,
PIC_UPPER
|
PIC_LOWER
,
},
},
[
C
(
OP_WRITE
)]
=
{
[
C
(
RESULT_ACCESS
)]
=
{
0x0210
,
PIC_UPPER
|
PIC_LOWER
,
},
[
C
(
RESULT_MISS
)]
=
{
0x0320
,
PIC_UPPER
|
PIC_LOWER
,
},
},
[
C
(
OP_PREFETCH
)]
=
{
[
C
(
RESULT_ACCESS
)]
=
{
CACHE_OP_UNSUPPORTED
},
[
C
(
RESULT_MISS
)]
=
{
CACHE_OP_UNSUPPORTED
},
},
},
[
C
(
DTLB
)]
=
{
[
C
(
OP_READ
)]
=
{
[
C
(
RESULT_ACCESS
)]
=
{
CACHE_OP_UNSUPPORTED
},
[
C
(
RESULT_MISS
)]
=
{
0x0b08
,
PIC_UPPER
|
PIC_LOWER
,
},
},
[
C
(
OP_WRITE
)
]
=
{
[
C
(
RESULT_ACCESS
)
]
=
{
CACHE_OP_UNSUPPORTED
},
[
C
(
RESULT_MISS
)
]
=
{
CACHE_OP_UNSUPPORTED
},
},
[
C
(
OP_PREFETCH
)
]
=
{
[
C
(
RESULT_ACCESS
)
]
=
{
CACHE_OP_UNSUPPORTED
},
[
C
(
RESULT_MISS
)
]
=
{
CACHE_OP_UNSUPPORTED
},
},
},
[
C
(
ITLB
)]
=
{
[
C
(
OP_READ
)]
=
{
[
C
(
RESULT_ACCESS
)]
=
{
CACHE_OP_UNSUPPORTED
},
[
C
(
RESULT_MISS
)]
=
{
0xb04
,
PIC_UPPER
|
PIC_LOWER
,
},
},
[
C
(
OP_WRITE
)
]
=
{
[
C
(
RESULT_ACCESS
)
]
=
{
CACHE_OP_UNSUPPORTED
},
[
C
(
RESULT_MISS
)
]
=
{
CACHE_OP_UNSUPPORTED
},
},
[
C
(
OP_PREFETCH
)
]
=
{
[
C
(
RESULT_ACCESS
)
]
=
{
CACHE_OP_UNSUPPORTED
},
[
C
(
RESULT_MISS
)
]
=
{
CACHE_OP_UNSUPPORTED
},
},
},
[
C
(
BPU
)]
=
{
[
C
(
OP_READ
)]
=
{
[
C
(
RESULT_ACCESS
)]
=
{
CACHE_OP_UNSUPPORTED
},
[
C
(
RESULT_MISS
)]
=
{
CACHE_OP_UNSUPPORTED
},
},
[
C
(
OP_WRITE
)
]
=
{
[
C
(
RESULT_ACCESS
)
]
=
{
CACHE_OP_UNSUPPORTED
},
[
C
(
RESULT_MISS
)
]
=
{
CACHE_OP_UNSUPPORTED
},
},
[
C
(
OP_PREFETCH
)
]
=
{
[
C
(
RESULT_ACCESS
)
]
=
{
CACHE_OP_UNSUPPORTED
},
[
C
(
RESULT_MISS
)
]
=
{
CACHE_OP_UNSUPPORTED
},
},
},
};
static
const
struct
sparc_pmu
niagara2_pmu
=
{
.
event_map
=
niagara2_event_map
,
.
cache_map
=
&
niagara2_cache_map
,
.
max_events
=
ARRAY_SIZE
(
niagara2_perfmon_event_map
),
.
upper_shift
=
19
,
.
lower_shift
=
6
,
...
...
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