aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/trace/events/vmscan.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/include/trace/events/vmscan.h b/include/trace/events/vmscan.h
index f76521ffe7df..c0552be1f50a 100644
--- a/include/trace/events/vmscan.h
+++ b/include/trace/events/vmscan.h
@@ -109,6 +109,52 @@ TRACE_EVENT(mm_vmscan_direct_reclaim_end,
109 TP_printk("nr_reclaimed=%lu", __entry->nr_reclaimed) 109 TP_printk("nr_reclaimed=%lu", __entry->nr_reclaimed)
110); 110);
111 111
112TRACE_EVENT(mm_vmscan_lru_isolate,
113
114 TP_PROTO(int order,
115 unsigned long nr_requested,
116 unsigned long nr_scanned,
117 unsigned long nr_taken,
118 unsigned long nr_lumpy_taken,
119 unsigned long nr_lumpy_dirty,
120 unsigned long nr_lumpy_failed,
121 int isolate_mode),
122
123 TP_ARGS(order, nr_requested, nr_scanned, nr_taken, nr_lumpy_taken, nr_lumpy_dirty, nr_lumpy_failed, isolate_mode),
124
125 TP_STRUCT__entry(
126 __field(int, order)
127 __field(unsigned long, nr_requested)
128 __field(unsigned long, nr_scanned)
129 __field(unsigned long, nr_taken)
130 __field(unsigned long, nr_lumpy_taken)
131 __field(unsigned long, nr_lumpy_dirty)
132 __field(unsigned long, nr_lumpy_failed)
133 __field(int, isolate_mode)
134 ),
135
136 TP_fast_assign(
137 __entry->order = order;
138 __entry->nr_requested = nr_requested;
139 __entry->nr_scanned = nr_scanned;
140 __entry->nr_taken = nr_taken;
141 __entry->nr_lumpy_taken = nr_lumpy_taken;
142 __entry->nr_lumpy_dirty = nr_lumpy_dirty;
143 __entry->nr_lumpy_failed = nr_lumpy_failed;
144 __entry->isolate_mode = isolate_mode;
145 ),
146
147 TP_printk("isolate_mode=%d order=%d nr_requested=%lu nr_scanned=%lu nr_taken=%lu contig_taken=%lu contig_dirty=%lu contig_failed=%lu",
148 __entry->isolate_mode,
149 __entry->order,
150 __entry->nr_requested,
151 __entry->nr_scanned,
152 __entry->nr_taken,
153 __entry->nr_lumpy_taken,
154 __entry->nr_lumpy_dirty,
155 __entry->nr_lumpy_failed)
156);
157
112#endif /* _TRACE_VMSCAN_H */ 158#endif /* _TRACE_VMSCAN_H */
113 159
114/* This part must be outside protection */ 160/* This part must be outside protection */