Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\crash_core.c Create Date:2022-07-28 11:01:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:crash_save_vmcoreinfo_init

Proto:static int __init crash_save_vmcoreinfo_init(void)

Type:int

Parameter:Nothing

381  vmcoreinfo stuff = get_zeroed_page(GFP_KERNEL)
382  If Not vmcoreinfo stuff Then
383  pr_warn("Memory allocation for vmcoreinfo_data failed\n")
384  Return -ENOMEM
387  vmcoreinfo_note = alloc_pages_exact(VMCOREINFO_NOTE_SIZE, GFP_KERNEL | __GFP_ZERO)
389  If Not vmcoreinfo_note Then
390  free_page((unsignedlong)vmcoreinfo stuff )
391  vmcoreinfo stuff = NULL
392  pr_warn("Memory allocation for vmcoreinfo_note failed\n")
393  Return -ENOMEM
396  VMCOREINFO_OSRELEASE(release)
397  VMCOREINFO_PAGESIZE(PAGE_SIZE)
399  VMCOREINFO_SYMBOL(init_uts_ns)
400  VMCOREINFO_SYMBOL(node_online_map)
402  VMCOREINFO_SYMBOL_ARRAY(swapper_pg_dir)
404  VMCOREINFO_SYMBOL(Usage guidelines:* _text, _data: architecture specific, don't use them in arch-independent code* [_stext, _etext]: contains .text.* sections, may also contain .rodata.** and/or .init.* sections* [_sdata, _edata]: contains )
405  VMCOREINFO_SYMBOL(Internals. Dont't use..)
408  VMCOREINFO_SYMBOL(The array of struct pages - for discontigmem use pgdat->lmem_map )
409  VMCOREINFO_SYMBOL(contig_page_data)
417  VMCOREINFO_STRUCT_SIZE(page)
418  VMCOREINFO_STRUCT_SIZE(pglist_data)
419  VMCOREINFO_STRUCT_SIZE(zone)
420  VMCOREINFO_STRUCT_SIZE(free_area)
421  VMCOREINFO_STRUCT_SIZE(list_head)
422  VMCOREINFO_SIZE(nodemask_t)
423  VMCOREINFO_OFFSET(page, prefix, newline flags )
424  VMCOREINFO_OFFSET(page, _refcount)
425  VMCOREINFO_OFFSET(page, mapping)
426  VMCOREINFO_OFFSET(page, lru)
427  VMCOREINFO_OFFSET(page, _mapcount)
428  VMCOREINFO_OFFSET(page, private)
429  VMCOREINFO_OFFSET(page, compound_dtor)
430  VMCOREINFO_OFFSET(page, compound_order)
431  VMCOREINFO_OFFSET(page, compound_head)
432  VMCOREINFO_OFFSET(pglist_data, node_zones)
433  VMCOREINFO_OFFSET(pglist_data, nr_zones)
437  VMCOREINFO_OFFSET(pglist_data, node_start_pfn)
438  VMCOREINFO_OFFSET(pglist_data, node_spanned_pages)
439  VMCOREINFO_OFFSET(pglist_data, node_id)
440  VMCOREINFO_OFFSET(zone, free_area)
441  VMCOREINFO_OFFSET(zone, vm_stat)
442  VMCOREINFO_OFFSET(zone, spanned_pages)
443  VMCOREINFO_OFFSET(free_area, free_list)
444  VMCOREINFO_OFFSET(list_head, next)
445  VMCOREINFO_OFFSET(list_head, prev)
446  VMCOREINFO_OFFSET(vmap_area, va_start)
447  VMCOREINFO_OFFSET(vmap_area, list)
448  VMCOREINFO_LENGTH( Write-intensive fields used from the page allocator , Free memory management - zoned buddy allocator. )
449  log_buf_vmcoreinfo_setup()
450  VMCOREINFO_LENGTH(free_list, MIGRATE_TYPES)
451  VMCOREINFO_NUMBER(NR_FREE_PAGES)
452  VMCOREINFO_NUMBER(PG_lru)
453  VMCOREINFO_NUMBER(PG_private)
454  VMCOREINFO_NUMBER(PG_swapcache)
455  VMCOREINFO_NUMBER(PG_swapbacked)
456  VMCOREINFO_NUMBER(PG_slab)
458  VMCOREINFO_NUMBER(PG_hwpoison)
460  VMCOREINFO_NUMBER(PG_head_mask)
462  VMCOREINFO_NUMBER(PAGE_BUDDY_MAPCOUNT_VALUE)
464  VMCOREINFO_NUMBER(HUGETLB_PAGE_DTOR)
466  VMCOREINFO_NUMBER(PAGE_OFFLINE_MAPCOUNT_VALUE)
469  provide an empty default implementation here -- architecture* code may override this
470  update_vmcoreinfo_note()
472  Return 0