mm: cma: allocation trigger
authorSasha Levin <sasha.levin@oracle.com>
Tue, 14 Apr 2015 22:44:59 +0000 (15:44 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 14 Apr 2015 23:49:00 +0000 (16:49 -0700)
commit26b02a1f9670862c51b3ff63a6128589866f5c71
treea271f168640f4f89ceab15d354f2772f4e363091
parent28b24c1fc8c22cabe5b8a16ffe6a61dfce51a1f2
mm: cma: allocation trigger

Provides a userspace interface to trigger a CMA allocation.

Usage:

        echo [pages] > alloc

This would provide testing/fuzzing access to the CMA allocation paths.

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Acked-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: Laura Abbott <lauraa@codeaurora.org>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/cma.c
mm/cma.h
mm/cma_debug.c