From: Mathieu Desnoyers Date: Mon, 13 Apr 2020 15:38:48 +0000 (-0400) Subject: instrumentation: update mm_vmscan for kernel >= 5.7.0 X-Git-Tag: v2.11.4~14 X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;h=71a7580f53c564ed945cb9e31601d819f0444fed;p=lttng-modules.git instrumentation: update mm_vmscan for kernel >= 5.7.0 Signed-off-by: Mathieu Desnoyers --- diff --git a/instrumentation/events/lttng-module/mm_vmscan.h b/instrumentation/events/lttng-module/mm_vmscan.h index 675171c8..e3b698f9 100644 --- a/instrumentation/events/lttng-module/mm_vmscan.h +++ b/instrumentation/events/lttng-module/mm_vmscan.h @@ -568,7 +568,20 @@ LTTNG_TRACEPOINT_EVENT_INSTANCE(mm_vmscan_lru_isolate_template, mm_vmscan_memcg_ ) #endif -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,2,0)) +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,7,0)) +LTTNG_TRACEPOINT_EVENT(mm_vmscan_writepage, + + TP_PROTO(struct page *page), + + TP_ARGS(page), + + TP_FIELDS( + ctf_integer_hex(struct page *, page, page) + ctf_integer(int, reclaim_flags, trace_reclaim_flags( + page_is_file_lru(page))) + ) +) +#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(5,2,0)) LTTNG_TRACEPOINT_EVENT(mm_vmscan_writepage, TP_PROTO(struct page *page),