diff options
author | Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> | 2010-12-17 17:21:17 -0500 |
---|---|---|
committer | Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> | 2011-07-18 18:43:27 -0400 |
commit | c2ba050d2e5638774571ea0ad0375a1c17c7b04e (patch) | |
tree | 3b90b1ee94de25e9d8a4ad2dab5fd7ca39db66ad /include/trace/events/xen.h | |
parent | 847088079162a5cf8ab0d1ad1ecf7fa60c057246 (diff) |
xen/trace: add ptpage alloc/release 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 | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/include/trace/events/xen.h b/include/trace/events/xen.h index 08089e82f77e..f46fdb4afb89 100644 --- a/include/trace/events/xen.h +++ b/include/trace/events/xen.h | |||
@@ -347,6 +347,39 @@ TRACE_EVENT(xen_mmu_ptep_modify_prot_commit, | |||
347 | (int)sizeof(pteval_t) * 2, (unsigned long long)__entry->pteval) | 347 | (int)sizeof(pteval_t) * 2, (unsigned long long)__entry->pteval) |
348 | ); | 348 | ); |
349 | 349 | ||
350 | TRACE_EVENT(xen_mmu_alloc_ptpage, | ||
351 | TP_PROTO(struct mm_struct *mm, unsigned long pfn, unsigned level, bool pinned), | ||
352 | TP_ARGS(mm, pfn, level, pinned), | ||
353 | TP_STRUCT__entry( | ||
354 | __field(struct mm_struct *, mm) | ||
355 | __field(unsigned long, pfn) | ||
356 | __field(unsigned, level) | ||
357 | __field(bool, pinned) | ||
358 | ), | ||
359 | TP_fast_assign(__entry->mm = mm; | ||
360 | __entry->pfn = pfn; | ||
361 | __entry->level = level; | ||
362 | __entry->pinned = pinned), | ||
363 | TP_printk("mm %p pfn %lx level %d %spinned", | ||
364 | __entry->mm, __entry->pfn, __entry->level, | ||
365 | __entry->pinned ? "" : "un") | ||
366 | ); | ||
367 | |||
368 | TRACE_EVENT(xen_mmu_release_ptpage, | ||
369 | TP_PROTO(unsigned long pfn, unsigned level, bool pinned), | ||
370 | TP_ARGS(pfn, level, pinned), | ||
371 | TP_STRUCT__entry( | ||
372 | __field(unsigned long, pfn) | ||
373 | __field(unsigned, level) | ||
374 | __field(bool, pinned) | ||
375 | ), | ||
376 | TP_fast_assign(__entry->pfn = pfn; | ||
377 | __entry->level = level; | ||
378 | __entry->pinned = pinned), | ||
379 | TP_printk("pfn %lx level %d %spinned", | ||
380 | __entry->pfn, __entry->level, | ||
381 | __entry->pinned ? "" : "un") | ||
382 | ); | ||
350 | 383 | ||
351 | #endif /* _TRACE_XEN_H */ | 384 | #endif /* _TRACE_XEN_H */ |
352 | 385 | ||