mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
ANDROID: vendor_hooks: Add vendor hooks for getting printk messages
When sudden reset by watchdog occurs, kernel log is very helpful. But the log has saved structure type in log_buf. So we want to collect the log on runtime to string format at other reserved memory. Bug: 167766040 Change-Id: Ic9686acc7c284e2ab81395fb9cc076fafe142bf9 Signed-off-by: Changki Kim <changki.kim@samsung.com>
This commit is contained in:
parent
8a8be5c013
commit
bad091cc4b
3 changed files with 9 additions and 0 deletions
|
|
@ -15,8 +15,13 @@ struct pt_regs;
|
|||
DECLARE_HOOK(android_vh_ipi_stop,
|
||||
TP_PROTO(struct pt_regs *regs),
|
||||
TP_ARGS(regs))
|
||||
|
||||
DECLARE_HOOK(android_vh_printk_store,
|
||||
TP_PROTO(int facility, int level),
|
||||
TP_ARGS(facility, level))
|
||||
#else
|
||||
#define trace_android_vh_ipi_stop(regs)
|
||||
#define trace_android_vh_printk_store(facility, level)
|
||||
#endif
|
||||
|
||||
#endif /* _TRACE_HOOK_DEBUG_H */
|
||||
|
|
|
|||
Loading…
Reference in a new issue