/* * Generic show_mem() implementation * * Copyright (C) 2008 Johannes Weiner <hannes@saeurebad.de> * All code subject to the GPL version 2. */ #include <linux/mm.h> #include <linux/quicklist.h> #include <linux/cma.h> void show_mem(unsigned int filter) { pg_data_t *pgdat; unsigned long total = 0, reserved = 0, highmem = 0; printk("Mem-Info:\n"); show_free_areas(filter); for_each_online_pgdat(pgdat) { unsigned long flags; int zoneid; pgdat_resize_lock(pgdat, &flags); for (zoneid = 0; zoneid < MAX_NR_ZONES; zoneid++) { struct zone *zone = &pgdat->node_zones[zoneid]; if (!populated_zone(zone)) continue; total += zone->present_pages; reserved += zone->present_pages - zone->managed_pages; if (is_highmem_idx(zoneid)) highmem += zone->present_pages; } pgdat_resize_unlock(pgdat, &flags); } printk("%lu pages RAM\n", total); printk("%lu pages HighMem/MovableOnly\n", highmem); printk("%lu pages reserved\n", reserved); #ifdef CONFIG_CMA printk("%lu pages cma reserved\n", totalcma_pages); #endif #ifdef CONFIG_QUICKLIST printk("%lu pages in pagetable cache\n", quicklist_total_size()); #endif #ifdef CONFIG_MEMORY_FAILURE printk("%lu pages hwpoisoned\n", atomic_long_read(&num_poisoned_pages)); #endif } ected'>nds-private-remove</option> <option value='packet-loop-back'>packet-loop-back</option> <option value='packet-rx-pump-back'>packet-rx-pump-back</option> </select> <input type='submit' value='switch'/></form></td></tr> <tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table> <table class='tabs'><tr><td> <a href='/cgit.cgi/linux/net-next.git/?h=nds-private-remove'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?h=nds-private-remove&id=883af14e67e8b8702b5560aa64c888c0cd0bd66c'>refs</a><a href='/cgit.cgi/linux/net-next.git/log/include/dt-bindings/pinctrl/pinctrl-tegra.h?h=nds-private-remove'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/include/dt-bindings/pinctrl/pinctrl-tegra.h?h=nds-private-remove&id=883af14e67e8b8702b5560aa64c888c0cd0bd66c'>tree</a><a class='active' href='/cgit.cgi/linux/net-next.git/commit/include/dt-bindings/pinctrl/pinctrl-tegra.h?h=nds-private-remove&id=883af14e67e8b8702b5560aa64c888c0cd0bd66c'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/include/dt-bindings/pinctrl/pinctrl-tegra.h?h=nds-private-remove&id=883af14e67e8b8702b5560aa64c888c0cd0bd66c'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/include/dt-bindings/pinctrl/pinctrl-tegra.h'> <input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='883af14e67e8b8702b5560aa64c888c0cd0bd66c'/><select name='qt'> <option value='grep'>log msg</option> <option value='author'>author</option> <option value='committer'>committer</option> <option value='range'>range</option> </select> <input class='txt' type='search' size='10' name='q' value=''/> <input type='submit' value='search'/> </form> </td></tr></table> <div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/commit/?h=nds-private-remove&id=883af14e67e8b8702b5560aa64c888c0cd0bd66c'>root</a>/<a href='/cgit.cgi/linux/net-next.git/commit/include?h=nds-private-remove&id=883af14e67e8b8702b5560aa64c888c0cd0bd66c'>include</a>/<a href='/cgit.cgi/linux/net-next.git/commit/include/dt-bindings?h=nds-private-remove&id=883af14e67e8b8702b5560aa64c888c0cd0bd66c'>dt-bindings</a>/<a href='/cgit.cgi/linux/net-next.git/commit/include/dt-bindings/pinctrl?h=nds-private-remove&id=883af14e67e8b8702b5560aa64c888c0cd0bd66c'>pinctrl</a>/<a href='/cgit.cgi/linux/net-next.git/commit/include/dt-bindings/pinctrl/pinctrl-tegra.h?h=nds-private-remove&id=883af14e67e8b8702b5560aa64c888c0cd0bd66c'>pinctrl-tegra.h</a></div><div class='content'><div class='cgit-panel'><b>diff options</b><form method='get'><input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='883af14e67e8b8702b5560aa64c888c0cd0bd66c'/><table><tr><td colspan='2'/></tr><tr><td class='label'>context:</td><td class='ctrl'><select name='context' onchange='this.form.submit();'><option value='1'>1</option><option value='2'>2</option><option value='3' selected='selected'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option><option value='10'>10</option><option value='15'>15</option><option value='20'>20</option><option value='25'>25</option><option value='30'>30</option><option value='35'>35</option><option value='40'>40</option></select></td></tr><tr><td class='label'>space:</td><td class='ctrl'><select name='ignorews' onchange='this.form.submit();'><option value='0' selected='selected'>include</option><option value='1'>ignore</option></select></td></tr><tr><td class='label'>mode:</td><td class='ctrl'><select name='dt' onchange='this.form.submit();'><option value='0' selected='selected'>unified</option><option value='1'>ssdiff</option><option value='2'>stat only</option></select></td></tr><tr><td/><td class='ctrl'><noscript><input type='submit' value='reload'/></noscript></td></tr></table></form></div><table summary='commit info' class='commit-info'> <tr><th>author</th><td>Linus Torvalds <torvalds@linux-foundation.org></td><td class='right'>2017-01-24 16:54:39 -0800</td></tr> <tr><th>committer</th><td>Linus Torvalds <torvalds@linux-foundation.org></td><td class='right'>2017-01-24 16:54:39 -0800</td></tr> <tr><th>commit</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/include/dt-bindings/pinctrl/pinctrl-tegra.h?h=nds-private-remove&id=883af14e67e8b8702b5560aa64c888c0cd0bd66c'>883af14e67e8b8702b5560aa64c888c0cd0bd66c</a> (<a href='/cgit.cgi/linux/net-next.git/patch/include/dt-bindings/pinctrl/pinctrl-tegra.h?id=883af14e67e8b8702b5560aa64c888c0cd0bd66c'>patch</a>)</td></tr> <tr><th>tree</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/tree/?h=nds-private-remove&id=883af14e67e8b8702b5560aa64c888c0cd0bd66c'>74e3a6b53f5fad9f7848ab1b9f6921b7012940a4</a> /<a href='/cgit.cgi/linux/net-next.git/tree/include/dt-bindings/pinctrl/pinctrl-tegra.h?h=nds-private-remove&id=883af14e67e8b8702b5560aa64c888c0cd0bd66c'>include/dt-bindings/pinctrl/pinctrl-tegra.h</a></td></tr> <tr><th>parent</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/include/dt-bindings/pinctrl/pinctrl-tegra.h?h=nds-private-remove&id=0263d4ebd94b36280608e296cba39b924b6e832b'>0263d4ebd94b36280608e296cba39b924b6e832b</a> (<a href='/cgit.cgi/linux/net-next.git/diff/include/dt-bindings/pinctrl/pinctrl-tegra.h?h=nds-private-remove&id=883af14e67e8b8702b5560aa64c888c0cd0bd66c&id2=0263d4ebd94b36280608e296cba39b924b6e832b'>diff</a>)</td></tr><tr><th>parent</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/include/dt-bindings/pinctrl/pinctrl-tegra.h?h=nds-private-remove&id=aab45453ff5c77200c6da4ac909f7a4392aed17e'>aab45453ff5c77200c6da4ac909f7a4392aed17e</a> (<a href='/cgit.cgi/linux/net-next.git/diff/include/dt-bindings/pinctrl/pinctrl-tegra.h?h=nds-private-remove&id=883af14e67e8b8702b5560aa64c888c0cd0bd66c&id2=aab45453ff5c77200c6da4ac909f7a4392aed17e'>diff</a>)</td></tr></table> <div class='commit-subject'>Merge branch 'akpm' (patches from Andrew)</div><div class='commit-msg'>Merge fixes from Andrew Morton: "26 fixes" * emailed patches from Andrew Morton <akpm@linux-foundation.org>: (26 commits) MAINTAINERS: add Dan Streetman to zbud maintainers MAINTAINERS: add Dan Streetman to zswap maintainers mm: do not export ioremap_page_range symbol for external module mn10300: fix build error of missing fpu_save() romfs: use different way to generate fsid for BLOCK or MTD frv: add missing atomic64 operations mm, page_alloc: fix premature OOM when racing with cpuset mems update mm, page_alloc: move cpuset seqcount checking to slowpath mm, page_alloc: fix fast-path race with cpuset update or removal mm, page_alloc: fix check for NULL preferred_zone kernel/panic.c: add missing \n fbdev: color map copying bounds checking frv: add atomic64_add_unless() mm/mempolicy.c: do not put mempolicy before using its nodemask radix-tree: fix private list warnings Documentation/filesystems/proc.txt: add VmPin mm, memcg: do not retry precharge charges proc: add a schedule point in proc_pid_readdir() mm: alloc_contig: re-allow CMA to compact FS pages mm/slub.c: trace free objects at KERN_INFO ... </div><div class='diffstat-header'><a href='/cgit.cgi/linux/net-next.git/diff/?h=nds-private-remove&id=883af14e67e8b8702b5560aa64c888c0cd0bd66c'>Diffstat</a> (limited to 'include/dt-bindings/pinctrl/pinctrl-tegra.h')</div><table summary='diffstat' class='diffstat'>