tracing: tell mm_migrate_pages event about numa_misplaced
PATCH 1/1 tracing: tell mm_migrate_pages event about numa_misplaced
The mm_migrate_pages trace event reports a reason for the migration, typically as a symbolic string. The exception is the reason MR_NUMA_MISPLACED for which it just displays the numeric value:mm_migrate_pages: nr_succeeded=1 nr_failed=0 mode=MIGRATE_ASYNC reason=0x5
This patch makes the output consistent by introducing a string value for MR_NUMA_MISPLACED. The event is then reported as:mm_migrate_pages: nr_succeeded=1 nr_failed=0 mode=MIGRATE_ASYNC reason=numa_misplaced
migrate.h | 1 + 1 file changed, 1 insertion(+)
include/trace/events/migrate.h renamed from include/trace/events/migrate.h.orig +1 -0
@@ -17,6 +17,7 @@ {MR_MEMORY_HOTPLUG, "memory_hotplug"}, \ {MR_SYSCALL, "syscall_or_cpuset"}, \ {MR_MEMPOLICY_MBIND, "mempolicy_mbind"}, \ + {MR_NUMA_MISPLACED, "numa_misplaced"}, \ {MR_CMA, "cma"} TRACE_EVENT(mm_migrate_pages,
Quoted 11 lines · Max Asbock
The
mm_migrate_pagestrace event reports a reason for the migration, typically as a symbolic string. The exception is the reasonMR_NUMA_MISPLACEDfor which it just displays the numeric value:mm_migrate_pages: nr_succeeded=1 nr_failed=0 mode=MIGRATE_ASYNC reason=0x5This patch makes the output consistent by introducing a string value for
MR_NUMA_MISPLACED. The event is then reported as:mm_migrate_pages: nr_succeeded=1 nr_failed=0 mode=MIGRATE_ASYNC reason=numa_misplacedSigned-off-by Max Asbock <[email protected]>
Signature · 2 lines
Mel Gorman SUSE Labs
Steven Rostedt
maintainerQuoted 7 lines · On Mon, 23 Jun 2014 15:21:59 +0100 Mel Gorman <[email protected]> wrote:
Quoted 6 lines · Max Asbock
The
mm_migrate_pagestrace event reports a reason for the migration, typically as a symbolic string. The exception is the reasonMR_NUMA_MISPLACEDfor which it just displays the numeric value:mm_migrate_pages: nr_succeeded=1 nr_failed=0 mode=MIGRATE_ASYNC reason=0x5
Quoted 8 lines
Quoted 5 lines
This patch makes the output consistent by introducing a string value for
MR_NUMA_MISPLACED. The event is then reported as:mm_migrate_pages: nr_succeeded=1 nr_failed=0 mode=MIGRATE_ASYNC reason=numa_misplacedSigned-off-by Max Asbock <[email protected]>Acked-by Mel Gorman <[email protected]>
Would you like to take this? Or Andrew?
You can add my Acked-by: Steven Rostedt <[email protected]>
-- Steve
Quoted 14 lines · Steven Rostedt
Quoted 11 lines · On Mon, 23 Jun 2014 15:21:59 +0100 Mel Gorman <[email protected]> wrote:
Quoted 10 lines · Max Asbock
The
mm_migrate_pagestrace event reports a reason for the migration, typically as a symbolic string. The exception is the reasonMR_NUMA_MISPLACEDfor which it just displays the numeric value:mm_migrate_pages: nr_succeeded=1 nr_failed=0 mode=MIGRATE_ASYNC reason=0x5This patch makes the output consistent by introducing a string value for
MR_NUMA_MISPLACED. The event is then reported as:mm_migrate_pages: nr_succeeded=1 nr_failed=0 mode=MIGRATE_ASYNC reason=numa_misplaced
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Signed-off-by Max Asbock <[email protected]>Acked-by Mel Gorman <[email protected]>Would you like to take this? Or Andrew?
I expect Andrew will pick it up.
Signature · 2 lines
Mel Gorman SUSE Labs