mm: migrate: Add a tracepoint for migrate_pages
authorMel Gorman <mgorman@suse.de>
Fri, 19 Oct 2012 13:07:31 +0000 (14:07 +0100)
committerMel Gorman <mgorman@suse.de>
Tue, 11 Dec 2012 14:28:35 +0000 (14:28 +0000)
commit7b2a2d4a18fffac3c4872021529b0657896db788
treea0f05be191f12711a774368f6feb15bcd2eebf1a
parent5647bc293ab15f66a7b1cda850c5e9d162a6c7c2
mm: migrate: Add a tracepoint for migrate_pages

The pgmigrate_success and pgmigrate_fail vmstat counters tells the user
about migration activity but not the type or the reason. This patch adds
a tracepoint to identify the type of page migration and why the page is
being migrated.

Signed-off-by: Mel Gorman <mgorman@suse.de>
Reviewed-by: Rik van Riel <riel@redhat.com>
include/linux/migrate.h
include/trace/events/migrate.h [new file with mode: 0644]
mm/compaction.c
mm/memory-failure.c
mm/memory_hotplug.c
mm/mempolicy.c
mm/migrate.c
mm/page_alloc.c