@@ -1,4 +1,17 @@
-/* SPDX-License-Identifier: GPL-2.0 */
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Bellow tracepoints are used by perf script page-reclaim:
+ * mm_vmscan_direct_reclaim_begin
+ * mm_vmscan_direct_reclaim_end
+ * mm_vmscan_kswapd_wake
+ * mm_vmscan_kswapd_sleep
+ * mm_vmscan_wakeup_kswapd
+ * mm_vmscan_lru_shrink_inactive
+ * mm_vmscan_writepage
+ * We must keep the definitions of these tracepoints in sync with the perf
+ * script page-reclaim.
+ */
+
#undef TRACE_SYSTEM
#define TRACE_SYSTEM vmscan
Currently there's no easy way to make perf scripts in sync with tracepoints. One possible way is to run perf's tests regularly, another way is once we changes the definitions of tracepoints we must keep in mind that the perf scripts which are using these tracepoints must be changed as well. So I add this comment for the new introduced page-reclaim script as a reminder. Signed-off-by: Yafang Shao <laoar.shao@gmail.com> --- include/trace/events/vmscan.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-)