You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.1 KiB
36 lines
1.1 KiB
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#undef TRACE_SYSTEM
|
|
#define TRACE_SYSTEM traps
|
|
#define TRACE_INCLUDE_PATH trace/hooks
|
|
|
|
#if !defined(_TRACE_HOOK_TRAPS_H) || defined(TRACE_HEADER_MULTI_READ)
|
|
#define _TRACE_HOOK_TRAPS_H
|
|
#include <trace/hooks/vendor_hooks.h>
|
|
|
|
struct pt_regs;
|
|
|
|
DECLARE_RESTRICTED_HOOK(android_rvh_do_undefinstr,
|
|
TP_PROTO(struct pt_regs *regs, unsigned long esr),
|
|
TP_ARGS(regs, esr),
|
|
TP_CONDITION(!user_mode(regs)));
|
|
|
|
DECLARE_RESTRICTED_HOOK(android_rvh_do_el1_bti,
|
|
TP_PROTO(struct pt_regs *regs, unsigned long esr),
|
|
TP_ARGS(regs, esr), 1);
|
|
|
|
DECLARE_RESTRICTED_HOOK(android_rvh_do_el1_fpac,
|
|
TP_PROTO(struct pt_regs *regs, unsigned long esr),
|
|
TP_ARGS(regs, esr), 1);
|
|
|
|
DECLARE_RESTRICTED_HOOK(android_rvh_panic_unhandled,
|
|
TP_PROTO(struct pt_regs *regs, const char *vector, unsigned long esr),
|
|
TP_ARGS(regs, vector, esr), 1);
|
|
|
|
DECLARE_RESTRICTED_HOOK(android_rvh_arm64_serror_panic,
|
|
TP_PROTO(struct pt_regs *regs, unsigned long esr),
|
|
TP_ARGS(regs, esr), 1);
|
|
|
|
#endif /* _TRACE_HOOK_TRAPS_H */
|
|
/* This part must be outside protection */
|
|
#include <trace/define_trace.h>
|