Add hook to gather data of bug trap and summarize it with other information. It helps the bootloader produce the summary information when kernel panic or watchdog reset occurs. It can be obtained through Ramdump, etc., and this information can be used to quickly classify and respond to problems. Bug: 326888644 Bug: 381974812 Change-Id: I4aa398f42e13b50b719f91042d89290d03090d2a Signed-off-by: Sangmoon Kim <sangmoon.kim@samsung.com> (cherry picked from commit e74b4da79162aaf5ad40d1df6200da47953d0ff1) Signed-off-by: Cixi Geng <cixi.geng1@unisoc.com>
17 lines
518 B
C
17 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>
|