mm: add pagetrace function
authortao zeng <tao.zeng@amlogic.com>
Mon, 23 Oct 2017 02:38:16 +0000 (10:38 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Mon, 23 Oct 2017 07:11:33 +0000 (00:11 -0700)
commita998ca2c01b417ca59a8b4af68f283179e256184
tree842a2be7a5e00a49ca846ce04e852e0f259320a3
parent8c990449e2c2646af71e64a6c4cb0376848cb12b
mm: add pagetrace function

PD#151104: mm: add pagetrace function

1. implement pagetrace as a driver; you can get information
  of how many pages allocated by each function by read:

  cat /proc/pagetrace

2. fix wrong statistics of free memory of each migrate type.

Change-Id: Ib2dff4bb5b3dd288ee188007352fc7b353eda100
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
MAINTAINERS
drivers/amlogic/Kconfig
drivers/amlogic/Makefile
drivers/amlogic/memory_ext/Kconfig [new file with mode: 0644]
drivers/amlogic/memory_ext/Makefile [new file with mode: 0644]
drivers/amlogic/memory_ext/page_trace.c [new file with mode: 0644]
include/linux/amlogic/page_trace.h [new file with mode: 0644]
init/main.c
mm/cma.c
mm/page_alloc.c