android_kernel_msm-6.1_noth.../include/trace/hooks/bug.h
Sangmoon Kim e74b4da791 ANDROID: bug: add vendor hook for bug trap
Add hook to gather data of bug trap and summarize it with other
information.

Bug: 273189923

Signed-off-by: Sangmoon Kim <sangmoon.kim@samsung.com>
Change-Id: I1f347c20629786f9bf0b9c50c7f96b50b4360504
(cherry picked from commit ba7e9d1a771d6e5a07bb242a720e6c95cc98fb0f)
2023-03-13 20:34:25 +00:00

16 lines
518 B
C

/* SPDX-License-Identifier: GPL-2.0 */
#undef TRACE_SYSTEM
#define TRACE_SYSTEM bug
#define TRACE_INCLUDE_PATH trace/hooks
#if !defined(_TRACE_HOOK_BUG_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_HOOK_BUG_H
#include <trace/hooks/vendor_hooks.h>
DECLARE_RESTRICTED_HOOK(android_rvh_report_bug,
TP_PROTO(const char *file, unsigned int line, unsigned long bugaddr),
TP_ARGS(file, line, bugaddr), 1);
#endif /* _TRACE_HOOK_BUG_H */
/* This part must be outside protection */
#include <trace/define_trace.h>