Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mm/migrate: add MR_DAMON to migrate_reason

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>

authored by

Honggyu Kim and committed by
Andrew Morton
ced816a7 e36287c6

+3 -1
+1
include/linux/migrate_mode.h
··· 24 24 MR_CONTIG_RANGE, 25 25 MR_LONGTERM_PIN, 26 26 MR_DEMOTION, 27 + MR_DAMON, 27 28 MR_TYPES 28 29 }; 29 30
+2 -1
include/trace/events/migrate.h
··· 22 22 EM( MR_NUMA_MISPLACED, "numa_misplaced") \ 23 23 EM( MR_CONTIG_RANGE, "contig_range") \ 24 24 EM( MR_LONGTERM_PIN, "longterm_pin") \ 25 - EMe(MR_DEMOTION, "demotion") 25 + EM( MR_DEMOTION, "demotion") \ 26 + EMe(MR_DAMON, "damon") 26 27 27 28 /* 28 29 * First define the enums in the above macros to be exported to userspace