summaryrefslogtreecommitdiffstats
path: root/mm/page_isolation.c
diff options
context:
space:
mode:
authorJoonsoo Kim <js1304@gmail.com>2016-01-14 18:18:42 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2016-01-14 19:00:49 -0500
commit0f0848e5118a4cb2cb92cef0c3af6f647649ff47 (patch)
tree0300cded0b507d813a3133cb80944c047997d1fe /mm/page_isolation.c
parentfea85cff11de4377040deff0e85eb2793fb078aa (diff)
mm/page_isolation.c: add new tracepoint, test_pages_isolated
cma allocation should be guranteeded to succeed. But sometimes it can fail in the current implementation. To track down the problem, we need to know which page is problematic and this new tracepoint will report it. Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com> Acked-by: Michal Nazarewicz <mina86@mina86.com> Acked-by: David Rientjes <rientjes@google.com> Cc: Minchan Kim <minchan@kernel.org> Acked-by: Vlastimil Babka <vbabka@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_isolation.c')
-rw-r--r--mm/page_isolation.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mm/page_isolation.c b/mm/page_isolation.c
index 029a171d35dc..f484b9300fe3 100644
--- a/mm/page_isolation.c
+++ b/mm/page_isolation.c
@@ -9,6 +9,9 @@
9#include <linux/hugetlb.h> 9#include <linux/hugetlb.h>
10#include "internal.h" 10#include "internal.h"
11 11
12#define CREATE_TRACE_POINTS
13#include <trace/events/page_isolation.h>
14
12static int set_migratetype_isolate(struct page *page, 15static int set_migratetype_isolate(struct page *page,
13 bool skip_hwpoisoned_pages) 16 bool skip_hwpoisoned_pages)
14{ 17{
@@ -268,6 +271,8 @@ int test_pages_isolated(unsigned long start_pfn, unsigned long end_pfn,
268 skip_hwpoisoned_pages); 271 skip_hwpoisoned_pages);
269 spin_unlock_irqrestore(&zone->lock, flags); 272 spin_unlock_irqrestore(&zone->lock, flags);
270 273
274 trace_test_pages_isolated(start_pfn, end_pfn, pfn);
275
271 return pfn < end_pfn ? -EBUSY : 0; 276 return pfn < end_pfn ? -EBUSY : 0;
272} 277}
273 278