ANDROID: GKI: add vendor_hook android_vh_health_report
android_vh_health_report is specifically designed for OGKI to monitor F2FS health status and report key metrics. Bug: 427430423 Change-Id: I6ddfd3a4c2cddc0e053b65440d7794bf8e2754ba Signed-off-by: liujinbao1 <liujinbao1@xiaomi.corp-partner.google.com>
This commit is contained in:
committed by
Treehugger Robot
parent
1ccb219f8c
commit
8c8d462c9d
@@ -33,6 +33,7 @@
|
||||
#include <trace/hooks/pm_domain.h>
|
||||
#include <trace/hooks/cpuidle_psci.h>
|
||||
#include <trace/hooks/vmscan.h>
|
||||
#include <trace/hooks/health_report.h>
|
||||
#include <trace/hooks/avc.h>
|
||||
#include <trace/hooks/creds.h>
|
||||
#include <trace/hooks/selinux.h>
|
||||
@@ -203,6 +204,7 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_tune_mmap_readaround);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_hw_protection_shutdown);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_shrink_slab_bypass);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_do_shrink_slab_ex);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_health_report);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_drain_all_pages_bypass);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_security_audit_log_setid);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_selinux_avc_insert);
|
||||
|
||||
20
include/trace/hooks/health_report.h
Normal file
20
include/trace/hooks/health_report.h
Normal file
@@ -0,0 +1,20 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
#undef TRACE_SYSTEM
|
||||
#define TRACE_SYSTEM health_report
|
||||
|
||||
#define TRACE_INCLUDE_PATH trace/hooks
|
||||
|
||||
#if !defined(_TRACE_HOOK_HEALTH_REPORT_H) || defined(TRACE_HEADER_MULTI_READ)
|
||||
#define _TRACE_HOOK_HEALTH_REPORT_H
|
||||
|
||||
#include <trace/hooks/vendor_hooks.h>
|
||||
|
||||
DECLARE_HOOK(android_vh_health_report,
|
||||
TP_PROTO(unsigned int err_code, const char *func, unsigned int line,
|
||||
unsigned long *entries, unsigned int nr_entries),
|
||||
TP_ARGS(err_code, func, line, entries, nr_entries));
|
||||
|
||||
|
||||
#endif /* _TRACE_HOOK_HEALTH_REPORT_H */
|
||||
/* This part must be outside protection */
|
||||
#include <trace/define_trace.h>
|
||||
Reference in New Issue
Block a user