1 /* SPDX-License-Identifier: GPL-2.0 */
2 #undef TRACE_SYSTEM
3 #define TRACE_SYSTEM vmscan
4 
5 #define TRACE_INCLUDE_PATH trace/hooks
6 
7 #if !defined(_TRACE_HOOK_VMSCAN_H) || defined(TRACE_HEADER_MULTI_READ)
8 #define _TRACE_HOOK_VMSCAN_H
9 
10 #include <linux/tracepoint.h>
11 #include <trace/hooks/vendor_hooks.h>
12 
13 DECLARE_HOOK(android_vh_tune_scan_type,
14 	TP_PROTO(char *scan_type),
15 	TP_ARGS(scan_type));
16 DECLARE_HOOK(android_vh_tune_swappiness,
17 	TP_PROTO(int *swappiness),
18 	TP_ARGS(swappiness));
19 DECLARE_HOOK(android_vh_shrink_slab_bypass,
20 	TP_PROTO(gfp_t gfp_mask, int nid, struct mem_cgroup *memcg, int priority, bool *bypass),
21 	TP_ARGS(gfp_mask, nid, memcg, priority, bypass));
22 DECLARE_HOOK(android_vh_tune_inactive_ratio,
23 	TP_PROTO(unsigned long *inactive_ratio, int file),
24 	TP_ARGS(inactive_ratio, file))
25 DECLARE_HOOK(android_vh_do_shrink_slab,
26 	TP_PROTO(struct shrinker *shrinker, struct shrink_control *shrinkctl, int priority),
27 	TP_ARGS(shrinker, shrinkctl, priority));
28 DECLARE_RESTRICTED_HOOK(android_rvh_set_balance_anon_file_reclaim,
29 			TP_PROTO(bool *balance_anon_file_reclaim),
30 			TP_ARGS(balance_anon_file_reclaim), 1);
31 #endif /* _TRACE_HOOK_VMSCAN_H */
32 /* This part must be outside protection */
33 #include <trace/define_trace.h>
34