2 #define TRACE_SYSTEM xen
4 #if !defined(_TRACE_XEN_H) || defined(TRACE_HEADER_MULTI_READ)
25 #define DEFINE_XEN_MC_BATCH(name) \
26 DEFINE_EVENT(xen_mc__batch, name, \
27 TP_PROTO(enum paravirt_lazy_mode mode), \
44 memset(
__entry->args + nargs, 0,
sizeof(
unsigned long) * (6 - nargs));
46 TP_printk(
"op %u%s args [%lx, %lx, %lx, %lx, %lx, %lx]",
92 TP_PROTO(
unsigned mcidx,
unsigned argidx,
unsigned cbidx),
102 TP_printk(
"flushing %u hypercalls, %u arg bytes, %u callbacks",
117 TP_printk(
"extending op %u%s by %zu bytes res %s",
135 TP_printk(
"ptep %p pteval %0*llx (raw %0*llx)",
141 #define DEFINE_XEN_MMU_SET_PTE(name) \
142 DEFINE_EVENT(xen_mmu__set_pte, name, \
143 TP_PROTO(pte_t *ptep, pte_t pteval), \
144 TP_ARGS(ptep, pteval))
160 TP_printk(
"ptep %p pteval %0*llx (raw %0*llx) domid %u",
170 TP_ARGS(mm, addr, ptep, pteval),
181 TP_printk(
"mm %p addr %lx ptep %p pteval %0*llx (raw %0*llx)",
211 TP_printk(
"pmdp %p pmdval %0*llx (raw %0*llx)",
227 #if PAGETABLE_LEVELS >= 4
237 __entry->pudval = native_pud_val(pudval)),
238 TP_printk(
"pudp %p pudval %0*llx (raw %0*llx)",
246 TP_ARGS(pgdp, user_pgdp, pgdval),
253 __entry->user_pgdp = user_pgdp;
255 TP_printk(
"pgdp %p user_pgdp %p pgdval %0*llx (raw %0*llx)",
280 __entry->pudval = native_pud_val(pudval)),
281 TP_printk(
"pudp %p pudval %0*llx (raw %0*llx)",
302 TP_ARGS(mm, addr, ptep, pteval),
313 TP_printk(
"mm %p addr %lx ptep %p pteval %0*llx (raw %0*llx)",
318 #define DEFINE_XEN_MMU_PTEP_MODIFY_PROT(name) \
319 DEFINE_EVENT(xen_mmu_ptep_modify_prot, name, \
320 TP_PROTO(struct mm_struct *mm, unsigned long addr, \
321 pte_t *ptep, pte_t pteval), \
322 TP_ARGS(mm, addr, ptep, pteval))
329 TP_ARGS(mm, pfn, level, pinned),
340 TP_printk(
"mm %p pfn %lx level %d %spinned",
346 TP_PROTO(
unsigned long pfn,
unsigned level,
bool pinned),
372 #define DEFINE_XEN_MMU_PGD_EVENT(name) \
373 DEFINE_EVENT(xen_mmu_pgd, name, \
374 TP_PROTO(struct mm_struct *mm, pgd_t *pgd), \
408 unsigned long addr,
unsigned long end),
420 TP_printk(
"ncpus %d mm %p addr %lx, end %lx",
451 TP_printk(
"dt %p entrynum %d entry %016llx",
453 (
unsigned long long)
__entry->desc)
482 TP_ARGS(dt, entrynum, desc, type),
494 TP_printk(
"dt %p entrynum %d type %d desc %016llx",
496 (
unsigned long long)
__entry->desc)