diff options
author | Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> | 2010-12-20 16:15:04 -0500 |
---|---|---|
committer | Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> | 2011-07-18 18:43:27 -0400 |
commit | c8eed1719afb337472c5ef31ec590d549770b173 (patch) | |
tree | ead8933db533218a1c8fbd11e0d68c1bac938b11 /include/trace/events/xen.h | |
parent | ab78f7ad2c78fb1b724b278479adec998933be36 (diff) |
xen/trace: add tlb flush tracepoints
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Diffstat (limited to 'include/trace/events/xen.h')
-rw-r--r-- | include/trace/events/xen.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/include/trace/events/xen.h b/include/trace/events/xen.h index 1dda50834f9c..1f71f2297c00 100644 --- a/include/trace/events/xen.h +++ b/include/trace/events/xen.h | |||
@@ -405,6 +405,54 @@ TRACE_EVENT(xen_mmu_pgd_unpin, | |||
405 | TP_printk("mm %p pgd %p", __entry->mm, __entry->pgd) | 405 | TP_printk("mm %p pgd %p", __entry->mm, __entry->pgd) |
406 | ); | 406 | ); |
407 | 407 | ||
408 | TRACE_EVENT(xen_mmu_flush_tlb, | ||
409 | TP_PROTO(int x), | ||
410 | TP_ARGS(x), | ||
411 | TP_STRUCT__entry(__array(char, x, 0)), | ||
412 | TP_fast_assign((void)x), | ||
413 | TP_printk("%s", "") | ||
414 | ); | ||
415 | |||
416 | TRACE_EVENT(xen_mmu_flush_tlb_single, | ||
417 | TP_PROTO(unsigned long addr), | ||
418 | TP_ARGS(addr), | ||
419 | TP_STRUCT__entry( | ||
420 | __field(unsigned long, addr) | ||
421 | ), | ||
422 | TP_fast_assign(__entry->addr = addr), | ||
423 | TP_printk("addr %lx", __entry->addr) | ||
424 | ); | ||
425 | |||
426 | TRACE_EVENT(xen_mmu_flush_tlb_others, | ||
427 | TP_PROTO(const struct cpumask *cpus, struct mm_struct *mm, | ||
428 | unsigned long addr), | ||
429 | TP_ARGS(cpus, mm, addr), | ||
430 | TP_STRUCT__entry( | ||
431 | __field(unsigned, ncpus) | ||
432 | __field(struct mm_struct *, mm) | ||
433 | __field(unsigned long, addr) | ||
434 | ), | ||
435 | TP_fast_assign(__entry->ncpus = cpumask_weight(cpus); | ||
436 | __entry->mm = mm; | ||
437 | __entry->addr = addr), | ||
438 | TP_printk("ncpus %d mm %p addr %lx", | ||
439 | __entry->ncpus, __entry->mm, __entry->addr) | ||
440 | ); | ||
441 | |||
442 | TRACE_EVENT(xen_mmu_write_cr3, | ||
443 | TP_PROTO(bool kernel, unsigned long cr3), | ||
444 | TP_ARGS(kernel, cr3), | ||
445 | TP_STRUCT__entry( | ||
446 | __field(bool, kernel) | ||
447 | __field(unsigned long, cr3) | ||
448 | ), | ||
449 | TP_fast_assign(__entry->kernel = kernel; | ||
450 | __entry->cr3 = cr3), | ||
451 | TP_printk("%s cr3 %lx", | ||
452 | __entry->kernel ? "kernel" : "user", __entry->cr3) | ||
453 | ); | ||
454 | |||
455 | |||
408 | /* CPU */ | 456 | /* CPU */ |
409 | TRACE_EVENT(xen_cpu_write_ldt_entry, | 457 | TRACE_EVENT(xen_cpu_write_ldt_entry, |
410 | TP_PROTO(struct desc_struct *dt, int entrynum, u64 desc), | 458 | TP_PROTO(struct desc_struct *dt, int entrynum, u64 desc), |