aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/xen
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>2010-12-20 16:15:04 -0500
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>2011-07-18 18:43:27 -0400
commitc8eed1719afb337472c5ef31ec590d549770b173 (patch)
treeead8933db533218a1c8fbd11e0d68c1bac938b11 /arch/x86/xen
parentab78f7ad2c78fb1b724b278479adec998933be36 (diff)
xen/trace: add tlb flush tracepoints
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Diffstat (limited to 'arch/x86/xen')
-rw-r--r--arch/x86/xen/mmu.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c
index 5dfa90a7ad18..c3abba17ab00 100644
--- a/arch/x86/xen/mmu.c
+++ b/arch/x86/xen/mmu.c
@@ -1222,6 +1222,8 @@ static void xen_flush_tlb(void)
1222 struct mmuext_op *op; 1222 struct mmuext_op *op;
1223 struct multicall_space mcs; 1223 struct multicall_space mcs;
1224 1224
1225 trace_xen_mmu_flush_tlb(0);
1226
1225 preempt_disable(); 1227 preempt_disable();
1226 1228
1227 mcs = xen_mc_entry(sizeof(*op)); 1229 mcs = xen_mc_entry(sizeof(*op));
@@ -1240,6 +1242,8 @@ static void xen_flush_tlb_single(unsigned long addr)
1240 struct mmuext_op *op; 1242 struct mmuext_op *op;
1241 struct multicall_space mcs; 1243 struct multicall_space mcs;
1242 1244
1245 trace_xen_mmu_flush_tlb_single(addr);
1246
1243 preempt_disable(); 1247 preempt_disable();
1244 1248
1245 mcs = xen_mc_entry(sizeof(*op)); 1249 mcs = xen_mc_entry(sizeof(*op));
@@ -1266,6 +1270,8 @@ static void xen_flush_tlb_others(const struct cpumask *cpus,
1266 } *args; 1270 } *args;
1267 struct multicall_space mcs; 1271 struct multicall_space mcs;
1268 1272
1273 trace_xen_mmu_flush_tlb_others(cpus, mm, va);
1274
1269 if (cpumask_empty(cpus)) 1275 if (cpumask_empty(cpus))
1270 return; /* nothing to do */ 1276 return; /* nothing to do */
1271 1277
@@ -1305,6 +1311,8 @@ static void __xen_write_cr3(bool kernel, unsigned long cr3)
1305 struct multicall_space mcs; 1311 struct multicall_space mcs;
1306 unsigned long mfn; 1312 unsigned long mfn;
1307 1313
1314 trace_xen_mmu_write_cr3(kernel, cr3);
1315
1308 if (cr3) 1316 if (cr3)
1309 mfn = pfn_to_mfn(PFN_DOWN(cr3)); 1317 mfn = pfn_to_mfn(PFN_DOWN(cr3));
1310 else 1318 else