Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
c8eed171
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看板
提交
c8eed171
编写于
12月 20, 2010
作者:
J
Jeremy Fitzhardinge
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xen/trace: add tlb flush tracepoints
Signed-off-by:
N
Jeremy Fitzhardinge
<
jeremy.fitzhardinge@citrix.com
>
上级
ab78f7ad
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
56 addition
and
0 deletion
+56
-0
arch/x86/xen/mmu.c
arch/x86/xen/mmu.c
+8
-0
include/trace/events/xen.h
include/trace/events/xen.h
+48
-0
未找到文件。
arch/x86/xen/mmu.c
浏览文件 @
c8eed171
...
...
@@ -1222,6 +1222,8 @@ static void xen_flush_tlb(void)
struct
mmuext_op
*
op
;
struct
multicall_space
mcs
;
trace_xen_mmu_flush_tlb
(
0
);
preempt_disable
();
mcs
=
xen_mc_entry
(
sizeof
(
*
op
));
...
...
@@ -1240,6 +1242,8 @@ static void xen_flush_tlb_single(unsigned long addr)
struct
mmuext_op
*
op
;
struct
multicall_space
mcs
;
trace_xen_mmu_flush_tlb_single
(
addr
);
preempt_disable
();
mcs
=
xen_mc_entry
(
sizeof
(
*
op
));
...
...
@@ -1266,6 +1270,8 @@ static void xen_flush_tlb_others(const struct cpumask *cpus,
}
*
args
;
struct
multicall_space
mcs
;
trace_xen_mmu_flush_tlb_others
(
cpus
,
mm
,
va
);
if
(
cpumask_empty
(
cpus
))
return
;
/* nothing to do */
...
...
@@ -1305,6 +1311,8 @@ static void __xen_write_cr3(bool kernel, unsigned long cr3)
struct
multicall_space
mcs
;
unsigned
long
mfn
;
trace_xen_mmu_write_cr3
(
kernel
,
cr3
);
if
(
cr3
)
mfn
=
pfn_to_mfn
(
PFN_DOWN
(
cr3
));
else
...
...
include/trace/events/xen.h
浏览文件 @
c8eed171
...
...
@@ -405,6 +405,54 @@ TRACE_EVENT(xen_mmu_pgd_unpin,
TP_printk
(
"mm %p pgd %p"
,
__entry
->
mm
,
__entry
->
pgd
)
);
TRACE_EVENT
(
xen_mmu_flush_tlb
,
TP_PROTO
(
int
x
),
TP_ARGS
(
x
),
TP_STRUCT__entry
(
__array
(
char
,
x
,
0
)),
TP_fast_assign
((
void
)
x
),
TP_printk
(
"%s"
,
""
)
);
TRACE_EVENT
(
xen_mmu_flush_tlb_single
,
TP_PROTO
(
unsigned
long
addr
),
TP_ARGS
(
addr
),
TP_STRUCT__entry
(
__field
(
unsigned
long
,
addr
)
),
TP_fast_assign
(
__entry
->
addr
=
addr
),
TP_printk
(
"addr %lx"
,
__entry
->
addr
)
);
TRACE_EVENT
(
xen_mmu_flush_tlb_others
,
TP_PROTO
(
const
struct
cpumask
*
cpus
,
struct
mm_struct
*
mm
,
unsigned
long
addr
),
TP_ARGS
(
cpus
,
mm
,
addr
),
TP_STRUCT__entry
(
__field
(
unsigned
,
ncpus
)
__field
(
struct
mm_struct
*
,
mm
)
__field
(
unsigned
long
,
addr
)
),
TP_fast_assign
(
__entry
->
ncpus
=
cpumask_weight
(
cpus
);
__entry
->
mm
=
mm
;
__entry
->
addr
=
addr
),
TP_printk
(
"ncpus %d mm %p addr %lx"
,
__entry
->
ncpus
,
__entry
->
mm
,
__entry
->
addr
)
);
TRACE_EVENT
(
xen_mmu_write_cr3
,
TP_PROTO
(
bool
kernel
,
unsigned
long
cr3
),
TP_ARGS
(
kernel
,
cr3
),
TP_STRUCT__entry
(
__field
(
bool
,
kernel
)
__field
(
unsigned
long
,
cr3
)
),
TP_fast_assign
(
__entry
->
kernel
=
kernel
;
__entry
->
cr3
=
cr3
),
TP_printk
(
"%s cr3 %lx"
,
__entry
->
kernel
?
"kernel"
:
"user"
,
__entry
->
cr3
)
);
/* CPU */
TRACE_EVENT
(
xen_cpu_write_ldt_entry
,
TP_PROTO
(
struct
desc_struct
*
dt
,
int
entrynum
,
u64
desc
),
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录