blob: ed3be8a0d74b15c2a497b545e5730da63a98b706 [file] [log] [blame]
/* 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 <linux/trace_seq.h>
#include <linux/trace_events.h>
#include <linux/tracepoint.h>
#include <trace/hooks/vendor_hooks.h>
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));
/* macro versions of hooks are no longer required */
#endif /* _TRACE_HOOK_FTRACE_DUMP_H */
/* This part must be outside protection */
#include <trace/define_trace.h>