ANDROID: mm: allow hooks into free_pages_prepare()

Allow drivers to register mm_page_free hooks when free pages.
This helps to get page info when free pages exit.

Bug: 348514795
Change-Id: I1f2e1844aa24836367da65e8bfe11f79e22713d4
Signed-off-by: Qinglin Li <qinglin.li@amlogic.com>
This commit is contained in:
qinglin.li 2024-06-21 11:26:35 +08:00 committed by Treehugger Robot
parent 379c8853b2
commit 05a1f39385

View File

@ -69,6 +69,7 @@
#include <trace/hooks/mm.h>
EXPORT_TRACEPOINT_SYMBOL_GPL(mm_page_alloc);
EXPORT_TRACEPOINT_SYMBOL_GPL(mm_page_free);
/* Free Page Internal flags: for internal, non-pcp variants of free_pages(). */
typedef int __bitwise fpi_t;