ANDROID: vendor_hooks:vendor hook for fiq
A hardware exception interrupt will be routed to kernel as fiq by atf, we need to save logs/regs info to ddr when the fiq ocurred. Therefore, a hook point is added before the fiq handler. Bug: 335522774 Change-Id: I18fa76425cbc39b0f895d3907475c2dfc04c247f Signed-off-by: qiusanming <qiusanming@xiaomi.com> (cherry picked from commit f052f87d33f9f26ae0d420503a5043fd3f42dbf8)
This commit is contained in:
@@ -15,6 +15,10 @@ DECLARE_HOOK(android_vh_gic_set_affinity,
|
||||
bool force, u8 *gic_cpu_map, void __iomem *reg),
|
||||
TP_ARGS(d, mask_val, force, gic_cpu_map, reg));
|
||||
|
||||
DECLARE_RESTRICTED_HOOK(android_rvh_fiq_dump,
|
||||
TP_PROTO(struct pt_regs *regs),
|
||||
TP_ARGS(regs), 1);
|
||||
|
||||
#endif /* _TRACE_HOOK_GIC_H */
|
||||
/* This part must be outside protection */
|
||||
#include <trace/define_trace.h>
|
||||
|
||||
Reference in New Issue
Block a user