1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #undef TRACE_SYSTEM 3 #define TRACE_SYSTEM softlockup 4 #define TRACE_INCLUDE_PATH trace/hooks 5 6 #if !defined(_TRACE_HOOK_SOFTLOCKUP_H) || defined(TRACE_HEADER_MULTI_READ) 7 #define _TRACE_HOOK_SOFTLOCKUP_H 8 #include <linux/tracepoint.h> 9 #include <trace/hooks/vendor_hooks.h> 10 /* 11 * Following tracepoints are not exported in tracefs and provide a 12 * mechanism for vendor modules to hook and extend functionality 13 */ 14 #ifdef __GENKSYMS__ 15 struct pt_regs; 16 #else 17 /* struct pt_regs */ 18 #include <asm/ptrace.h> 19 #endif /* __GENKSYMS__ */ 20 DECLARE_HOOK(android_vh_watchdog_timer_softlockup, 21 TP_PROTO(int duration, struct pt_regs *regs, bool is_panic), 22 TP_ARGS(duration, regs, is_panic)); 23 24 /* macro versions of hooks are no longer required */ 25 26 #endif /* _TRACE_HOOK_SOFTLOCKUP_H */ 27 /* This part must be outside protection */ 28 #include <trace/define_trace.h> 29