Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / arch / arm / include / asm / ptdump.h
blob46a4575146ee85810fc948ef38d614d5082b2d8f
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (C) 2014 ARM Ltd. */
3 #ifndef __ASM_PTDUMP_H
4 #define __ASM_PTDUMP_H
6 #ifdef CONFIG_ARM_PTDUMP_CORE
8 #include <linux/mm_types.h>
9 #include <linux/seq_file.h>
11 struct addr_marker {
12 unsigned long start_address;
13 char *name;
16 struct ptdump_info {
17 struct mm_struct *mm;
18 const struct addr_marker *markers;
19 unsigned long base_addr;
22 void ptdump_walk_pgd(struct seq_file *s, struct ptdump_info *info);
23 #ifdef CONFIG_ARM_PTDUMP_DEBUGFS
24 #define EFI_RUNTIME_MAP_END SZ_1G
25 void ptdump_debugfs_register(struct ptdump_info *info, const char *name);
26 #else
27 static inline void ptdump_debugfs_register(struct ptdump_info *info,
28 const char *name) { }
29 #endif /* CONFIG_ARM_PTDUMP_DEBUGFS */
31 void ptdump_check_wx(void);
33 #endif /* CONFIG_ARM_PTDUMP_CORE */
35 #ifdef CONFIG_ARM_DEBUG_WX
36 #define arm_debug_checkwx() ptdump_check_wx()
37 #else
38 #define arm_debug_checkwx() do { } while (0)
39 #endif
41 #endif /* __ASM_PTDUMP_H */