• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 <trace/hooks/vendor_hooks.h>
11 
12 DECLARE_HOOK(android_vh_tune_scan_type,
13 	TP_PROTO(char *scan_type),
14 	TP_ARGS(scan_type));
15 DECLARE_HOOK(android_vh_tune_swappiness,
16 	TP_PROTO(int *swappiness),
17 	TP_ARGS(swappiness));
18 DECLARE_HOOK(android_vh_shrink_slab_bypass,
19 	TP_PROTO(gfp_t gfp_mask, int nid, struct mem_cgroup *memcg, int priority, bool *bypass),
20 	TP_ARGS(gfp_mask, nid, memcg, priority, bypass));
21 DECLARE_HOOK(android_vh_tune_inactive_ratio,
22 	TP_PROTO(unsigned long *inactive_ratio, int file),
23 	TP_ARGS(inactive_ratio, file))
24 DECLARE_HOOK(android_vh_do_shrink_slab,
25 	TP_PROTO(struct shrinker *shrinker, struct shrink_control *shrinkctl, int priority),
26 	TP_ARGS(shrinker, shrinkctl, priority));
27 DECLARE_RESTRICTED_HOOK(android_rvh_set_balance_anon_file_reclaim,
28 			TP_PROTO(bool *balance_anon_file_reclaim),
29 			TP_ARGS(balance_anon_file_reclaim), 1);
30 DECLARE_HOOK(android_vh_tune_memcg_scan_type,
31 	TP_PROTO(struct mem_cgroup *memcg, char *scan_type),
32 	TP_ARGS(memcg, scan_type));
33 #endif /* _TRACE_HOOK_VMSCAN_H */
34 /* This part must be outside protection */
35 #include <trace/define_trace.h>
36