Commit aa71a02c authored by Fangzheng Zhang's avatar Fangzheng Zhang Committed by Suren Baghdasaryan
Browse files

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: default avatarFangzheng Zhang <fangzheng.zhang@unisoc.com>
parent 4326c78f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment