ANDROID: vendor_hooks: mm: add hook to count the number pages
allocated for each slab
Add the tracing interface on the kmalloc_large allocation path,
which can detect the number of pages allocated by the slab,
and if exceeds a threshold, trigger a panic or other actions.
Bug: 312897430
Change-Id: I5575d0e4f91dab1c6e074f3e907fee8ea9327fd7
Signed-off-by:
Fangzheng Zhang <fangzheng.zhang@unisoc.com>
Loading
Please sign in to comment