- Add the hook to provide additional information of sysrq crash. Bug: 170234110 Signed-off-by: Sangmoon Kim <sangmoon.kim@samsung.com> Change-Id: Ib8f14eaa639b2ef959e911d611515868ff9f193d
25 lines
765 B
C
25 lines
765 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#undef TRACE_SYSTEM
|
|
#define TRACE_SYSTEM sysrqcrash
|
|
#define TRACE_INCLUDE_PATH trace/hooks
|
|
|
|
#if !defined(_TRACE_HOOK_SYSRQCRASH_H) || defined(TRACE_HEADER_MULTI_READ)
|
|
#define _TRACE_HOOK_SYSRQCRASH_H
|
|
#include <linux/tracepoint.h>
|
|
#include <trace/hooks/vendor_hooks.h>
|
|
/*
|
|
* Following tracepoints are not exported in tracefs and provide a
|
|
* mechanism for vendor modules to hook and extend functionality
|
|
*/
|
|
#if defined(CONFIG_TRACEPOINTS) && defined(CONFIG_ANDROID_VENDOR_HOOKS)
|
|
DECLARE_HOOK(android_vh_sysrq_crash,
|
|
TP_PROTO(void *data),
|
|
TP_ARGS(data));
|
|
#else
|
|
#define trace_android_vh_sysrq_crash(data)
|
|
#endif
|
|
|
|
#endif /* _TRACE_HOOK_SYSRQCRASH_H */
|
|
/* This part must be outside protection */
|
|
#include <trace/define_trace.h>
|