13d0407baSopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
23d0407baSopenharmony_ci#undef TRACE_SYSTEM
33d0407baSopenharmony_ci#define TRACE_SYSTEM bug
43d0407baSopenharmony_ci#define TRACE_INCLUDE_PATH trace/hooks
53d0407baSopenharmony_ci
63d0407baSopenharmony_ci#if !defined(_TRACE_HOOK_BUG_H) || defined(TRACE_HEADER_MULTI_READ)
73d0407baSopenharmony_ci#define _TRACE_HOOK_BUG_H
83d0407baSopenharmony_ci#include <linux/tracepoint.h>
93d0407baSopenharmony_ci#include <trace/hooks/vendor_hooks.h>
103d0407baSopenharmony_ci/*
113d0407baSopenharmony_ci * Following tracepoints are not exported in tracefs and provide a
123d0407baSopenharmony_ci * mechanism for vendor modules to hook and extend functionality
133d0407baSopenharmony_ci */
143d0407baSopenharmony_ciDECLARE_RESTRICTED_HOOK(android_rvh_report_bug,
153d0407baSopenharmony_ci	TP_PROTO(const char *file, unsigned int line, unsigned long bugaddr),
163d0407baSopenharmony_ci	TP_ARGS(file, line, bugaddr), 1);
173d0407baSopenharmony_ci
183d0407baSopenharmony_ci/* macro versions of hooks are no longer required */
193d0407baSopenharmony_ci
203d0407baSopenharmony_ci#endif /* _TRACE_HOOK_BUG_H */
213d0407baSopenharmony_ci/* This part must be outside protection */
223d0407baSopenharmony_ci#include <trace/define_trace.h>
23