Home
last modified time | relevance | path

Searched refs:src_type (Results 1 – 7 of 7) sorted by relevance

/tools/testing/selftests/kvm/
Dkvm_page_table_test.c62 enum vm_mem_backing_src_type src_type; member
143 if (p->src_type == VM_MEM_SRC_ANONYMOUS) { in guest_code()
246 enum vm_mem_backing_src_type src_type; member
254 enum vm_mem_backing_src_type src_type = p->src_type; in pre_init_before_test() local
255 uint64_t large_page_size = get_backing_src_pagesz(src_type); in pre_init_before_test()
293 test_args.src_type = src_type; in pre_init_before_test()
302 vm_userspace_mem_region_add(vm, src_type, guest_test_phys_mem, in pre_init_before_test()
326 vm_mem_backing_src_alias(src_type)->name); in pre_init_before_test()
468 .src_type = DEFAULT_VM_MEM_SRC, in main()
491 p.src_type = parse_backing_src_type(optarg); in main()
Ddemand_paging_test.c278 enum vm_mem_backing_src_type src_type; member
296 p->src_type); in run_test()
300 demand_paging_size = get_backing_src_pagesz(p->src_type); in run_test()
441 .src_type = DEFAULT_VM_MEM_SRC, in main()
468 p.src_type = parse_backing_src_type(optarg); in main()
486 !backing_src_is_shared(p.src_type)) { in main()
/tools/testing/selftests/kvm/lib/
Dkvm_util.c810 enum vm_mem_backing_src_type src_type, in vm_userspace_mem_region_add() argument
816 size_t backing_src_pagesz = get_backing_src_pagesz(src_type); in vm_userspace_mem_region_add()
878 if (src_type == VM_MEM_SRC_ANONYMOUS_THP) in vm_userspace_mem_region_add()
886 if (backing_src_is_shared(src_type)) { in vm_userspace_mem_region_add()
889 if (src_type == VM_MEM_SRC_SHARED_HUGETLB) in vm_userspace_mem_region_add()
907 vm_mem_backing_src_alias(src_type)->flag, in vm_userspace_mem_region_add()
917 if ((src_type == VM_MEM_SRC_ANONYMOUS || in vm_userspace_mem_region_add()
918 src_type == VM_MEM_SRC_ANONYMOUS_THP) && thp_configured()) { in vm_userspace_mem_region_add()
920 src_type == VM_MEM_SRC_ANONYMOUS ? MADV_NOHUGEPAGE : MADV_HUGEPAGE); in vm_userspace_mem_region_add()
923 vm_mem_backing_src_alias(src_type)->name); in vm_userspace_mem_region_add()
[all …]
/tools/lib/bpf/
Dbpf_core_read.h276 #define ___read(read_fn, dst, src_type, src, accessor) \ argument
277 read_fn((void *)(dst), sizeof(*(dst)), &((src_type)(src))->accessor)
Dbtf.h103 const struct btf_type *src_type);
Dbtf.c1680 int btf__add_type(struct btf *btf, const struct btf *src_btf, const struct btf_type *src_type) in btf__add_type() argument
1686 sz = btf_type_size(src_type); in btf__add_type()
1698 memcpy(t, src_type, sz); in btf__add_type()
/tools/testing/selftests/kvm/include/
Dkvm_util.h129 enum vm_mem_backing_src_type src_type,