Blame view

include/linux/ptdump.h 567 Bytes
30d621f67   Steven Price   mm: add generic p...
1
2
3
4
5
6
7
8
9
10
11
12
13
  /* 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 {
f8f0d0b6f   Steven Price   mm: ptdump: reduc...
14
  	/* level is 0:PGD to 4:PTE, or -1 if unknown */
30d621f67   Steven Price   mm: add generic p...
15
  	void (*note_page)(struct ptdump_state *st, unsigned long addr,
99395ee3f   Steven Price   mm: ptdump: expan...
16
  			  int level, u64 val);
1494e0c38   Steven Price   x86: mm: ptdump: ...
17
  	void (*effective_prot)(struct ptdump_state *st, int level, u64 val);
30d621f67   Steven Price   mm: add generic p...
18
19
  	const struct ptdump_range *range;
  };
e47690d75   Steven Price   x86: mm: avoid al...
20
  void ptdump_walk_pgd(struct ptdump_state *st, struct mm_struct *mm, pgd_t *pgd);
30d621f67   Steven Price   mm: add generic p...
21
22
  
  #endif /* _LINUX_PTDUMP_H */