ANDROID: vendor_hooks: add hook for si_meminfo_adjust_shmem

As trace_android_vh_si_meminfo_adjust allows vendors to change for
totalram and freeram, we'd like to change sharedram values. This is
helpful when a driver uses shmem a lot.

Bug: 371132125

Change-Id: Ifd615e1a4d600084f3957267da3189f0edc342e7
Signed-off-by: Jaewon Kim <jaewon31.kim@samsung.com>
This commit is contained in:
Jaewon Kim
2024-10-03 12:39:47 +09:00
committed by Treehugger Robot
parent b235667f92
commit c230b7b9ce
3 changed files with 5 additions and 0 deletions
+3
View File
@@ -120,6 +120,9 @@ DECLARE_HOOK(android_vh_si_mem_available_adjust,
DECLARE_HOOK(android_vh_si_meminfo_adjust,
TP_PROTO(unsigned long *totalram, unsigned long *freeram),
TP_ARGS(totalram, freeram));
DECLARE_HOOK(android_vh_si_meminfo_adjust_shmem,
TP_PROTO(unsigned long *sharedram),
TP_ARGS(sharedram));
DECLARE_HOOK(android_vh_test_clear_look_around_ref,
TP_PROTO(struct page *page),
TP_ARGS(page));