| /linux-6.15/arch/powerpc/include/asm/ |
| H A D | pgalloc.h | 12 return gfp | __GFP_ACCOUNT; in pgtable_gfp_flags() 17 return gfp | __GFP_ACCOUNT; in pgtable_gfp_flags()
|
| /linux-6.15/include/linux/ |
| H A D | gfp_types.h | 153 #define __GFP_ACCOUNT ((__force gfp_t)___GFP_ACCOUNT) macro 379 #define GFP_KERNEL_ACCOUNT (GFP_KERNEL | __GFP_ACCOUNT)
|
| H A D | slab.h | 634 (IS_ENABLED(CONFIG_MEMCG) ? __GFP_ACCOUNT : 0))
|
| /linux-6.15/Documentation/translations/zh_CN/mm/ |
| H A D | vmalloced-kernel-stacks.rst | 87 进行memcg核算。因此,__vmalloc_node_range被调用时没有__GFP_ACCOUNT。
|
| /linux-6.15/Documentation/translations/zh_CN/core-api/ |
| H A D | memory-allocation.rst | 53 * 从用户空间触发的不可信任的分配应该是kmem核算的对象,必须设置 ``__GFP_ACCOUNT`` 位。
|
| /linux-6.15/arch/powerpc/mm/ |
| H A D | pgtable-frag.c | 61 ptdesc = pagetable_alloc(PGALLOC_GFP | __GFP_ACCOUNT, 0); in __alloc_for_ptecache()
|
| /linux-6.15/include/trace/events/ |
| H A D | kmem.h | 40 ((gfp_flags & __GFP_ACCOUNT) || 91 (__entry->gfp_flags & (__force unsigned long)__GFP_ACCOUNT)) ? "true" : "false")
|
| /linux-6.15/include/asm-generic/ |
| H A D | pgalloc.h | 8 #define GFP_PGTABLE_USER (GFP_PGTABLE_KERNEL | __GFP_ACCOUNT)
|
| /linux-6.15/arch/s390/kernel/diag/ |
| H A D | diag310.c | 264 buf = __vmalloc_node(data_size, PAGE_SIZE, GFP_KERNEL | __GFP_ZERO | __GFP_ACCOUNT, in diag310_memtop_buf()
|
| /linux-6.15/kernel/bpf/ |
| H A D | memalloc.c | 212 gfp = __GFP_NOWARN | __GFP_ACCOUNT; in alloc_bulk() 998 ret = __alloc(c, NUMA_NO_NODE, GFP_KERNEL | __GFP_NOWARN | __GFP_ACCOUNT); in bpf_mem_cache_alloc_flags()
|
| H A D | syscall.c | 511 ptr = kmalloc_node(size, flags | __GFP_ACCOUNT, node); in bpf_map_kmalloc_node() 525 ptr = kzalloc(size, flags | __GFP_ACCOUNT); in bpf_map_kzalloc() 540 ptr = kvcalloc(n, size, flags | __GFP_ACCOUNT); in bpf_map_kvcalloc() 555 ptr = __alloc_percpu_gfp(size, align, flags | __GFP_ACCOUNT); in bpf_map_alloc_percpu() 584 GFP_KERNEL | __GFP_ZERO | __GFP_ACCOUNT in __bpf_alloc_page()
|
| /linux-6.15/lib/ |
| H A D | xarray.c | 308 gfp |= __GFP_ACCOUNT; in xas_nomem() 338 gfp |= __GFP_ACCOUNT; in __xas_nomem() 376 gfp |= __GFP_ACCOUNT; in xas_alloc() 1189 gfp |= __GFP_ACCOUNT; in xas_try_split()
|
| H A D | radix-tree.c | 332 gfp_mask &= ~__GFP_ACCOUNT; in __radix_tree_preload()
|
| /linux-6.15/Documentation/mm/ |
| H A D | vmalloced-kernel-stacks.rst | 96 Hence, __vmalloc_node_range is called without __GFP_ACCOUNT.
|
| /linux-6.15/arch/powerpc/mm/book3s64/ |
| H A D | pgtable.c | 421 gfp &= ~__GFP_ACCOUNT; in __alloc_for_pmdcache()
|
| /linux-6.15/arch/x86/mm/ |
| H A D | pgtable.c | 199 gfp &= ~__GFP_ACCOUNT; in preallocate_pmds()
|
| /linux-6.15/fs/ |
| H A D | buffer.c | 969 gfp_t gfp = GFP_NOFS | __GFP_ACCOUNT; in alloc_page_buffers() 1075 bh = folio_alloc_buffers(folio, size, gfp | __GFP_ACCOUNT); in grow_dev_folio() 1695 gfp_t gfp = GFP_NOFS | __GFP_ACCOUNT | __GFP_NOFAIL; in create_empty_buffers()
|
| H A D | pipe.c | 125 return alloc_page(GFP_HIGHUSER | __GFP_ACCOUNT); in anon_pipe_get_page()
|
| /linux-6.15/arch/riscv/kvm/ |
| H A D | mmu.c | 355 .gfp_custom = (in_atomic) ? GFP_ATOMIC | __GFP_ACCOUNT : 0, in kvm_riscv_gstage_ioremap()
|
| /linux-6.15/Documentation/core-api/ |
| H A D | memory-allocation.rst | 54 of kmem accounting and must have ``__GFP_ACCOUNT`` bit set. There
|
| /linux-6.15/arch/x86/kvm/svm/ |
| H A D | avic.c | 826 ir = kzalloc(sizeof(struct amd_svm_iommu_ir), GFP_ATOMIC | __GFP_ACCOUNT); in svm_ir_list_add()
|
| /linux-6.15/fs/bcachefs/ |
| H A D | btree_key_cache.c | 121 gfp |= __GFP_ACCOUNT|__GFP_RECLAIMABLE; in __bkey_cached_alloc()
|
| /linux-6.15/arch/s390/mm/ |
| H A D | gmap.c | 87 INIT_RADIX_TREE(&gmap->host_to_guest, GFP_ATOMIC | __GFP_ACCOUNT); in gmap_alloc() 88 INIT_RADIX_TREE(&gmap->host_to_rmap, GFP_ATOMIC | __GFP_ACCOUNT); in gmap_alloc()
|
| /linux-6.15/drivers/gpu/drm/xe/ |
| H A D | xe_vm.c | 3080 GFP_KERNEL | __GFP_ACCOUNT | in vm_bind_ioctl_check_args() 3339 GFP_KERNEL | __GFP_ACCOUNT | in xe_vm_bind_ioctl() 3347 GFP_KERNEL | __GFP_ACCOUNT | in xe_vm_bind_ioctl()
|
| /linux-6.15/mm/ |
| H A D | page_alloc.c | 4815 if (memcg_kmem_online() && (gfp & __GFP_ACCOUNT)) in alloc_pages_bulk_noprof() 4990 if (memcg_kmem_online() && (gfp & __GFP_ACCOUNT) && page && in __alloc_frozen_pages_noprof() 7369 | __GFP_ACCOUNT; in try_alloc_pages_noprof()
|