mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
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 ba7e9d1a77)
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>
|