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
0a8a4767
Commit
0a8a4767
authored
Jan 07, 2015
by
Vineet Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARC: perf: support cache hit/miss ratio
Signed-off-by:
Vineet Gupta
<
vgupta@synopsys.com
>
parent
bde80c23
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
arch/arc/include/asm/perf_event.h
arch/arc/include/asm/perf_event.h
+12
-5
No files found.
arch/arc/include/asm/perf_event.h
View file @
0a8a4767
...
@@ -54,7 +54,10 @@ struct arc_reg_cc_build {
...
@@ -54,7 +54,10 @@ struct arc_reg_cc_build {
#define PERF_COUNT_ARC_BPOK (PERF_COUNT_HW_MAX + 3)
#define PERF_COUNT_ARC_BPOK (PERF_COUNT_HW_MAX + 3)
#define PERF_COUNT_ARC_EDTLB (PERF_COUNT_HW_MAX + 4)
#define PERF_COUNT_ARC_EDTLB (PERF_COUNT_HW_MAX + 4)
#define PERF_COUNT_ARC_EITLB (PERF_COUNT_HW_MAX + 5)
#define PERF_COUNT_ARC_EITLB (PERF_COUNT_HW_MAX + 5)
#define PERF_COUNT_ARC_HW_MAX (PERF_COUNT_HW_MAX + 6)
#define PERF_COUNT_ARC_LDC (PERF_COUNT_HW_MAX + 6)
#define PERF_COUNT_ARC_STC (PERF_COUNT_HW_MAX + 7)
#define PERF_COUNT_ARC_HW_MAX (PERF_COUNT_HW_MAX + 8)
/*
/*
* Some ARC pct quirks:
* Some ARC pct quirks:
...
@@ -96,6 +99,9 @@ static const char * const arc_pmu_ev_hw_map[] = {
...
@@ -96,6 +99,9 @@ static const char * const arc_pmu_ev_hw_map[] = {
[
PERF_COUNT_ARC_BPOK
]
=
"bpok"
,
/* NP-NT, PT-T, PNT-NT */
[
PERF_COUNT_ARC_BPOK
]
=
"bpok"
,
/* NP-NT, PT-T, PNT-NT */
[
PERF_COUNT_HW_BRANCH_MISSES
]
=
"bpfail"
,
/* NP-T, PT-NT, PNT-T */
[
PERF_COUNT_HW_BRANCH_MISSES
]
=
"bpfail"
,
/* NP-T, PT-NT, PNT-T */
[
PERF_COUNT_ARC_LDC
]
=
"imemrdc"
,
/* Instr: mem read cached */
[
PERF_COUNT_ARC_STC
]
=
"imemwrc"
,
/* Instr: mem write cached */
[
PERF_COUNT_ARC_DCLM
]
=
"dclm"
,
/* D-cache Load Miss */
[
PERF_COUNT_ARC_DCLM
]
=
"dclm"
,
/* D-cache Load Miss */
[
PERF_COUNT_ARC_DCSM
]
=
"dcsm"
,
/* D-cache Store Miss */
[
PERF_COUNT_ARC_DCSM
]
=
"dcsm"
,
/* D-cache Store Miss */
[
PERF_COUNT_ARC_ICM
]
=
"icm"
,
/* I-cache Miss */
[
PERF_COUNT_ARC_ICM
]
=
"icm"
,
/* I-cache Miss */
...
@@ -109,11 +115,11 @@ static const char * const arc_pmu_ev_hw_map[] = {
...
@@ -109,11 +115,11 @@ static const char * const arc_pmu_ev_hw_map[] = {
static
const
unsigned
arc_pmu_cache_map
[
C
(
MAX
)][
C
(
OP_MAX
)][
C
(
RESULT_MAX
)]
=
{
static
const
unsigned
arc_pmu_cache_map
[
C
(
MAX
)][
C
(
OP_MAX
)][
C
(
RESULT_MAX
)]
=
{
[
C
(
L1D
)]
=
{
[
C
(
L1D
)]
=
{
[
C
(
OP_READ
)]
=
{
[
C
(
OP_READ
)]
=
{
[
C
(
RESULT_ACCESS
)]
=
CACHE_OP_UNSUPPORTED
,
[
C
(
RESULT_ACCESS
)]
=
PERF_COUNT_ARC_LDC
,
[
C
(
RESULT_MISS
)]
=
PERF_COUNT_ARC_DCLM
,
[
C
(
RESULT_MISS
)]
=
PERF_COUNT_ARC_DCLM
,
},
},
[
C
(
OP_WRITE
)]
=
{
[
C
(
OP_WRITE
)]
=
{
[
C
(
RESULT_ACCESS
)]
=
CACHE_OP_UNSUPPORTED
,
[
C
(
RESULT_ACCESS
)]
=
PERF_COUNT_ARC_STC
,
[
C
(
RESULT_MISS
)]
=
PERF_COUNT_ARC_DCSM
,
[
C
(
RESULT_MISS
)]
=
PERF_COUNT_ARC_DCSM
,
},
},
[
C
(
OP_PREFETCH
)]
=
{
[
C
(
OP_PREFETCH
)]
=
{
...
@@ -123,7 +129,7 @@ static const unsigned arc_pmu_cache_map[C(MAX)][C(OP_MAX)][C(RESULT_MAX)] = {
...
@@ -123,7 +129,7 @@ static const unsigned arc_pmu_cache_map[C(MAX)][C(OP_MAX)][C(RESULT_MAX)] = {
},
},
[
C
(
L1I
)]
=
{
[
C
(
L1I
)]
=
{
[
C
(
OP_READ
)]
=
{
[
C
(
OP_READ
)]
=
{
[
C
(
RESULT_ACCESS
)]
=
CACHE_OP_UNSUPPORTED
,
[
C
(
RESULT_ACCESS
)]
=
PERF_COUNT_HW_INSTRUCTIONS
,
[
C
(
RESULT_MISS
)]
=
PERF_COUNT_ARC_ICM
,
[
C
(
RESULT_MISS
)]
=
PERF_COUNT_ARC_ICM
,
},
},
[
C
(
OP_WRITE
)]
=
{
[
C
(
OP_WRITE
)]
=
{
...
@@ -151,9 +157,10 @@ static const unsigned arc_pmu_cache_map[C(MAX)][C(OP_MAX)][C(RESULT_MAX)] = {
...
@@ -151,9 +157,10 @@ static const unsigned arc_pmu_cache_map[C(MAX)][C(OP_MAX)][C(RESULT_MAX)] = {
},
},
[
C
(
DTLB
)]
=
{
[
C
(
DTLB
)]
=
{
[
C
(
OP_READ
)]
=
{
[
C
(
OP_READ
)]
=
{
[
C
(
RESULT_ACCESS
)]
=
CACHE_OP_UNSUPPORTED
,
[
C
(
RESULT_ACCESS
)]
=
PERF_COUNT_ARC_LDC
,
[
C
(
RESULT_MISS
)]
=
PERF_COUNT_ARC_EDTLB
,
[
C
(
RESULT_MISS
)]
=
PERF_COUNT_ARC_EDTLB
,
},
},
/* DTLB LD/ST Miss not segregated by h/w*/
[
C
(
OP_WRITE
)]
=
{
[
C
(
OP_WRITE
)]
=
{
[
C
(
RESULT_ACCESS
)]
=
CACHE_OP_UNSUPPORTED
,
[
C
(
RESULT_ACCESS
)]
=
CACHE_OP_UNSUPPORTED
,
[
C
(
RESULT_MISS
)]
=
CACHE_OP_UNSUPPORTED
,
[
C
(
RESULT_MISS
)]
=
CACHE_OP_UNSUPPORTED
,
...
...
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