Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
dump_pagetables.c File Reference
#include <linux/debugfs.h>
#include <linux/mm.h>
#include <linux/module.h>
#include <linux/seq_file.h>
#include <asm/pgtable.h>

Go to the source code of this file.

Data Structures

struct  pg_state
 
struct  addr_marker
 

Macros

#define PTE_LEVEL_MULT   (PAGE_SIZE)
 
#define PMD_LEVEL_MULT   (PTRS_PER_PTE * PTE_LEVEL_MULT)
 
#define PUD_LEVEL_MULT   (PTRS_PER_PMD * PMD_LEVEL_MULT)
 
#define PGD_LEVEL_MULT   (PTRS_PER_PUD * PUD_LEVEL_MULT)
 
#define walk_pmd_level(m, s, a, p)   walk_pte_level(m,s,__pmd(pud_val(a)),p)
 
#define pud_large(a)   pmd_large(__pmd(pud_val(a)))
 
#define pud_none(a)   pmd_none(__pmd(pud_val(a)))
 
#define walk_pud_level(m, s, a, p)   walk_pmd_level(m,s,__pud(pgd_val(a)),p)
 
#define pgd_large(a)   pud_large(__pud(pgd_val(a)))
 
#define pgd_none(a)   pud_none(__pud(pgd_val(a)))
 

Enumerations

enum  address_markers_idx {
  IDENTITY_NR = 0, KERNEL_START_NR, KERNEL_END_NR, VMEMMAP_NR,
  VMALLOC_NR, USER_SPACE_NR = 0, KERNEL_SPACE_NR, VMALLOC_START_NR,
  VMALLOC_END_NR, FIXADDR_START_NR
}
 

Functions

 __initcall (pt_dump_init)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Arjan van de Ven <[email protected]>")
 
 MODULE_DESCRIPTION ("Kernel debugging helper that dumps pagetables")
 

Macro Definition Documentation

#define pgd_large (   a)    pud_large(__pud(pgd_val(a)))

Definition at line 295 of file dump_pagetables.c.

#define PGD_LEVEL_MULT   (PTRS_PER_PUD * PUD_LEVEL_MULT)

Definition at line 89 of file dump_pagetables.c.

#define pgd_none (   a)    pud_none(__pud(pgd_val(a)))

Definition at line 296 of file dump_pagetables.c.

#define PMD_LEVEL_MULT   (PTRS_PER_PTE * PTE_LEVEL_MULT)

Definition at line 87 of file dump_pagetables.c.

#define PTE_LEVEL_MULT   (PAGE_SIZE)

Definition at line 86 of file dump_pagetables.c.

#define pud_large (   a)    pmd_large(__pmd(pud_val(a)))

Definition at line 262 of file dump_pagetables.c.

#define PUD_LEVEL_MULT   (PTRS_PER_PMD * PMD_LEVEL_MULT)

Definition at line 88 of file dump_pagetables.c.

#define pud_none (   a)    pmd_none(__pmd(pud_val(a)))

Definition at line 263 of file dump_pagetables.c.

#define walk_pmd_level (   m,
  s,
  a,
  p 
)    walk_pte_level(m,s,__pmd(pud_val(a)),p)

Definition at line 261 of file dump_pagetables.c.

#define walk_pud_level (   m,
  s,
  a,
  p 
)    walk_pmd_level(m,s,__pud(pgd_val(a)),p)

Definition at line 294 of file dump_pagetables.c.

Enumeration Type Documentation

Enumerator:
IDENTITY_NR 
KERNEL_START_NR 
KERNEL_END_NR 
VMEMMAP_NR 
VMALLOC_NR 
USER_SPACE_NR 
KERNEL_SPACE_NR 
VMALLOC_START_NR 
VMALLOC_END_NR 
FIXADDR_START_NR 

Definition at line 41 of file dump_pagetables.c.

Function Documentation

__initcall ( pt_dump_init  )
MODULE_AUTHOR ( "Arjan van de Ven <[email protected]>"  )
MODULE_DESCRIPTION ( "Kernel debugging helper that dumps pagetables"  )
MODULE_LICENSE ( "GPL"  )