mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-27 04:50:25 +09:00
Add vendor hook for bh_lru and lru_cache_disable
Bug: 238728493
Signed-off-by: Minchan Kim <minchan@google.com>
Change-Id: I81bfad317cf6e8633186ebb3238644306d7a102d
Signed-off-by: Richard Chang <richardycc@google.com>
(cherry picked from commit 74e2ea264c)
23 lines
565 B
C
23 lines
565 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#undef TRACE_SYSTEM
|
|
#define TRACE_SYSTEM buffer
|
|
|
|
#define TRACE_INCLUDE_PATH trace/hooks
|
|
|
|
#if !defined(_TRACE_HOOK_BUFFER_H) || defined(TRACE_HEADER_MULTI_READ)
|
|
#define _TRACE_HOOK_BUFFER_H
|
|
|
|
#include <linux/types.h>
|
|
#include <trace/hooks/vendor_hooks.h>
|
|
|
|
DECLARE_HOOK(android_vh_bh_lru_install,
|
|
TP_PROTO(struct page *page, bool *flush),
|
|
TP_ARGS(page, flush));
|
|
|
|
/* macro versions of hooks are no longer required */
|
|
|
|
#endif /* _TRACE_HOOK_BUFFER_H */
|
|
|
|
/* This part must be outside protection */
|
|
#include <trace/define_trace.h>
|