1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef ASM_X86_KMEMCHECK_H
3 #define ASM_X86_KMEMCHECK_H
5 #include <linux/types.h>
6 #include <asm/ptrace.h>
8 #ifdef CONFIG_KMEMCHECK
9 bool kmemcheck_active(struct pt_regs *regs);
11 void kmemcheck_show(struct pt_regs *regs);
12 void kmemcheck_hide(struct pt_regs *regs);
14 bool kmemcheck_fault(struct pt_regs *regs,
15 unsigned long address, unsigned long error_code);
16 bool kmemcheck_trap(struct pt_regs *regs);
18 static inline bool kmemcheck_active(struct pt_regs *regs)
23 static inline void kmemcheck_show(struct pt_regs *regs)
27 static inline void kmemcheck_hide(struct pt_regs *regs)
31 static inline bool kmemcheck_fault(struct pt_regs *regs,
32 unsigned long address, unsigned long error_code)
37 static inline bool kmemcheck_trap(struct pt_regs *regs)
41 #endif /* CONFIG_KMEMCHECK */