1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #undef TRACE_SYSTEM 3 #define TRACE_SYSTEM compaction 4 5 #define TRACE_INCLUDE_PATH trace/hooks 6 7 #if !defined(_TRACE_HOOK_COMPACTION_H) || defined(TRACE_HEADER_MULTI_READ) 8 #define _TRACE_HOOK_COMPACTION_H 9 10 #include <trace/hooks/vendor_hooks.h> 11 12 DECLARE_HOOK(android_vh_proactive_compact_wmark_high, 13 TP_PROTO(int *wmark_high), 14 TP_ARGS(wmark_high)); 15 DECLARE_HOOK(android_vh_compaction_exit, 16 TP_PROTO(int node_id, int order, const int highest_zoneidx), 17 TP_ARGS(node_id, order, highest_zoneidx)); 18 enum compact_result; 19 DECLARE_HOOK(android_vh_compaction_try_to_compact_exit, 20 TP_PROTO(enum compact_result *compact_result), 21 TP_ARGS(compact_result)); 22 DECLARE_HOOK(android_vh_mm_customize_zone_can_compact, 23 TP_PROTO(struct zone *zone, bool *can_compact), 24 TP_ARGS(zone, can_compact)); 25 #endif /* _TRACE_HOOK_COMPACTION_H */ 26 /* This part must be outside protection */ 27 #include <trace/define_trace.h> 28