Function report |
Source Code:mm\page_owner.c |
Create Date:2022-07-28 16:23:42 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:pagetypeinfo_showmixedcount_print
Proto:void pagetypeinfo_showmixedcount_print(struct seq_file *m, pg_data_t *pgdat, struct zone *zone)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct seq_file * | m | |
pg_data_t * | pgdat | |
struct zone * | zone |
260 | end_pfn = pfn + spanned_pages |
261 | unsigned long count[MIGRATE_TYPES] = {0, } |
275 | If Not page Then |
276 | pfn = @a is a power of 2 value (pfn + 1, MAX_ORDER_NR_PAGES) |
277 | Continue |
280 | block_end_pfn = @a is a power of 2 value (pfn + 1, pageblock_nr_pages) |
281 | block_end_pfn = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(block_end_pfn, end_pfn) |
285 | When pfn < block_end_pfn cycle |
286 | If Not pfn_valid_within(pfn) Then Continue |
290 | page = pfn_to_page(pfn) |
298 | freepage_order = Like page_order(), but for callers who cannot afford to hold the zone lock(page) |
299 | If freepage_order < Free memory management - zoned buddy allocator. Then pfn += (1UL << freepage_order) - 1 |
301 | Continue |
304 | If PageReserved(page) Then Continue |
307 | page_ext = lookup_page_ext(page) |
308 | If Value for the false possibility is greater at compile time(!page_ext) Then Continue |
311 | If Not st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then Continue |
314 | page_owner = get_page_owner(page_ext) |
317 | If pageblock_mt != page_mt Then |
318 | If is_migrate_cma(pageblock_mt) Then count[MIGRATE_MOVABLE]++ |
320 | Else count[pageblock_mt]++ |
323 | pfn = block_end_pfn |
324 | Break |
331 | seq_printf(m, "Node %d, zone %8s ", node_id, name) |
332 | When i < MIGRATE_TYPES cycle seq_printf(m, "%12lu ", count[i]) |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |