Home
last modified time | relevance | path

Searched refs:anon (Results 1 - 25 of 29) sorted by relevance

12

/kernel/linux/linux-6.6/tools/testing/selftests/mm/
H A Dsoft-dirty.c127 static void test_mprotect(int pagemap_fd, int pagesize, bool anon) in test_mprotect() argument
129 const char *type[] = {"file", "anon"}; in test_mprotect()
134 if (anon) { in test_mprotect()
138 ksft_exit_fail_msg("anon mmap failed\n"); in test_mprotect()
156 __func__, type[anon]); in test_mprotect()
160 __func__, type[anon]); in test_mprotect()
164 __func__, type[anon]); in test_mprotect()
168 __func__, type[anon]); in test_mprotect()
172 __func__, type[anon]); in test_mprotect()
176 if (!anon) in test_mprotect()
[all...]
H A Drun_vmtests.sh246 CATEGORY="userfaultfd" run_test ${uffd_stress_bin} anon 20 16
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
H A Dtest_core_reloc_enumval.c50 anon_enum anon = 0; in test_core_enumval() local
56 out->anon_val1_exists = bpf_core_enum_value_exists(anon, ANON_ENUM_VAL1); in test_core_enumval()
64 out->anon_val1 = bpf_core_enum_value(anon, ANON_ENUM_VAL1); in test_core_enumval()
65 out->anon_val2 = bpf_core_enum_value(anon, ANON_ENUM_VAL2); in test_core_enumval()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dtest_core_reloc_enumval.c50 anon_enum anon = 0; in test_core_enumval() local
56 out->anon_val1_exists = bpf_core_enum_value_exists(anon, ANON_ENUM_VAL1); in test_core_enumval()
64 out->anon_val1 = bpf_core_enum_value(anon, ANON_ENUM_VAL1); in test_core_enumval()
65 out->anon_val2 = bpf_core_enum_value(anon, ANON_ENUM_VAL2); in test_core_enumval()
/kernel/linux/linux-6.6/mm/
H A Dpage_table_check.c66 bool anon; in page_table_check_clear() local
75 anon = PageAnon(page); in page_table_check_clear()
80 if (anon) { in page_table_check_clear()
103 bool anon; in page_table_check_set() local
112 anon = PageAnon(page); in page_table_check_set()
117 if (anon) { in page_table_check_set()
H A Dzswapd_control.c686 unsigned long anon; in memcg_eswap_info_show() local
699 anon = lruvec_lru_size(lruvec, LRU_ACTIVE_ANON, MAX_NR_ZONES) + in memcg_eswap_info_show()
705 anon *= PAGE_SIZE / SZ_1K; in memcg_eswap_info_show()
708 anon, file, zram, eswap); in memcg_eswap_info_show()
H A Dmemcg_reclaim.c58 * system is close to OOM, scan both anon and file equally in get_scan_count_hyperhold()
116 * Calculate the pressure balance between anon and file pages. in get_scan_count_hyperhold()
128 * With swappiness at 100, anon and file have equal IO cost. in get_scan_count_hyperhold()
349 /* Get scan count for file and anon */ in shrink_node_hyperhold()
357 * Determine the scan balance between anon and file LRUs. in shrink_node_hyperhold()
365 * Target desirable inactive:active list ratios for the anon in shrink_node_hyperhold()
424 * anon pages. Try to detect this based on file LRU size. in shrink_node_hyperhold()
428 unsigned long free, anon; in shrink_node_hyperhold() local
445 * Consider anon: if that's low too, this isn't a in shrink_node_hyperhold()
449 anon in shrink_node_hyperhold()
[all...]
H A Drmap.c11 * the anon methods track anonymous pages, and
1186 * The page's anon-rmap details (mapping and index) are guaranteed to in __page_check_anon_rmap()
1460 * Queue anon THP for deferred split if at least one in page_remove_rmap()
1562 bool anon = folio_test_anon(folio); in try_to_unmap_one() local
1588 if (!anon) { in try_to_unmap_one()
1942 bool anon = folio_test_anon(folio); in try_to_migrate_one() local
1963 if (!anon) { in try_to_migrate_one()
/kernel/linux/linux-5.10/tools/testing/selftests/cgroup/
H A Dtest_kmem.c161 * anon + file + slab + kernel_stack.
165 long current, slab, anon, file, kernel_stack, sum; in test_kmem_memcg_deletion() local
184 anon = cg_read_key_long(parent, "memory.stat", "anon "); in test_kmem_memcg_deletion()
187 if (current < 0 || slab < 0 || anon < 0 || file < 0 || in test_kmem_memcg_deletion()
191 sum = slab + anon + file + kernel_stack; in test_kmem_memcg_deletion()
196 printf("slab + anon + file + kernel_stack = %ld\n", sum); in test_kmem_memcg_deletion()
198 printf("anon = %ld\n", anon); in test_kmem_memcg_deletion()
H A Dtest_memcontrol.c93 long anon, current; in alloc_anon_50M_check() local
107 anon = cg_read_key_long(cgroup, "memory.stat", "anon "); in alloc_anon_50M_check()
108 if (anon < 0) in alloc_anon_50M_check()
111 if (!values_close(anon, current, 3)) in alloc_anon_50M_check()
518 "memory.low prevents from allocating anon memory\n"); in test_memcg_low()
/kernel/linux/linux-6.6/tools/testing/selftests/cgroup/
H A Dtest_kmem.c165 * anon + file + kernel + sock.
169 long current, anon, file, kernel, sock, sum; in test_kmem_memcg_deletion() local
187 anon = cg_read_key_long(parent, "memory.stat", "anon "); in test_kmem_memcg_deletion()
191 if (current < 0 || anon < 0 || file < 0 || kernel < 0 || sock < 0) in test_kmem_memcg_deletion()
194 sum = anon + file + kernel + sock; in test_kmem_memcg_deletion()
199 printf("anon + file + kernel + sock = %ld\n", sum); in test_kmem_memcg_deletion()
200 printf("anon = %ld\n", anon); in test_kmem_memcg_deletion()
H A Dtest_memcontrol.c97 long anon, current; in alloc_anon_50M_check() local
116 anon = cg_read_key_long(cgroup, "memory.stat", "anon "); in alloc_anon_50M_check()
117 if (anon < 0) in alloc_anon_50M_check()
120 if (!values_close(anon, current, 3)) in alloc_anon_50M_check()
400 "memory.low prevents from allocating anon memory\n"); in test_memcg_protection()
715 * amount of memory (from both anon and file, if possible).
741 * If swap is enabled, try to reclaim from both anon and file, else try in test_memcg_reclaim()
769 * Reclaim until current reaches 30M, this makes sure we hit both anon in test_memcg_reclaim()
/kernel/linux/linux-6.6/tools/testing/selftests/user_events/
H A Dftrace_test.c393 void *anon; in TEST_F() local
396 reg.name_args = (__u64)"__test_event u64 anon"; in TEST_F()
401 anon = mmap(NULL, l, PROT_READ, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST_F()
402 ASSERT_NE(MAP_FAILED, anon); in TEST_F()
406 io[1].iov_base = anon; in TEST_F()
421 ASSERT_EQ(0, madvise(anon, l, MADV_DONTNEED)); in TEST_F()
423 ASSERT_EQ(0, munmap(anon, l)); in TEST_F()
/kernel/linux/linux-5.10/net/netfilter/
H A Dxt_quota2.c130 q2_new_counter(const struct xt_quota_mtinfo2 *q, bool anon) in q2_new_counter() argument
136 size = anon ? offsetof(typeof(*e), list) : sizeof(*e); in q2_new_counter()
143 if (!anon) { in q2_new_counter()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/
H A Di915_gem_mman.c848 struct file *anon; in i915_gem_mmap() local
880 anon = mmap_singleton(to_i915(dev)); in i915_gem_mmap()
881 if (IS_ERR(anon)) { in i915_gem_mmap()
883 return PTR_ERR(anon); in i915_gem_mmap()
898 vma->vm_file = anon; in i915_gem_mmap()
/kernel/linux/linux-6.6/tools/perf/util/
H A Dmap.c132 int anon, no_dso, vdso, android; in map__new() local
135 anon = is_anon_memory(filename) || flags & MAP_HUGETLB; in map__new()
142 if ((anon || no_dso) && nsi && (prot & PROT_EXEC)) { in map__new()
174 if (anon || no_dso) { in map__new()
/kernel/linux/linux-6.6/tools/testing/selftests/prctl/
H A DMakefile8 disable-tsc-test set-anon-vma-name-test set-process-name
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gem/
H A Di915_gem_mman.c947 struct file *anon; in i915_gem_object_mmap() local
957 anon = mmap_singleton(to_i915(dev)); in i915_gem_object_mmap()
958 if (IS_ERR(anon)) { in i915_gem_object_mmap()
960 return PTR_ERR(anon); in i915_gem_object_mmap()
973 vma_set_file(vma, anon); in i915_gem_object_mmap()
975 fput(anon); in i915_gem_object_mmap()
/kernel/linux/linux-5.10/mm/
H A Dzswapd_control.c685 unsigned long anon; in memcg_eswap_info_show() local
698 anon = lruvec_lru_size(lruvec, LRU_ACTIVE_ANON, MAX_NR_ZONES) + in memcg_eswap_info_show()
704 anon *= PAGE_SIZE / SZ_1K; in memcg_eswap_info_show()
707 anon, file, zram, eswap); in memcg_eswap_info_show()
H A Dmemcg_reclaim.c56 * system is close to OOM, scan both anon and file equally in get_scan_count_hyperhold()
114 * Calculate the pressure balance between anon and file pages. in get_scan_count_hyperhold()
126 * With swappiness at 100, anon and file have equal IO cost. in get_scan_count_hyperhold()
350 /* Get scan count for file and anon */ in shrink_node_hyperhold()
358 * Determine the scan balance between anon and file LRUs. in shrink_node_hyperhold()
366 * Target desirable inactive:active list ratios for the anon in shrink_node_hyperhold()
425 * anon pages. Try to detect this based on file LRU size. in shrink_node_hyperhold()
429 unsigned long free, anon; in shrink_node_hyperhold() local
446 * Consider anon: if that's low too, this isn't a in shrink_node_hyperhold()
450 anon in shrink_node_hyperhold()
[all...]
/kernel/linux/linux-5.10/fs/proc/
H A Dtask_mmu.c37 unsigned long text, lib, swap, anon, file, shmem; in task_mem() local
45 anon = get_mm_counter(mm, MM_ANONPAGES); in task_mem()
59 hiwater_rss = total_rss = anon + file + shmem; in task_mem()
75 SEQ_PUT_DEC(" kB\nRssAnon:\t", anon); in task_mem()
347 seq_printf(m, "[anon:%s]", anon_name->name); in show_map_vma()
1607 * Bit 61 page is file-page or shared-anon
1742 unsigned long anon; member
1775 md->anon += nr_pages; in gather_stats()
1951 if (md->anon) in show_numa_map()
1952 seq_printf(m, " anon in show_numa_map()
[all...]
/kernel/linux/linux-6.6/fs/proc/
H A Dtask_mmu.c37 unsigned long text, lib, swap, anon, file, shmem; in task_mem() local
45 anon = get_mm_counter(mm, MM_ANONPAGES); in task_mem()
59 hiwater_rss = total_rss = anon + file + shmem; in task_mem()
75 SEQ_PUT_DEC(" kB\nRssAnon:\t", anon); in task_mem()
307 * If user named this anon shared memory via in show_map_vma()
342 seq_printf(m, "[anon:%s]", anon_name->name); in show_map_vma()
1650 * Bit 61 page is file-page or shared-anon
1790 unsigned long anon; member
1823 md->anon += nr_pages; in gather_stats()
2000 if (md->anon) in show_numa_map()
[all...]
/kernel/linux/linux-5.10/tools/perf/util/
H A Dmap.c142 int anon, no_dso, vdso, android; in map__new() local
145 anon = is_anon_memory(filename) || flags & MAP_HUGETLB; in map__new()
152 if ((anon || no_dso) && nsi && (prot & PROT_EXEC)) { in map__new()
184 if (anon || no_dso) { in map__new()
/kernel/linux/linux-5.10/arch/mips/include/asm/
H A Dsgiarcs.h73 net_peripheral, misc_peripheral, anon enumerator
/kernel/linux/linux-6.6/arch/mips/include/asm/
H A Dsgiarcs.h73 net_peripheral, misc_peripheral, anon enumerator

Completed in 27 milliseconds

12