• 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_RESTRICTED_HOOK(android_rvh_set_balance_anon_file_reclaim,
13 			TP_PROTO(bool *balance_anon_file_reclaim),
14 			TP_ARGS(balance_anon_file_reclaim), 1);
15 DECLARE_HOOK(android_vh_kswapd_per_node,
16 	TP_PROTO(int nid, bool *skip, bool run),
17 	TP_ARGS(nid, skip, run));
18 DECLARE_HOOK(android_vh_page_referenced_check_bypass,
19 	TP_PROTO(struct page *page, unsigned long nr_to_scan, int lru, bool *bypass),
20 	TP_ARGS(page, nr_to_scan, lru, bypass));
21 
22 DECLARE_HOOK(android_vh_shrink_node_memcgs,
23 	TP_PROTO(struct mem_cgroup *memcg, bool *skip),
24 	TP_ARGS(memcg, skip));
25 DECLARE_HOOK(android_vh_shrink_slab_bypass,
26 	TP_PROTO(gfp_t gfp_mask, int nid, struct mem_cgroup *memcg, int priority, bool *bypass),
27 	TP_ARGS(gfp_mask, nid, memcg, priority, bypass));
28 DECLARE_HOOK(android_vh_do_shrink_slab,
29 	TP_PROTO(struct shrinker *shrinker, struct shrink_control *shrinkctl, int priority),
30 	TP_ARGS(shrinker, shrinkctl, priority));
31 #endif /* _TRACE_HOOK_VMSCAN_H */
32 /* This part must be outside protection */
33 #include <trace/define_trace.h>
34