• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #undef TRACE_SYSTEM
3 #define TRACE_SYSTEM ftrace_dump
4 
5 #define TRACE_INCLUDE_PATH trace/hooks
6 
7 #if !defined(_TRACE_HOOK_FTRACE_DUMP_H) || defined(TRACE_HEADER_MULTI_READ)
8 #define _TRACE_HOOK_FTRACE_DUMP_H
9 
10 #include <trace/hooks/vendor_hooks.h>
11 
12 struct trace_seq;
13 
14 DECLARE_HOOK(android_vh_ftrace_oops_enter,
15 	TP_PROTO(bool *ftrace_check),
16 	TP_ARGS(ftrace_check));
17 
18 DECLARE_HOOK(android_vh_ftrace_oops_exit,
19 	TP_PROTO(bool *ftrace_check),
20 	TP_ARGS(ftrace_check));
21 
22 DECLARE_HOOK(android_vh_ftrace_size_check,
23 	TP_PROTO(unsigned long size, bool *ftrace_check),
24 	TP_ARGS(size, ftrace_check));
25 
26 DECLARE_HOOK(android_vh_ftrace_format_check,
27 	TP_PROTO(bool *ftrace_check),
28 	TP_ARGS(ftrace_check));
29 
30 DECLARE_HOOK(android_vh_ftrace_dump_buffer,
31 	TP_PROTO(struct trace_seq *trace_buf, bool *dump_printk),
32 	TP_ARGS(trace_buf, dump_printk));
33 
34 #endif /* _TRACE_HOOK_FTRACE_DUMP_H */
35 /* This part must be outside protection */
36 #include <trace/define_trace.h>
37