/* SPDX-License-Identifier: GPL-2.0 */
#undef TRACE_SYSTEM
#define TRACE_SYSTEM ftrace_dump

#define TRACE_INCLUDE_PATH trace/hooks

#if !defined(_TRACE_HOOK_FTRACE_DUMP_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_HOOK_FTRACE_DUMP_H
#include <trace/hooks/vendor_hooks.h>

#ifdef __GENKSYMS__
#include <linux/trace_seq.h>
#include <linux/trace_events.h>
#endif

struct trace_seq;

DECLARE_HOOK(android_vh_ftrace_oops_enter,
	TP_PROTO(bool *ftrace_check),
	TP_ARGS(ftrace_check));

DECLARE_HOOK(android_vh_ftrace_oops_exit,
	TP_PROTO(bool *ftrace_check),
	TP_ARGS(ftrace_check));

DECLARE_HOOK(android_vh_ftrace_size_check,
	TP_PROTO(unsigned long size, bool *ftrace_check),
	TP_ARGS(size, ftrace_check));

DECLARE_HOOK(android_vh_ftrace_format_check,
	TP_PROTO(bool *ftrace_check),
	TP_ARGS(ftrace_check));

DECLARE_HOOK(android_vh_ftrace_dump_buffer,
	TP_PROTO(struct trace_seq *trace_buf, bool *dump_printk),
	TP_ARGS(trace_buf, dump_printk));

#endif 

#include <trace/define_trace.h>
