
This reverts half of commit 06d074249f
.
The hooks android_rvh_do_bti is not used by any vendor, so remove them
to help with merge issues with future LTS releases.
If this is needed by any real user, it can easily be reverted to add it
back and then the symbol should be added to the abi list at the same
time to prevent it from being removed again later.
Bug: 203187389
Cc: Sangmoon Kim <sangmoon.kim@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I840399ee4461c6bffa8c8b63d9cd5748d88d2aae
38 lines
1.2 KiB
C
38 lines
1.2 KiB
C
/* 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 <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
|
|
*/
|
|
struct pt_regs;
|
|
DECLARE_RESTRICTED_HOOK(android_rvh_do_undefinstr,
|
|
TP_PROTO(struct pt_regs *regs, bool user),
|
|
TP_ARGS(regs, user),
|
|
TP_CONDITION(!user));
|
|
|
|
DECLARE_RESTRICTED_HOOK(android_rvh_do_ptrauth_fault,
|
|
TP_PROTO(struct pt_regs *regs, unsigned int esr, bool user),
|
|
TP_ARGS(regs, esr, user),
|
|
TP_CONDITION(!user));
|
|
|
|
DECLARE_RESTRICTED_HOOK(android_rvh_bad_mode,
|
|
TP_PROTO(struct pt_regs *regs, unsigned int esr, int reason),
|
|
TP_ARGS(regs, reason, esr), 1);
|
|
|
|
DECLARE_RESTRICTED_HOOK(android_rvh_arm64_serror_panic,
|
|
TP_PROTO(struct pt_regs *regs, unsigned int esr),
|
|
TP_ARGS(regs, esr), 1);
|
|
|
|
/* macro versions of hooks are no longer required */
|
|
|
|
#endif /* _TRACE_HOOK_TRAPS_H */
|
|
/* This part must be outside protection */
|
|
#include <trace/define_trace.h>
|