/linux/drivers/virt/coco/sev-guest/ |
H A D | sev-guest.c | 78 report_req = kzalloc(sizeof(*report_req), GFP_KERNEL_ACCOUNT); in get_report() 91 report_resp = kzalloc(resp_len, GFP_KERNEL_ACCOUNT); in get_report() 134 derived_key_resp = kzalloc(resp_len, GFP_KERNEL_ACCOUNT); in get_derived_key() 138 derived_key_req = kzalloc(sizeof(*derived_key_req), GFP_KERNEL_ACCOUNT); in get_derived_key() 184 report_req = kzalloc(sizeof(*report_req), GFP_KERNEL_ACCOUNT); in get_ext_report() 214 page = alloc_pages(GFP_KERNEL_ACCOUNT | __GFP_ZERO, in get_ext_report() 234 report_resp = kzalloc(resp_len, GFP_KERNEL_ACCOUNT); in get_ext_report()
|
/linux/rust/kernel/ |
H A D | alloc.rs | 105 pub const GFP_KERNEL_ACCOUNT: Flags = Flags(bindings::GFP_KERNEL_ACCOUNT); constant
|
/linux/net/netfilter/ |
H A D | nf_flow_table_xdp.c | 57 ft_elem = kzalloc(sizeof(*ft_elem), GFP_KERNEL_ACCOUNT); in nf_flowtable_by_dev_insert() 73 elem = kzalloc(sizeof(*elem), GFP_KERNEL_ACCOUNT); in nf_flowtable_by_dev_insert()
|
H A D | nft_set_pipapo.c | 601 new_mt = kvmalloc_array(rules_alloc, sizeof(*new_mt), GFP_KERNEL_ACCOUNT); in pipapo_realloc_mt() 686 new_lt = kvzalloc(lt_size, GFP_KERNEL_ACCOUNT); in pipapo_resize() 902 new_lt = kvzalloc(lt_size, GFP_KERNEL_ACCOUNT); in pipapo_lt_bits_adjust() 1177 GFP_KERNEL_ACCOUNT, cpu_to_node(i)); 1386 new = kmalloc(struct_size(new, f, old->field_count), GFP_KERNEL_ACCOUNT); 1418 new_lt = kvzalloc(lt_size, GFP_KERNEL_ACCOUNT); 1435 GFP_KERNEL_ACCOUNT);
|
/linux/virt/kvm/ |
H A D | irqchip.c | 186 new = kzalloc(struct_size(new, map, nr_rt_entries), GFP_KERNEL_ACCOUNT); in kvm_set_irq_routing() 197 e = kzalloc(sizeof(*e), GFP_KERNEL_ACCOUNT); in kvm_set_irq_routing() 249 new = kzalloc(struct_size(new, map, 1), GFP_KERNEL_ACCOUNT); in kvm_init_irq_routing()
|
H A D | coalesced_mmio.c | 99 page = alloc_page(GFP_KERNEL_ACCOUNT | __GFP_ZERO); in kvm_coalesced_mmio_init() 132 GFP_KERNEL_ACCOUNT); in kvm_vm_ioctl_register_coalesced_mmio()
|
H A D | vfio.c | 169 kvf = kzalloc(sizeof(*kvf), GFP_KERNEL_ACCOUNT); in kvm_vfio_file_add() 367 kv = kzalloc(sizeof(*kv), GFP_KERNEL_ACCOUNT); in kvm_vfio_create()
|
/linux/drivers/vfio/fsl-mc/ |
H A D | vfio_fsl_mc_intr.c | 32 mc_irq = kcalloc(irq_count, sizeof(*mc_irq), GFP_KERNEL_ACCOUNT); in vfio_fsl_mc_irqs_allocate() 80 irq->name = kasprintf(GFP_KERNEL_ACCOUNT, "vfio-irq[%d](%s)", in vfio_set_trigger()
|
/linux/rust/bindings/ |
H A D | bindings_helper.h | 90 const gfp_t RUST_CONST_HELPER_GFP_KERNEL_ACCOUNT = GFP_KERNEL_ACCOUNT;
|
/linux/arch/x86/kvm/ |
H A D | kvm_onhyperv.h | 26 *p_hv_pa_pg = kzalloc(PAGE_SIZE, GFP_KERNEL_ACCOUNT); in hv_get_partition_assist_page()
|
/linux/arch/arm64/kvm/ |
H A D | pkvm.c | 109 hyp_vcpu = alloc_pages_exact(hyp_vcpu_sz, GFP_KERNEL_ACCOUNT); in __pkvm_create_hyp_vcpu() 148 pgd = alloc_pages_exact(pgd_sz, GFP_KERNEL_ACCOUNT); in __pkvm_create_hyp_vm() 156 hyp_vm = alloc_pages_exact(hyp_vm_sz, GFP_KERNEL_ACCOUNT); in __pkvm_create_hyp_vm()
|
/linux/security/landlock/ |
H A D | object.c | 28 new_object = kzalloc(sizeof(*new_object), GFP_KERNEL_ACCOUNT); in landlock_create_object()
|
H A D | ruleset.c | 38 GFP_KERNEL_ACCOUNT); in create_ruleset() 124 GFP_KERNEL_ACCOUNT); in create_rule() 556 kzalloc(sizeof(*new_dom->hierarchy), GFP_KERNEL_ACCOUNT); in landlock_merge_ruleset()
|
/linux/arch/s390/kvm/ |
H A D | guestdbg.c | 187 wp_info->old_data = kmalloc(bp_data->len, GFP_KERNEL_ACCOUNT); in __import_wp_info() 237 GFP_KERNEL_ACCOUNT); in kvm_s390_import_bp_data() 246 GFP_KERNEL_ACCOUNT); in kvm_s390_import_bp_data() 352 temp = kmalloc(wp_info->len, GFP_KERNEL_ACCOUNT); in any_wp_changed()
|
/linux/drivers/net/ethernet/sfc/ |
H A D | tc_encap_actions.c | 121 neigh = kzalloc(sizeof(*neigh), GFP_KERNEL_ACCOUNT); in efx_bind_neigh() 124 neigh->net = get_net_track(net, &neigh->ns_tracker, GFP_KERNEL_ACCOUNT); in efx_bind_neigh() 159 GFP_KERNEL_ACCOUNT); in efx_bind_neigh() 182 GFP_KERNEL_ACCOUNT); in efx_bind_neigh() 633 encap = kzalloc(sizeof(*encap), GFP_KERNEL_ACCOUNT); in efx_tc_flower_create_encap_md()
|
/linux/arch/x86/kernel/ |
H A D | ldt.c | 157 new_ldt = kmalloc(sizeof(struct ldt_struct), GFP_KERNEL_ACCOUNT); in alloc_ldt_struct() 171 new_ldt->entries = __vmalloc(alloc_size, GFP_KERNEL_ACCOUNT | __GFP_ZERO); in alloc_ldt_struct() 173 new_ldt->entries = (void *)get_zeroed_page(GFP_KERNEL_ACCOUNT); in alloc_ldt_struct()
|
/linux/drivers/vfio/pci/ |
H A D | vfio_pci_intrs.c | 72 ctx = kzalloc(sizeof(*ctx), GFP_KERNEL_ACCOUNT); in vfio_irq_ctx_alloc() 76 ret = xa_insert(&vdev->ctx, index, ctx, GFP_KERNEL_ACCOUNT); in vfio_irq_ctx_alloc() 265 name = kasprintf(GFP_KERNEL_ACCOUNT, "vfio-intx(%s)", pci_name(pdev)); in vfio_intx_enable() 477 ctx->name = kasprintf(GFP_KERNEL_ACCOUNT, "vfio-msi%s[%d](%s)", in vfio_msi_set_vector_signal()
|
/linux/kernel/ |
H A D | cred.c | 182 if (security_cred_alloc_blank(new, GFP_KERNEL_ACCOUNT) < 0) in cred_alloc_blank() 242 if (security_prepare_creds(new, old, GFP_KERNEL_ACCOUNT) < 0) in prepare_creds() 617 if (security_prepare_creds(new, old, GFP_KERNEL_ACCOUNT) < 0) in prepare_kernel_cred()
|
/linux/kernel/trace/ |
H A D | trace_events_user.c | 709 user_mm = kzalloc(sizeof(*user_mm), GFP_KERNEL_ACCOUNT); in user_event_mm_alloc() 895 enabler = kzalloc(sizeof(*enabler), GFP_KERNEL_ACCOUNT); in user_event_enabler_create() 1116 field = kmalloc(sizeof(*field), GFP_KERNEL_ACCOUNT); in user_event_add_field() 1135 validator = kmalloc(sizeof(*validator), GFP_KERNEL_ACCOUNT); in user_event_add_field() 1427 print_fmt = kmalloc(len, GFP_KERNEL_ACCOUNT); in user_event_create_print_fmt() 1785 name = kstrdup(raw_command, GFP_KERNEL_ACCOUNT); in user_event_create() 1972 multi_name = kasprintf(GFP_KERNEL_ACCOUNT, "%s.%llx", in user_event_set_tp_name() 2118 user = kzalloc(sizeof(*user), GFP_KERNEL_ACCOUNT); in user_event_parse() 2328 info = kzalloc(sizeof(*info), GFP_KERNEL_ACCOUNT); in user_events_open() 2379 new_refs = kzalloc(size, GFP_KERNEL_ACCOUNT); in user_events_ref_add()
|
/linux/arch/mips/include/asm/ |
H A D | pgalloc.h | 61 ptdesc = pagetable_alloc(GFP_KERNEL_ACCOUNT, PMD_TABLE_ORDER); in pmd_alloc_one()
|
/linux/drivers/vfio/platform/ |
H A D | vfio_platform_irq.c | 295 GFP_KERNEL_ACCOUNT); in vfio_platform_irq_init() 321 vdev->irqs[i].name = kasprintf(GFP_KERNEL_ACCOUNT, in vfio_platform_irq_init()
|
/linux/Documentation/translations/zh_CN/core-api/ |
H A D | memory-allocation.rst | 54 有一个方便的用于 ``GFP_KERNEL`` 分配的 ``GFP_KERNEL_ACCOUNT`` 快捷键,其应该被核
|
/linux/arch/loongarch/include/asm/ |
H A D | pgalloc.h | 68 ptdesc = pagetable_alloc(GFP_KERNEL_ACCOUNT, 0); in pmd_alloc_one()
|
/linux/fs/overlayfs/ |
H A D | params.c | 327 l = krealloc_array(ctx->lower, nr, sizeof(*l), GFP_KERNEL_ACCOUNT); in ovl_ctx_realloc_lower() 445 buf = kmalloc(PATH_MAX, GFP_KERNEL_ACCOUNT); in ovl_parse_layer() 771 ctx = kzalloc(sizeof(*ctx), GFP_KERNEL_ACCOUNT); in ovl_init_fs_context() 779 ctx->lower = kmalloc_array(3, sizeof(*ctx->lower), GFP_KERNEL_ACCOUNT); in ovl_init_fs_context()
|
/linux/kernel/time/ |
H A D | namespace.c | 91 ns = kmalloc(sizeof(*ns), GFP_KERNEL_ACCOUNT); in clone_time_ns() 97 ns->vvar_page = alloc_page(GFP_KERNEL_ACCOUNT | __GFP_ZERO); in clone_time_ns()
|