
Initial kernel bootup logs get overwritten after running for a long time, and there can be debugging scenario where we need initial ~100s bootup logs for debugging. 'android_vh_initial_logbuf' vendor hook is helping in achieving this purpose. Bug: 185182649 Change-Id: I706824aeb566c09ecaf4b5900973d6cee8a2f35b Signed-off-by: Mukesh Ojha <mojha@codeaurora.org>
27 lines
696 B
C
27 lines
696 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#undef TRACE_SYSTEM
|
|
#define TRACE_SYSTEM logbuf
|
|
|
|
#define TRACE_INCLUDE_PATH trace/hooks
|
|
|
|
#if !defined(_TRACE_HOOK_LOGBUF_H) || defined(TRACE_HEADER_MULTI_READ)
|
|
#define _TRACE_HOOK_LOGBUF_H
|
|
|
|
#include <linux/tracepoint.h>
|
|
#include <trace/hooks/vendor_hooks.h>
|
|
|
|
#if defined(CONFIG_TRACEPOINTS) && defined(CONFIG_ANDROID_VENDOR_HOOKS)
|
|
struct printk_ringbuffer;
|
|
struct printk_record;
|
|
|
|
DECLARE_HOOK(android_vh_logbuf,
|
|
TP_PROTO(struct printk_ringbuffer *rb, struct printk_record *r),
|
|
TP_ARGS(rb, r))
|
|
#else
|
|
#define trace_android_vh_logbuf(rb, r)
|
|
#endif
|
|
|
|
#endif /* _TRACE_HOOK_LOGBUF_H */
|
|
/* This part must be outside protection */
|
|
#include <trace/define_trace.h>
|