Skip to contentSkip to conversation

tracing: tell mm_migrate_pages event about numa_misplaced

PATCH In review Max Asbock 3 participants 4 messages Jun 20, 2014 – Jun 23, 2014 Tracing

lore
Share & tools
lore

Max Asbock

author
#0 lore raw

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,
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · Max Asbock

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

Signature · 2 lines
Mel Gorman
SUSE Labs
maintainer
#2 lore raw
Quoted 7 lines · On Mon, 23 Jun 2014 15:21:59 +0100 Mel Gorman <[email protected]> wrote:
Quoted 6 lines · Max Asbock

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

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_misplaced

Would you like to take this? Or Andrew?

You can add my Acked-by: Steven Rostedt <[email protected]>

-- Steve

#3 lore raw
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_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

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Would you like to take this? Or Andrew?

I expect Andrew will pick it up.

Signature · 2 lines
Mel Gorman
SUSE Labs