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
c8eed171
Commit
c8eed171
authored
Dec 20, 2010
by
Jeremy Fitzhardinge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xen/trace: add tlb flush tracepoints
Signed-off-by:
Jeremy Fitzhardinge
<
jeremy.fitzhardinge@citrix.com
>
parent
ab78f7ad
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
0 deletions
+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
No files found.
arch/x86/xen/mmu.c
View file @
c8eed171
...
@@ -1222,6 +1222,8 @@ static void xen_flush_tlb(void)
...
@@ -1222,6 +1222,8 @@ static void xen_flush_tlb(void)
struct
mmuext_op
*
op
;
struct
mmuext_op
*
op
;
struct
multicall_space
mcs
;
struct
multicall_space
mcs
;
trace_xen_mmu_flush_tlb
(
0
);
preempt_disable
();
preempt_disable
();
mcs
=
xen_mc_entry
(
sizeof
(
*
op
));
mcs
=
xen_mc_entry
(
sizeof
(
*
op
));
...
@@ -1240,6 +1242,8 @@ static void xen_flush_tlb_single(unsigned long addr)
...
@@ -1240,6 +1242,8 @@ static void xen_flush_tlb_single(unsigned long addr)
struct
mmuext_op
*
op
;
struct
mmuext_op
*
op
;
struct
multicall_space
mcs
;
struct
multicall_space
mcs
;
trace_xen_mmu_flush_tlb_single
(
addr
);
preempt_disable
();
preempt_disable
();
mcs
=
xen_mc_entry
(
sizeof
(
*
op
));
mcs
=
xen_mc_entry
(
sizeof
(
*
op
));
...
@@ -1266,6 +1270,8 @@ static void xen_flush_tlb_others(const struct cpumask *cpus,
...
@@ -1266,6 +1270,8 @@ static void xen_flush_tlb_others(const struct cpumask *cpus,
}
*
args
;
}
*
args
;
struct
multicall_space
mcs
;
struct
multicall_space
mcs
;
trace_xen_mmu_flush_tlb_others
(
cpus
,
mm
,
va
);
if
(
cpumask_empty
(
cpus
))
if
(
cpumask_empty
(
cpus
))
return
;
/* nothing to do */
return
;
/* nothing to do */
...
@@ -1305,6 +1311,8 @@ static void __xen_write_cr3(bool kernel, unsigned long cr3)
...
@@ -1305,6 +1311,8 @@ static void __xen_write_cr3(bool kernel, unsigned long cr3)
struct
multicall_space
mcs
;
struct
multicall_space
mcs
;
unsigned
long
mfn
;
unsigned
long
mfn
;
trace_xen_mmu_write_cr3
(
kernel
,
cr3
);
if
(
cr3
)
if
(
cr3
)
mfn
=
pfn_to_mfn
(
PFN_DOWN
(
cr3
));
mfn
=
pfn_to_mfn
(
PFN_DOWN
(
cr3
));
else
else
...
...
include/trace/events/xen.h
View file @
c8eed171
...
@@ -405,6 +405,54 @@ TRACE_EVENT(xen_mmu_pgd_unpin,
...
@@ -405,6 +405,54 @@ TRACE_EVENT(xen_mmu_pgd_unpin,
TP_printk
(
"mm %p pgd %p"
,
__entry
->
mm
,
__entry
->
pgd
)
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 */
/* CPU */
TRACE_EVENT
(
xen_cpu_write_ldt_entry
,
TRACE_EVENT
(
xen_cpu_write_ldt_entry
,
TP_PROTO
(
struct
desc_struct
*
dt
,
int
entrynum
,
u64
desc
),
TP_PROTO
(
struct
desc_struct
*
dt
,
int
entrynum
,
u64
desc
),
...
...
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