diff options
author | Mel Gorman <mgorman@suse.de> | 2012-10-19 09:07:31 -0400 |
---|---|---|
committer | Mel Gorman <mgorman@suse.de> | 2012-12-11 09:28:35 -0500 |
commit | 7b2a2d4a18fffac3c4872021529b0657896db788 (patch) | |
tree | a0f05be191f12711a774368f6feb15bcd2eebf1a /mm/page_alloc.c | |
parent | 5647bc293ab15f66a7b1cda850c5e9d162a6c7c2 (diff) |
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>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r-- | mm/page_alloc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 7bb35ac0964..5953dc2d196 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -5707,7 +5707,8 @@ static int __alloc_contig_migrate_range(struct compact_control *cc, | |||
5707 | 5707 | ||
5708 | ret = migrate_pages(&cc->migratepages, | 5708 | ret = migrate_pages(&cc->migratepages, |
5709 | alloc_migrate_target, | 5709 | alloc_migrate_target, |
5710 | 0, false, MIGRATE_SYNC); | 5710 | 0, false, MIGRATE_SYNC, |
5711 | MR_CMA); | ||
5711 | } | 5712 | } |
5712 | 5713 | ||
5713 | putback_lru_pages(&cc->migratepages); | 5714 | putback_lru_pages(&cc->migratepages); |