ANDROID: vendor_hook: add hooks in dm_bufio.c
1. android_vh_dm_bufio_shrink_scan_bypass To adjust dm_bufio-buffer shrinker's policy in some cases. 2. cleanup_old_buffers_bypass To adjust the policy of dm_bufio-buffer periodic eviction in some cases. Bug: 281467813 Signed-off-by: Peifeng Li <lipeifeng@oppo.com> Change-Id: I29a9d91d18d2e279170533db83b59cfc3b17ebe2
This commit is contained in:
@@ -126,6 +126,14 @@ DECLARE_HOOK(android_vh_save_track_hash,
|
||||
DECLARE_HOOK(android_vh_vmpressure,
|
||||
TP_PROTO(struct mem_cgroup *memcg, bool *bypass),
|
||||
TP_ARGS(memcg, bypass));
|
||||
DECLARE_HOOK(android_vh_dm_bufio_shrink_scan_bypass,
|
||||
TP_PROTO(unsigned long dm_bufio_current_allocated, bool *bypass),
|
||||
TP_ARGS(dm_bufio_current_allocated, bypass));
|
||||
DECLARE_HOOK(android_vh_cleanup_old_buffers_bypass,
|
||||
TP_PROTO(unsigned long dm_bufio_current_allocated,
|
||||
unsigned long *max_age_hz,
|
||||
bool *bypass),
|
||||
TP_ARGS(dm_bufio_current_allocated, max_age_hz, bypass));
|
||||
DECLARE_HOOK(android_vh_mem_cgroup_alloc,
|
||||
TP_PROTO(struct mem_cgroup *memcg),
|
||||
TP_ARGS(memcg));
|
||||
|
Reference in New Issue
Block a user