spi-topcliff-pch: add recovery processing in case wait-event timeout
[zen-stable.git] / include / trace / events / compaction.h
blob388bcdd26d46a855af7356d8fa0929d31f237faf
1 #undef TRACE_SYSTEM
2 #define TRACE_SYSTEM compaction
4 #if !defined(_TRACE_COMPACTION_H) || defined(TRACE_HEADER_MULTI_READ)
5 #define _TRACE_COMPACTION_H
7 #include <linux/types.h>
8 #include <linux/tracepoint.h>
9 #include "gfpflags.h"
11 DECLARE_EVENT_CLASS(mm_compaction_isolate_template,
13 TP_PROTO(unsigned long nr_scanned,
14 unsigned long nr_taken),
16 TP_ARGS(nr_scanned, nr_taken),
18 TP_STRUCT__entry(
19 __field(unsigned long, nr_scanned)
20 __field(unsigned long, nr_taken)
23 TP_fast_assign(
24 __entry->nr_scanned = nr_scanned;
25 __entry->nr_taken = nr_taken;
28 TP_printk("nr_scanned=%lu nr_taken=%lu",
29 __entry->nr_scanned,
30 __entry->nr_taken)
33 DEFINE_EVENT(mm_compaction_isolate_template, mm_compaction_isolate_migratepages,
35 TP_PROTO(unsigned long nr_scanned,
36 unsigned long nr_taken),
38 TP_ARGS(nr_scanned, nr_taken)
41 DEFINE_EVENT(mm_compaction_isolate_template, mm_compaction_isolate_freepages,
42 TP_PROTO(unsigned long nr_scanned,
43 unsigned long nr_taken),
45 TP_ARGS(nr_scanned, nr_taken)
48 TRACE_EVENT(mm_compaction_migratepages,
50 TP_PROTO(unsigned long nr_migrated,
51 unsigned long nr_failed),
53 TP_ARGS(nr_migrated, nr_failed),
55 TP_STRUCT__entry(
56 __field(unsigned long, nr_migrated)
57 __field(unsigned long, nr_failed)
60 TP_fast_assign(
61 __entry->nr_migrated = nr_migrated;
62 __entry->nr_failed = nr_failed;
65 TP_printk("nr_migrated=%lu nr_failed=%lu",
66 __entry->nr_migrated,
67 __entry->nr_failed)
71 #endif /* _TRACE_COMPACTION_H */
73 /* This part must be outside protection */
74 #include <trace/define_trace.h>