Message ID | 20240405060858.2818-5-honggyu.kim@sk.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | DAMON based tiered memory management for CXL memory | expand |
On Fri, 5 Apr 2024 15:08:53 +0900 Honggyu Kim <honggyu.kim@sk.com> wrote: > 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. > > Signed-off-by: Honggyu Kim <honggyu.kim@sk.com> Reviewed-by: SeongJae Park <sj@kernel.org> Thanks, SJ > --- > include/linux/migrate_mode.h | 1 + > include/trace/events/migrate.h | 3 ++- > 2 files changed, 3 insertions(+), 1 deletion(-) > > diff --git a/include/linux/migrate_mode.h b/include/linux/migrate_mode.h > index f37cc03f9369..cec36b7e7ced 100644 > --- a/include/linux/migrate_mode.h > +++ b/include/linux/migrate_mode.h > @@ -29,6 +29,7 @@ enum migrate_reason { > MR_CONTIG_RANGE, > MR_LONGTERM_PIN, > MR_DEMOTION, > + MR_DAMON, > MR_TYPES > }; > > diff --git a/include/trace/events/migrate.h b/include/trace/events/migrate.h > index 0190ef725b43..cd01dd7b3640 100644 > --- a/include/trace/events/migrate.h > +++ b/include/trace/events/migrate.h > @@ -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 > -- > 2.34.1 > >
diff --git a/include/linux/migrate_mode.h b/include/linux/migrate_mode.h index f37cc03f9369..cec36b7e7ced 100644 --- a/include/linux/migrate_mode.h +++ b/include/linux/migrate_mode.h @@ -29,6 +29,7 @@ enum migrate_reason { MR_CONTIG_RANGE, MR_LONGTERM_PIN, MR_DEMOTION, + MR_DAMON, MR_TYPES }; diff --git a/include/trace/events/migrate.h b/include/trace/events/migrate.h index 0190ef725b43..cd01dd7b3640 100644 --- a/include/trace/events/migrate.h +++ b/include/trace/events/migrate.h @@ -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
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. Signed-off-by: Honggyu Kim <honggyu.kim@sk.com> --- include/linux/migrate_mode.h | 1 + include/trace/events/migrate.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-)