Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
c2ba050d
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看板
提交
c2ba050d
编写于
12月 17, 2010
作者:
J
Jeremy Fitzhardinge
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xen/trace: add ptpage alloc/release tracepoints
Signed-off-by:
N
Jeremy Fitzhardinge
<
jeremy.fitzhardinge@citrix.com
>
上级
84708807
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
41 addition
and
2 deletion
+41
-2
arch/x86/xen/mmu.c
arch/x86/xen/mmu.c
+8
-2
include/trace/events/xen.h
include/trace/events/xen.h
+33
-0
未找到文件。
arch/x86/xen/mmu.c
浏览文件 @
c2ba050d
...
...
@@ -1478,8 +1478,11 @@ static void __init xen_release_pmd_init(unsigned long pfn)
static
void
xen_alloc_ptpage
(
struct
mm_struct
*
mm
,
unsigned
long
pfn
,
unsigned
level
)
{
struct
page
*
page
=
pfn_to_page
(
pfn
);
int
pinned
=
PagePinned
(
virt_to_page
(
mm
->
pgd
));
trace_xen_mmu_alloc_ptpage
(
mm
,
pfn
,
level
,
pinned
);
if
(
PagePinned
(
virt_to_page
(
mm
->
pgd
))
)
{
if
(
pinned
)
{
SetPagePinned
(
page
);
if
(
!
PageHighMem
(
page
))
{
...
...
@@ -1508,8 +1511,11 @@ static void xen_alloc_pmd(struct mm_struct *mm, unsigned long pfn)
static
void
xen_release_ptpage
(
unsigned
long
pfn
,
unsigned
level
)
{
struct
page
*
page
=
pfn_to_page
(
pfn
);
bool
pinned
=
PagePinned
(
page
);
if
(
PagePinned
(
page
))
{
trace_xen_mmu_release_ptpage
(
pfn
,
level
,
pinned
);
if
(
pinned
)
{
if
(
!
PageHighMem
(
page
))
{
if
(
level
==
PT_PTE
&&
USE_SPLIT_PTLOCKS
)
pin_pagetable_pfn
(
MMUEXT_UNPIN_TABLE
,
pfn
);
...
...
include/trace/events/xen.h
浏览文件 @
c2ba050d
...
...
@@ -347,6 +347,39 @@ TRACE_EVENT(xen_mmu_ptep_modify_prot_commit,
(
int
)
sizeof
(
pteval_t
)
*
2
,
(
unsigned
long
long
)
__entry
->
pteval
)
);
TRACE_EVENT
(
xen_mmu_alloc_ptpage
,
TP_PROTO
(
struct
mm_struct
*
mm
,
unsigned
long
pfn
,
unsigned
level
,
bool
pinned
),
TP_ARGS
(
mm
,
pfn
,
level
,
pinned
),
TP_STRUCT__entry
(
__field
(
struct
mm_struct
*
,
mm
)
__field
(
unsigned
long
,
pfn
)
__field
(
unsigned
,
level
)
__field
(
bool
,
pinned
)
),
TP_fast_assign
(
__entry
->
mm
=
mm
;
__entry
->
pfn
=
pfn
;
__entry
->
level
=
level
;
__entry
->
pinned
=
pinned
),
TP_printk
(
"mm %p pfn %lx level %d %spinned"
,
__entry
->
mm
,
__entry
->
pfn
,
__entry
->
level
,
__entry
->
pinned
?
""
:
"un"
)
);
TRACE_EVENT
(
xen_mmu_release_ptpage
,
TP_PROTO
(
unsigned
long
pfn
,
unsigned
level
,
bool
pinned
),
TP_ARGS
(
pfn
,
level
,
pinned
),
TP_STRUCT__entry
(
__field
(
unsigned
long
,
pfn
)
__field
(
unsigned
,
level
)
__field
(
bool
,
pinned
)
),
TP_fast_assign
(
__entry
->
pfn
=
pfn
;
__entry
->
level
=
level
;
__entry
->
pinned
=
pinned
),
TP_printk
(
"pfn %lx level %d %spinned"
,
__entry
->
pfn
,
__entry
->
level
,
__entry
->
pinned
?
""
:
"un"
)
);
#endif
/* _TRACE_XEN_H */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录