Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
d0b86480
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
d0b86480
编写于
9月 26, 2009
作者:
D
David S. Miller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sparc: Add Niagara2 HW cache event support.
Signed-off-by:
N
David S. Miller
<
davem@davemloft.net
>
上级
28e8f9be
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
88 addition
and
0 deletion
+88
-0
arch/sparc/kernel/perf_event.c
arch/sparc/kernel/perf_event.c
+88
-0
未找到文件。
arch/sparc/kernel/perf_event.c
浏览文件 @
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
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录