Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2874
b: refs/heads/master
c: 6f4e1e5
h: refs/heads/master
v: v3
  • Loading branch information
Martin J. Bligh authored and Linus Torvalds committed Jun 23, 2005
1 parent caacf86 commit 5270e7b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bbfceef47fb9467424113a004070bf37a806a97c
refs/heads/master: 6f4e1e5061c44a93337338af4bf9bed10ee9f32e
8 changes: 8 additions & 0 deletions trunk/arch/i386/mm/pgtable.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ void show_mem(void)
struct page *page;
pg_data_t *pgdat;
unsigned long i;
struct page_state ps;

printk("Mem-info:\n");
show_free_areas();
Expand All @@ -53,6 +54,13 @@ void show_mem(void)
printk("%d reserved pages\n",reserved);
printk("%d pages shared\n",shared);
printk("%d pages swap cached\n",cached);

get_page_state(&ps);
printk("%lu pages dirty\n", ps.nr_dirty);
printk("%lu pages writeback\n", ps.nr_writeback);
printk("%lu pages mapped\n", ps.nr_mapped);
printk("%lu pages slab\n", ps.nr_slab);
printk("%lu pages pagetables\n", ps.nr_page_table_pages);
}

/*
Expand Down

0 comments on commit 5270e7b

Please sign in to comment.