Home
last modified time | relevance | path

Searched refs:__GFP_ACCOUNT (Results 1 – 25 of 36) sorted by relevance

12

/linux-6.15/arch/powerpc/include/asm/
H A Dpgalloc.h12 return gfp | __GFP_ACCOUNT; in pgtable_gfp_flags()
17 return gfp | __GFP_ACCOUNT; in pgtable_gfp_flags()
/linux-6.15/include/linux/
H A Dgfp_types.h153 #define __GFP_ACCOUNT ((__force gfp_t)___GFP_ACCOUNT) macro
379 #define GFP_KERNEL_ACCOUNT (GFP_KERNEL | __GFP_ACCOUNT)
H A Dslab.h634 (IS_ENABLED(CONFIG_MEMCG) ? __GFP_ACCOUNT : 0))
/linux-6.15/Documentation/translations/zh_CN/mm/
H A Dvmalloced-kernel-stacks.rst87 进行memcg核算。因此,__vmalloc_node_range被调用时没有__GFP_ACCOUNT
/linux-6.15/Documentation/translations/zh_CN/core-api/
H A Dmemory-allocation.rst53 * 从用户空间触发的不可信任的分配应该是kmem核算的对象,必须设置 ``__GFP_ACCOUNT`` 位。
/linux-6.15/arch/powerpc/mm/
H A Dpgtable-frag.c61 ptdesc = pagetable_alloc(PGALLOC_GFP | __GFP_ACCOUNT, 0); in __alloc_for_ptecache()
/linux-6.15/include/trace/events/
H A Dkmem.h40 ((gfp_flags & __GFP_ACCOUNT) ||
91 (__entry->gfp_flags & (__force unsigned long)__GFP_ACCOUNT)) ? "true" : "false")
/linux-6.15/include/asm-generic/
H A Dpgalloc.h8 #define GFP_PGTABLE_USER (GFP_PGTABLE_KERNEL | __GFP_ACCOUNT)
/linux-6.15/arch/s390/kernel/diag/
H A Ddiag310.c264 buf = __vmalloc_node(data_size, PAGE_SIZE, GFP_KERNEL | __GFP_ZERO | __GFP_ACCOUNT, in diag310_memtop_buf()
/linux-6.15/kernel/bpf/
H A Dmemalloc.c212 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 Dsyscall.c511 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 Dxarray.c308 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 Dradix-tree.c332 gfp_mask &= ~__GFP_ACCOUNT; in __radix_tree_preload()
/linux-6.15/Documentation/mm/
H A Dvmalloced-kernel-stacks.rst96 Hence, __vmalloc_node_range is called without __GFP_ACCOUNT.
/linux-6.15/arch/powerpc/mm/book3s64/
H A Dpgtable.c421 gfp &= ~__GFP_ACCOUNT; in __alloc_for_pmdcache()
/linux-6.15/arch/x86/mm/
H A Dpgtable.c199 gfp &= ~__GFP_ACCOUNT; in preallocate_pmds()
/linux-6.15/fs/
H A Dbuffer.c969 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 Dpipe.c125 return alloc_page(GFP_HIGHUSER | __GFP_ACCOUNT); in anon_pipe_get_page()
/linux-6.15/arch/riscv/kvm/
H A Dmmu.c355 .gfp_custom = (in_atomic) ? GFP_ATOMIC | __GFP_ACCOUNT : 0, in kvm_riscv_gstage_ioremap()
/linux-6.15/Documentation/core-api/
H A Dmemory-allocation.rst54 of kmem accounting and must have ``__GFP_ACCOUNT`` bit set. There
/linux-6.15/arch/x86/kvm/svm/
H A Davic.c826 ir = kzalloc(sizeof(struct amd_svm_iommu_ir), GFP_ATOMIC | __GFP_ACCOUNT); in svm_ir_list_add()
/linux-6.15/fs/bcachefs/
H A Dbtree_key_cache.c121 gfp |= __GFP_ACCOUNT|__GFP_RECLAIMABLE; in __bkey_cached_alloc()
/linux-6.15/arch/s390/mm/
H A Dgmap.c87 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 Dxe_vm.c3080 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 Dpage_alloc.c4815 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()

12