ANDROID: vendor_hook: Add hook in snapshot_refaults()
Provide a vendor hook android_vh_snapshot_refaults to record the refault statistics of WORKINGSET_RESTORE_ANON; Bug: 234214858 Signed-off-by: Bing Han <bing.han@transsion.com> Change-Id: I20eb5ea99bf21fa8ba34b45e87d2ab9e9cdca167
This commit is contained in:

committed by
Treehugger Robot

parent
6b04959511
commit
6b7243da5e
@@ -38,6 +38,9 @@ DECLARE_HOOK(android_vh_inactive_is_low,
|
||||
TP_PROTO(unsigned long gb, unsigned long *inactive_ratio,
|
||||
enum lru_list inactive_lru, bool *skip),
|
||||
TP_ARGS(gb, inactive_ratio, inactive_lru, skip));
|
||||
DECLARE_HOOK(android_vh_snapshot_refaults,
|
||||
TP_PROTO(struct lruvec *target_lruvec),
|
||||
TP_ARGS(target_lruvec));
|
||||
#endif /* _TRACE_HOOK_VMSCAN_H */
|
||||
/* This part must be outside protection */
|
||||
#include <trace/define_trace.h>
|
||||
|
Reference in New Issue
Block a user