ANDROID: mm: add a vendor hook to rmqueue_bulk()

Add a vendor hook to requeme_bulk() to debug and avoid KE problem.

Bug: 259479254
Change-Id: I55353ff205250cbfb7e2f8d9dc2c6ec7718d77ab
Signed-off-by: andrew.yang <andrew.yang@mediatek.com>
This commit is contained in:
andrew.yang
2022-11-17 11:54:23 +08:00
committed by Viktor Martensson
parent 979df868f5
commit 564233e471
3 changed files with 5 additions and 0 deletions

View File

@@ -168,6 +168,7 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_set_skip_swapcache_flags);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_set_gfp_zone_flags);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_set_readahead_gfp_mask);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_update_readahead_gfp_mask);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_rmqueue_bulk);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_preempt_disable);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_preempt_enable);
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_irqs_disable);

View File

@@ -43,6 +43,9 @@ DECLARE_RESTRICTED_HOOK(android_rvh_update_readahead_gfp_mask,
DECLARE_RESTRICTED_HOOK(android_rvh_set_readahead_gfp_mask,
TP_PROTO(gfp_t *flags),
TP_ARGS(flags), 1);
DECLARE_RESTRICTED_HOOK(android_rvh_rmqueue_bulk,
TP_PROTO(void *unused),
TP_ARGS(unused), 1);
DECLARE_HOOK(android_vh_meminfo_proc_show,
TP_PROTO(struct seq_file *m),
TP_ARGS(m));

View File

@@ -3110,6 +3110,7 @@ static int rmqueue_bulk(struct zone *zone, unsigned int order,
for (i = 0; i < count; ++i) {
struct page *page;
trace_android_rvh_rmqueue_bulk(NULL);
if (is_migrate_cma(migratetype))
page = __rmqueue_cma(zone, order, migratetype,
alloc_flags);