1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #define TRACE_SYSTEM mm_vmscan
5 #if !defined(LTTNG_TRACE_MM_VMSCAN_H) || defined(TRACE_HEADER_MULTI_READ)
6 #define LTTNG_TRACE_MM_VMSCAN_H
8 #include <lttng/tracepoint-event.h>
9 #include <linux/types.h>
11 #include <linux/memcontrol.h>
12 #include <lttng/kernel-version.h>
14 #ifndef _TRACE_VMSCAN_DEF
15 #define _TRACE_VMSCAN_DEF
16 #define RECLAIM_WB_ANON 0x0001u
17 #define RECLAIM_WB_FILE 0x0002u
18 #define RECLAIM_WB_MIXED 0x0010u
19 #define RECLAIM_WB_SYNC 0x0004u /* Unused, all reclaim async */
20 #define RECLAIM_WB_ASYNC 0x0008u
23 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,2,0) || \
24 LTTNG_RHEL_KERNEL_RANGE(4,18,0,305,0,0, 4,19,0,0,0,0))
26 #include <linux/mm_inline.h>
28 #define trace_reclaim_flags(file) ( \
29 (file ? RECLAIM_WB_FILE : RECLAIM_WB_ANON) | \
33 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,5,0))
35 #include <linux/mm_inline.h>
37 #define trace_reclaim_flags(page) ( \
38 (page_is_file_cache(page) ? RECLAIM_WB_FILE : RECLAIM_WB_ANON) | \
42 #define trace_shrink_flags(file) \
44 (file ? RECLAIM_WB_FILE : RECLAIM_WB_ANON) | \
50 LTTNG_TRACEPOINT_EVENT(mm_vmscan_kswapd_sleep
,
57 ctf_integer(int, nid
, nid
)
61 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,8,0))
63 LTTNG_TRACEPOINT_EVENT(mm_vmscan_kswapd_wake
,
65 TP_PROTO(int nid
, int zid
, int order
),
67 TP_ARGS(nid
, zid
, order
),
70 ctf_integer(int, nid
, nid
)
71 ctf_integer(int, zid
, zid
)
72 ctf_integer(int, order
, order
)
78 LTTNG_TRACEPOINT_EVENT(mm_vmscan_kswapd_wake
,
80 TP_PROTO(int nid
, int order
),
85 ctf_integer(int, nid
, nid
)
86 ctf_integer(int, order
, order
)
92 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,17,0))
93 LTTNG_TRACEPOINT_EVENT(mm_vmscan_wakeup_kswapd
,
95 TP_PROTO(int nid
, int zid
, int order
, gfp_t gfp_flags
),
97 TP_ARGS(nid
, zid
, order
, gfp_flags
),
100 ctf_integer(int, nid
, nid
)
101 ctf_integer(int, zid
, zid
)
102 ctf_integer(int, order
, order
)
103 ctf_integer(gfp_t
, gfp_flags
, gfp_flags
)
107 LTTNG_TRACEPOINT_EVENT(mm_vmscan_wakeup_kswapd
,
109 TP_PROTO(int nid
, int zid
, int order
),
111 TP_ARGS(nid
, zid
, order
),
114 ctf_integer(int, nid
, nid
)
115 ctf_integer(int, zid
, zid
)
116 ctf_integer(int, order
, order
)
121 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,2,0) || \
122 LTTNG_RHEL_KERNEL_RANGE(4,18,0,305,0,0, 4,19,0,0,0,0))
124 LTTNG_TRACEPOINT_EVENT_CLASS(mm_vmscan_direct_reclaim_begin_template
,
126 TP_PROTO(int order
, gfp_t gfp_flags
),
128 TP_ARGS(order
, gfp_flags
),
131 ctf_integer(int, order
, order
)
132 ctf_integer(gfp_t
, gfp_flags
, gfp_flags
)
136 LTTNG_TRACEPOINT_EVENT_INSTANCE(mm_vmscan_direct_reclaim_begin_template
, mm_vmscan_direct_reclaim_begin
,
138 TP_PROTO(int order
, gfp_t gfp_flags
),
140 TP_ARGS(order
, gfp_flags
)
143 LTTNG_TRACEPOINT_EVENT_INSTANCE(mm_vmscan_direct_reclaim_begin_template
, mm_vmscan_memcg_reclaim_begin
,
145 TP_PROTO(int order
, gfp_t gfp_flags
),
147 TP_ARGS(order
, gfp_flags
)
150 LTTNG_TRACEPOINT_EVENT_INSTANCE(mm_vmscan_direct_reclaim_begin_template
, mm_vmscan_memcg_softlimit_reclaim_begin
,
152 TP_PROTO(int order
, gfp_t gfp_flags
),
154 TP_ARGS(order
, gfp_flags
)
157 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,8,0))
159 LTTNG_TRACEPOINT_EVENT_CLASS(mm_vmscan_direct_reclaim_begin_template
,
161 TP_PROTO(int order
, int may_writepage
, gfp_t gfp_flags
, int classzone_idx
),
163 TP_ARGS(order
, may_writepage
, gfp_flags
, classzone_idx
),
166 ctf_integer(int, order
, order
)
167 ctf_integer(int, may_writepage
, may_writepage
)
168 ctf_integer(gfp_t
, gfp_flags
, gfp_flags
)
169 ctf_integer(int, classzone_idx
, classzone_idx
)
173 LTTNG_TRACEPOINT_EVENT_INSTANCE(mm_vmscan_direct_reclaim_begin_template
, mm_vmscan_direct_reclaim_begin
,
175 TP_PROTO(int order
, int may_writepage
, gfp_t gfp_flags
, int classzone_idx
),
177 TP_ARGS(order
, may_writepage
, gfp_flags
, classzone_idx
)
180 LTTNG_TRACEPOINT_EVENT_INSTANCE(mm_vmscan_direct_reclaim_begin_template
, mm_vmscan_memcg_reclaim_begin
,
182 TP_PROTO(int order
, int may_writepage
, gfp_t gfp_flags
, int classzone_idx
),
184 TP_ARGS(order
, may_writepage
, gfp_flags
, classzone_idx
)
187 LTTNG_TRACEPOINT_EVENT_INSTANCE(mm_vmscan_direct_reclaim_begin_template
, mm_vmscan_memcg_softlimit_reclaim_begin
,
189 TP_PROTO(int order
, int may_writepage
, gfp_t gfp_flags
, int classzone_idx
),
191 TP_ARGS(order
, may_writepage
, gfp_flags
, classzone_idx
)
196 LTTNG_TRACEPOINT_EVENT_CLASS(mm_vmscan_direct_reclaim_begin_template
,
198 TP_PROTO(int order
, int may_writepage
, gfp_t gfp_flags
),
200 TP_ARGS(order
, may_writepage
, gfp_flags
),
203 ctf_integer(int, order
, order
)
204 ctf_integer(int, may_writepage
, may_writepage
)
205 ctf_integer(gfp_t
, gfp_flags
, gfp_flags
)
209 LTTNG_TRACEPOINT_EVENT_INSTANCE(mm_vmscan_direct_reclaim_begin_template
, mm_vmscan_direct_reclaim_begin
,
211 TP_PROTO(int order
, int may_writepage
, gfp_t gfp_flags
),
213 TP_ARGS(order
, may_writepage
, gfp_flags
)
216 LTTNG_TRACEPOINT_EVENT_INSTANCE(mm_vmscan_direct_reclaim_begin_template
, mm_vmscan_memcg_reclaim_begin
,
218 TP_PROTO(int order
, int may_writepage
, gfp_t gfp_flags
),
220 TP_ARGS(order
, may_writepage
, gfp_flags
)
223 LTTNG_TRACEPOINT_EVENT_INSTANCE(mm_vmscan_direct_reclaim_begin_template
, mm_vmscan_memcg_softlimit_reclaim_begin
,
225 TP_PROTO(int order
, int may_writepage
, gfp_t gfp_flags
),
227 TP_ARGS(order
, may_writepage
, gfp_flags
)
232 LTTNG_TRACEPOINT_EVENT_CLASS(mm_vmscan_direct_reclaim_end_template
,
234 TP_PROTO(unsigned long nr_reclaimed
),
236 TP_ARGS(nr_reclaimed
),
239 ctf_integer(unsigned long, nr_reclaimed
, nr_reclaimed
)
243 LTTNG_TRACEPOINT_EVENT_INSTANCE(mm_vmscan_direct_reclaim_end_template
, mm_vmscan_direct_reclaim_end
,
245 TP_PROTO(unsigned long nr_reclaimed
),
247 TP_ARGS(nr_reclaimed
)
250 LTTNG_TRACEPOINT_EVENT_INSTANCE(mm_vmscan_direct_reclaim_end_template
, mm_vmscan_memcg_reclaim_end
,
252 TP_PROTO(unsigned long nr_reclaimed
),
254 TP_ARGS(nr_reclaimed
)
257 LTTNG_TRACEPOINT_EVENT_INSTANCE(mm_vmscan_direct_reclaim_end_template
, mm_vmscan_memcg_softlimit_reclaim_end
,
259 TP_PROTO(unsigned long nr_reclaimed
),
261 TP_ARGS(nr_reclaimed
)
264 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,16,0))
265 LTTNG_TRACEPOINT_EVENT_MAP(mm_shrink_slab_start
,
267 mm_vmscan_shrink_slab_start
,
269 TP_PROTO(struct shrinker
*shr
, struct shrink_control
*sc
,
270 long nr_objects_to_shrink
, unsigned long cache_items
,
271 unsigned long long delta
, unsigned long total_scan
,
274 TP_ARGS(shr
, sc
, nr_objects_to_shrink
, cache_items
, delta
, total_scan
,
278 ctf_integer_hex(struct shrinker
*, shr
, shr
)
279 ctf_integer_hex(void *, shrink
, shr
->scan_objects
)
280 ctf_integer(int, nid
, sc
->nid
)
281 ctf_integer(long, nr_objects_to_shrink
, nr_objects_to_shrink
)
282 ctf_integer(gfp_t
, gfp_flags
, sc
->gfp_mask
)
283 ctf_integer(unsigned long, cache_items
, cache_items
)
284 ctf_integer(unsigned long long, delta
, delta
)
285 ctf_integer(unsigned long, total_scan
, total_scan
)
286 ctf_integer(int, priority
, priority
)
290 LTTNG_TRACEPOINT_EVENT_MAP(mm_shrink_slab_start
,
292 mm_vmscan_shrink_slab_start
,
294 TP_PROTO(struct shrinker
*shr
, struct shrink_control
*sc
,
295 long nr_objects_to_shrink
, unsigned long pgs_scanned
,
296 unsigned long lru_pgs
, unsigned long cache_items
,
297 unsigned long long delta
, unsigned long total_scan
),
299 TP_ARGS(shr
, sc
, nr_objects_to_shrink
, pgs_scanned
, lru_pgs
,
300 cache_items
, delta
, total_scan
),
303 ctf_integer_hex(struct shrinker
*, shr
, shr
)
304 ctf_integer_hex(void *, shrink
, shr
->scan_objects
)
305 ctf_integer(long, nr_objects_to_shrink
, nr_objects_to_shrink
)
306 ctf_integer(gfp_t
, gfp_flags
, sc
->gfp_mask
)
307 ctf_integer(unsigned long, pgs_scanned
, pgs_scanned
)
308 ctf_integer(unsigned long, lru_pgs
, lru_pgs
)
309 ctf_integer(unsigned long, cache_items
, cache_items
)
310 ctf_integer(unsigned long long, delta
, delta
)
311 ctf_integer(unsigned long, total_scan
, total_scan
)
316 LTTNG_TRACEPOINT_EVENT_MAP(mm_shrink_slab_end
,
318 mm_vmscan_shrink_slab_end
,
320 TP_PROTO(struct shrinker
*shr
, int nid
, int shrinker_retval
,
321 long unused_scan_cnt
, long new_scan_cnt
, long total_scan
),
323 TP_ARGS(shr
, nid
, shrinker_retval
, unused_scan_cnt
, new_scan_cnt
,
327 ctf_integer_hex(struct shrinker
*, shr
, shr
)
328 ctf_integer(int, nid
, nid
)
329 ctf_integer_hex(void *, shrink
, shr
->scan_objects
)
330 ctf_integer(long, unused_scan
, unused_scan_cnt
)
331 ctf_integer(long, new_scan
, new_scan_cnt
)
332 ctf_integer(int, retval
, shrinker_retval
)
333 ctf_integer(long, total_scan
, total_scan
)
337 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,11,0))
338 LTTNG_TRACEPOINT_EVENT(mm_vmscan_lru_isolate
,
340 TP_PROTO(int classzone_idx
,
342 unsigned long nr_requested
,
343 unsigned long nr_scanned
,
344 unsigned long nr_skipped
,
345 unsigned long nr_taken
,
346 isolate_mode_t isolate_mode
,
350 TP_ARGS(classzone_idx
, order
, nr_requested
, nr_scanned
, nr_skipped
,
351 nr_taken
, isolate_mode
, lru
355 ctf_integer(int, classzone_idx
, classzone_idx
)
356 ctf_integer(int, order
, order
)
357 ctf_integer(unsigned long, nr_requested
, nr_requested
)
358 ctf_integer(unsigned long, nr_scanned
, nr_scanned
)
359 ctf_integer(unsigned long, nr_skipped
, nr_skipped
)
360 ctf_integer(unsigned long, nr_taken
, nr_taken
)
361 ctf_integer(isolate_mode_t
, isolate_mode
, isolate_mode
)
362 ctf_integer(int, lru
, lru
)
365 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,8,0))
366 LTTNG_TRACEPOINT_EVENT_CLASS(mm_vmscan_lru_isolate_template
,
368 TP_PROTO(int classzone_idx
,
370 unsigned long nr_requested
,
371 unsigned long nr_scanned
,
372 unsigned long nr_taken
,
373 isolate_mode_t isolate_mode
,
377 TP_ARGS(classzone_idx
, order
, nr_requested
, nr_scanned
, nr_taken
,
383 ctf_integer(int, classzone_idx
, classzone_idx
)
384 ctf_integer(int, order
, order
)
385 ctf_integer(unsigned long, nr_requested
, nr_requested
)
386 ctf_integer(unsigned long, nr_scanned
, nr_scanned
)
387 ctf_integer(unsigned long, nr_taken
, nr_taken
)
388 ctf_integer(isolate_mode_t
, isolate_mode
, isolate_mode
)
389 ctf_integer(int, file
, file
)
393 LTTNG_TRACEPOINT_EVENT_INSTANCE(mm_vmscan_lru_isolate_template
, mm_vmscan_lru_isolate
,
395 TP_PROTO(int classzone_idx
,
397 unsigned long nr_requested
,
398 unsigned long nr_scanned
,
399 unsigned long nr_taken
,
400 isolate_mode_t isolate_mode
,
404 TP_ARGS(classzone_idx
, order
, nr_requested
, nr_scanned
, nr_taken
,
410 LTTNG_TRACEPOINT_EVENT_INSTANCE(mm_vmscan_lru_isolate_template
, mm_vmscan_memcg_isolate
,
412 TP_PROTO(int classzone_idx
,
414 unsigned long nr_requested
,
415 unsigned long nr_scanned
,
416 unsigned long nr_taken
,
417 isolate_mode_t isolate_mode
,
421 TP_ARGS(classzone_idx
, order
, nr_requested
, nr_scanned
, nr_taken
,
426 LTTNG_TRACEPOINT_EVENT_CLASS(mm_vmscan_lru_isolate_template
,
429 unsigned long nr_requested
,
430 unsigned long nr_scanned
,
431 unsigned long nr_taken
,
432 isolate_mode_t isolate_mode
,
436 TP_ARGS(order
, nr_requested
, nr_scanned
, nr_taken
,
442 ctf_integer(int, order
, order
)
443 ctf_integer(unsigned long, nr_requested
, nr_requested
)
444 ctf_integer(unsigned long, nr_scanned
, nr_scanned
)
445 ctf_integer(unsigned long, nr_taken
, nr_taken
)
446 ctf_integer(isolate_mode_t
, isolate_mode
, isolate_mode
)
447 ctf_integer(int, file
, file
)
451 LTTNG_TRACEPOINT_EVENT_INSTANCE(mm_vmscan_lru_isolate_template
, mm_vmscan_lru_isolate
,
454 unsigned long nr_requested
,
455 unsigned long nr_scanned
,
456 unsigned long nr_taken
,
457 isolate_mode_t isolate_mode
,
461 TP_ARGS(order
, nr_requested
, nr_scanned
, nr_taken
,
467 LTTNG_TRACEPOINT_EVENT_INSTANCE(mm_vmscan_lru_isolate_template
, mm_vmscan_memcg_isolate
,
470 unsigned long nr_requested
,
471 unsigned long nr_scanned
,
472 unsigned long nr_taken
,
473 isolate_mode_t isolate_mode
,
477 TP_ARGS(order
, nr_requested
, nr_scanned
, nr_taken
,
483 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,7,0))
484 LTTNG_TRACEPOINT_EVENT(mm_vmscan_writepage
,
486 TP_PROTO(struct page
*page
),
491 ctf_integer_hex(struct page
*, page
, page
)
492 ctf_integer(int, reclaim_flags
, trace_reclaim_flags(
493 page_is_file_lru(page
)))
496 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,2,0))
497 LTTNG_TRACEPOINT_EVENT(mm_vmscan_writepage
,
499 TP_PROTO(struct page
*page
),
504 ctf_integer_hex(struct page
*, page
, page
)
505 ctf_integer(int, reclaim_flags
, trace_reclaim_flags(
506 page_is_file_cache(page
)))
509 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,5,0))
510 LTTNG_TRACEPOINT_EVENT(mm_vmscan_writepage
,
512 TP_PROTO(struct page
*page
),
517 ctf_integer_hex(struct page
*, page
, page
)
518 ctf_integer(int, reclaim_flags
, trace_reclaim_flags(page
))
522 LTTNG_TRACEPOINT_EVENT(mm_vmscan_writepage
,
524 TP_PROTO(struct page
*page
,
527 TP_ARGS(page
, reclaim_flags
),
530 ctf_integer_hex(struct page
*, page
, page
)
531 ctf_integer(int, reclaim_flags
, reclaim_flags
)
536 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,2,0) || \
537 LTTNG_RHEL_KERNEL_RANGE(4,18,0,305,0,0, 4,19,0,0,0,0))
538 LTTNG_TRACEPOINT_EVENT(mm_vmscan_lru_shrink_inactive
,
541 unsigned long nr_scanned
, unsigned long nr_reclaimed
,
542 struct reclaim_stat
*stat
, int priority
, int file
),
544 TP_ARGS(nid
, nr_scanned
, nr_reclaimed
, stat
, priority
, file
),
547 ctf_integer(int, nid
, nid
)
548 ctf_integer(unsigned long, nr_scanned
, nr_scanned
)
549 ctf_integer(unsigned long, nr_reclaimed
, nr_reclaimed
)
550 ctf_integer(unsigned long, nr_dirty
, stat
->nr_dirty
)
551 ctf_integer(unsigned long, nr_writeback
, stat
->nr_writeback
)
552 ctf_integer(unsigned long, nr_congested
, stat
->nr_congested
)
553 ctf_integer(unsigned long, nr_immediate
, stat
->nr_immediate
)
554 ctf_integer(unsigned long, nr_activate_anon
, stat
->nr_activate
[0])
555 ctf_integer(unsigned long, nr_activate_file
, stat
->nr_activate
[1])
556 ctf_integer(unsigned long, nr_ref_keep
, stat
->nr_ref_keep
)
557 ctf_integer(unsigned long, nr_unmap_fail
, stat
->nr_unmap_fail
)
558 ctf_integer(int, priority
, priority
)
559 ctf_integer(int, reclaim_flags
, trace_reclaim_flags(file
))
562 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,17,0))
563 LTTNG_TRACEPOINT_EVENT(mm_vmscan_lru_shrink_inactive
,
566 unsigned long nr_scanned
, unsigned long nr_reclaimed
,
567 struct reclaim_stat
*stat
, int priority
, int file
),
569 TP_ARGS(nid
, nr_scanned
, nr_reclaimed
, stat
, priority
, file
),
572 ctf_integer(int, nid
, nid
)
573 ctf_integer(unsigned long, nr_scanned
, nr_scanned
)
574 ctf_integer(unsigned long, nr_reclaimed
, nr_reclaimed
)
575 ctf_integer(unsigned long, nr_dirty
, stat
->nr_dirty
)
576 ctf_integer(unsigned long, nr_writeback
, stat
->nr_writeback
)
577 ctf_integer(unsigned long, nr_congested
, stat
->nr_congested
)
578 ctf_integer(unsigned long, nr_immediate
, stat
->nr_immediate
)
579 ctf_integer(unsigned long, nr_activate
, stat
->nr_activate
)
580 ctf_integer(unsigned long, nr_ref_keep
, stat
->nr_ref_keep
)
581 ctf_integer(unsigned long, nr_unmap_fail
, stat
->nr_unmap_fail
)
582 ctf_integer(int, priority
, priority
)
583 ctf_integer(int, reclaim_flags
, trace_shrink_flags(file
))
586 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,11,0))
587 LTTNG_TRACEPOINT_EVENT(mm_vmscan_lru_shrink_inactive
,
590 unsigned long nr_scanned
, unsigned long nr_reclaimed
,
591 unsigned long nr_dirty
, unsigned long nr_writeback
,
592 unsigned long nr_congested
, unsigned long nr_immediate
,
593 unsigned long nr_activate
, unsigned long nr_ref_keep
,
594 unsigned long nr_unmap_fail
,
595 int priority
, int file
),
597 TP_ARGS(nid
, nr_scanned
, nr_reclaimed
, nr_dirty
, nr_writeback
,
598 nr_congested
, nr_immediate
, nr_activate
, nr_ref_keep
,
599 nr_unmap_fail
, priority
, file
),
602 ctf_integer(int, nid
, nid
)
603 ctf_integer(unsigned long, nr_scanned
, nr_scanned
)
604 ctf_integer(unsigned long, nr_reclaimed
, nr_reclaimed
)
605 ctf_integer(unsigned long, nr_dirty
, nr_dirty
)
606 ctf_integer(unsigned long, nr_writeback
, nr_writeback
)
607 ctf_integer(unsigned long, nr_congested
, nr_congested
)
608 ctf_integer(unsigned long, nr_immediate
, nr_immediate
)
609 ctf_integer(unsigned long, nr_activate
, nr_activate
)
610 ctf_integer(unsigned long, nr_ref_keep
, nr_ref_keep
)
611 ctf_integer(unsigned long, nr_unmap_fail
, nr_unmap_fail
)
612 ctf_integer(int, priority
, priority
)
613 ctf_integer(int, reclaim_flags
, trace_shrink_flags(file
))
616 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,8,0))
617 LTTNG_TRACEPOINT_EVENT(mm_vmscan_lru_shrink_inactive
,
620 unsigned long nr_scanned
, unsigned long nr_reclaimed
,
621 int priority
, int file
),
623 TP_ARGS(nid
, nr_scanned
, nr_reclaimed
, priority
, file
),
626 ctf_integer(int, nid
, nid
)
627 ctf_integer(unsigned long, nr_scanned
, nr_scanned
)
628 ctf_integer(unsigned long, nr_reclaimed
, nr_reclaimed
)
629 ctf_integer(int, priority
, priority
)
630 ctf_integer(int, reclaim_flags
, trace_shrink_flags(file
))
633 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,5,0))
634 LTTNG_TRACEPOINT_EVENT(mm_vmscan_lru_shrink_inactive
,
636 TP_PROTO(struct zone
*zone
,
637 unsigned long nr_scanned
, unsigned long nr_reclaimed
,
638 int priority
, int file
),
640 TP_ARGS(zone
, nr_scanned
, nr_reclaimed
, priority
, file
),
643 ctf_integer(int, nid
, zone_to_nid(zone
))
644 ctf_integer(int, zid
, zone_idx(zone
))
645 ctf_integer(unsigned long, nr_scanned
, nr_scanned
)
646 ctf_integer(unsigned long, nr_reclaimed
, nr_reclaimed
)
647 ctf_integer(int, priority
, priority
)
648 ctf_integer(int, reclaim_flags
, trace_shrink_flags(file
))
652 LTTNG_TRACEPOINT_EVENT(mm_vmscan_lru_shrink_inactive
,
654 TP_PROTO(int nid
, int zid
,
655 unsigned long nr_scanned
, unsigned long nr_reclaimed
,
656 int priority
, int reclaim_flags
),
658 TP_ARGS(nid
, zid
, nr_scanned
, nr_reclaimed
, priority
, reclaim_flags
),
661 ctf_integer(int, nid
, nid
)
662 ctf_integer(int, zid
, zid
)
663 ctf_integer(unsigned long, nr_scanned
, nr_scanned
)
664 ctf_integer(unsigned long, nr_reclaimed
, nr_reclaimed
)
665 ctf_integer(int, priority
, priority
)
666 ctf_integer(int, reclaim_flags
, reclaim_flags
)
671 #endif /* LTTNG_TRACE_MM_VMSCAN_H */
673 /* This part must be outside protection */
674 #include <lttng/define_trace.h>