ANDROID: vendor_hooks: bypass shrink slab

Add hooks for bypass shrink slab.

Bug: 185951972
Bug: 395197442
Change-Id: I343e02ae5cd6d076d525d0e4bfc09ecdfeda1d7b
Signed-off-by: wudean <dean.wu@vivo.com>
Signed-off-by: wengle <wengle@oppo.com>
This commit is contained in:
wudean
2021-04-27 17:40:41 +08:00
committed by Carlos Llamas
parent f855de3d0e
commit 6dd826c792
3 changed files with 9 additions and 0 deletions
+3
View File
@@ -56,6 +56,9 @@ enum scan_balance;
DECLARE_HOOK(android_vh_tune_scan_type,
TP_PROTO(enum scan_balance *scan_type),
TP_ARGS(scan_type));
DECLARE_HOOK(android_vh_shrink_slab_bypass,
TP_PROTO(gfp_t gfp_mask, int nid, struct mem_cgroup *memcg, int priority, bool *bypass),
TP_ARGS(gfp_mask, nid, memcg, priority, bypass));
#endif /* _TRACE_HOOK_VMSCAN_H */
/* This part must be outside protection */
#include <trace/define_trace.h>