Files
RedBear-OS/local/recipes/gpu/amdgpu-source/include/linux/ptdump.h
T
vasilito dc68054305 restore lost packages from 0.2.3 + fix overwritten 0.2.4 files
- Restore 29 recipe symlinks (libdrm, qtbase, dbus, sddm, pipewire, etc.)
- Restore 33 patches (KDE, libdrm, mesa, pipewire, sddm, wireplumber)
- Restore 20+ local/scripts (audit, lint, test, build helpers)
- Restore src/cook/scheduler.rs, status.rs, gnu-config/
- Restore scripts/patch-inclusion-gate.sh, run_mini1.sh, validate-collision-log.sh
- Recover TLC source from HEAD (was overwritten by 0.2.3 checkout)
- Recover 11 local/docs plans from HEAD (were overwritten)
- Recover qt6-wayland-smoke symlink from HEAD
- Fix MOTD: remove garbled ASCII art, use clean text
- Update version: 0.2.0 -> 0.2.4 in os-release, motd, config
- Reduce filesystem_size: 1536 -> 512 MiB
- Add ABSOLUTE RULE to AGENTS.md: never delete/ignore packages
- Reduce pcid scheme log verbosity: info -> debug
2026-06-19 12:39:14 +03:00

41 lines
1.3 KiB
C

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _LINUX_PTDUMP_H
#define _LINUX_PTDUMP_H
#include <linux/mm_types.h>
struct ptdump_range {
unsigned long start;
unsigned long end;
};
struct ptdump_state {
void (*note_page_pte)(struct ptdump_state *st, unsigned long addr, pte_t pte);
void (*note_page_pmd)(struct ptdump_state *st, unsigned long addr, pmd_t pmd);
void (*note_page_pud)(struct ptdump_state *st, unsigned long addr, pud_t pud);
void (*note_page_p4d)(struct ptdump_state *st, unsigned long addr, p4d_t p4d);
void (*note_page_pgd)(struct ptdump_state *st, unsigned long addr, pgd_t pgd);
void (*note_page_flush)(struct ptdump_state *st);
void (*effective_prot_pte)(struct ptdump_state *st, pte_t pte);
void (*effective_prot_pmd)(struct ptdump_state *st, pmd_t pmd);
void (*effective_prot_pud)(struct ptdump_state *st, pud_t pud);
void (*effective_prot_p4d)(struct ptdump_state *st, p4d_t p4d);
void (*effective_prot_pgd)(struct ptdump_state *st, pgd_t pgd);
const struct ptdump_range *range;
};
bool ptdump_walk_pgd_level_core(struct seq_file *m,
struct mm_struct *mm, pgd_t *pgd,
bool checkwx, bool dmesg);
void ptdump_walk_pgd(struct ptdump_state *st, struct mm_struct *mm, pgd_t *pgd);
bool ptdump_check_wx(void);
static inline void debug_checkwx(void)
{
if (IS_ENABLED(CONFIG_DEBUG_WX))
ptdump_check_wx();
}
#endif /* _LINUX_PTDUMP_H */