
Add hooks for reclaim Bug: 185438290 Change-Id: Ib9eec302b1df4da7e98c77b94541af28c34a8613 Signed-off-by: xiaofeng <xiaofeng5@xiaomi.com>
21 lines
588 B
C
21 lines
588 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#undef TRACE_SYSTEM
|
|
#define TRACE_SYSTEM vmscan
|
|
|
|
#define TRACE_INCLUDE_PATH trace/hooks
|
|
|
|
#if !defined(_TRACE_HOOK_VMSCAN_H) || defined(TRACE_HEADER_MULTI_READ)
|
|
#define _TRACE_HOOK_VMSCAN_H
|
|
|
|
#include <linux/tracepoint.h>
|
|
#include <trace/hooks/vendor_hooks.h>
|
|
|
|
DECLARE_HOOK(android_vh_tune_scan_type,
|
|
TP_PROTO(char *scan_type),
|
|
TP_ARGS(scan_type));
|
|
DECLARE_HOOK(android_vh_tune_swappiness,
|
|
TP_PROTO(int *swappiness),
|
|
TP_ARGS(swappiness));
|
|
#endif /* _TRACE_HOOK_VMSCAN_H */
|
|
/* This part must be outside protection */
|
|
#include <trace/define_trace.h> |