mm/migrate: add MR_DAMON to migrate_reason
authorHonggyu Kim <honggyu.kim@sk.com>
Fri, 14 Jun 2024 03:00:06 +0000 (12:00 +0900)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 4 Jul 2024 02:30:12 +0000 (19:30 -0700)
The current patch series introduces DAMON based migration across NUMA
nodes so it'd be better to have a new migrate_reason in trace events.

Link: https://lkml.kernel.org/r/20240614030010.751-5-honggyu.kim@sk.com
Signed-off-by: Honggyu Kim <honggyu.kim@sk.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Gregory Price <gregory.price@memverge.com>
Cc: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Cc: Hyeongtak Ji <hyeongtak.ji@sk.com>
Cc: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Rakie Kim <rakie.kim@sk.com>
Cc: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/migrate_mode.h
include/trace/events/migrate.h

index 9fb482bb73237bab4b685e19ac53e5702f744293..265c4328b36ad558745d5e36b3308038a79966e5 100644 (file)
@@ -24,6 +24,7 @@ enum migrate_reason {
        MR_CONTIG_RANGE,
        MR_LONGTERM_PIN,
        MR_DEMOTION,
+       MR_DAMON,
        MR_TYPES
 };
 
index 0190ef725b439696973eaefb75e453c360535117..cd01dd7b3640dcf19038eddf45fb242e258cdef6 100644 (file)
@@ -22,7 +22,8 @@
        EM( MR_NUMA_MISPLACED,  "numa_misplaced")               \
        EM( MR_CONTIG_RANGE,    "contig_range")                 \
        EM( MR_LONGTERM_PIN,    "longterm_pin")                 \
-       EMe(MR_DEMOTION,        "demotion")
+       EM( MR_DEMOTION,        "demotion")                     \
+       EMe(MR_DAMON,           "damon")
 
 /*
  * First define the enums in the above macros to be exported to userspace