Home
last modified time | relevance | path

Searched refs:page_size (Results 1 – 14 of 14) sorted by relevance

/systemd-251/src/test/
Dtest-sigbus.c39 assert_se(posix_fallocate_loop(fd, 0, page_size() * 8) >= 0); in main()
41 p = mmap(NULL, page_size() * 16, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); in main()
49 p[page_size()] = 0xFF; in main()
52 p[page_size()*8] = 0xFF; in main()
53 p[page_size()*8+1] = 0xFF; in main()
54 p[page_size()*10] = 0xFF; in main()
56 assert_se(addr == p + page_size() * 8); in main()
58 assert_se(addr == p + page_size() * 10); in main()
Dtest-util.c166 assert_se(p % page_size() == 0); in TEST()
182 log_info("Page size: %zu", page_size()); in TEST()
185 assert_se(page_size()/2 + physical_memory_scale(50, 100) - p/2 <= page_size()); in TEST()
194 assert_se(page_size()/2 + physical_memory_scale(1, 2) - p/2 <= page_size()); in TEST()
Dtest-seccomp.c611 p = mmap(NULL, page_size(), PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1,0); in TEST()
613 assert_se(munmap(p, page_size()) >= 0); in TEST()
615 p = mmap(NULL, page_size(), PROT_WRITE|PROT_READ, MAP_PRIVATE|MAP_ANONYMOUS, -1,0); in TEST()
617 assert_se(munmap(p, page_size()) >= 0); in TEST()
621 p = mmap(NULL, page_size(), PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1,0); in TEST()
629 assert_se(munmap(p, page_size()) == 0); in TEST()
631 p = mmap(NULL, page_size(), PROT_WRITE|PROT_READ, MAP_PRIVATE|MAP_ANONYMOUS, -1,0); in TEST()
633 assert_se(munmap(p, page_size()) >= 0); in TEST()
673 shmid = shmget(IPC_PRIVATE, page_size(), 0); in TEST()
Dtest-sleep.c68 (uint64_t) (fiemap->fm_extents[0].fe_physical / page_size())); in test_fiemap_one()
/systemd-251/src/basic/
Dsigbus.c96 ul = ul / page_size(); in sigbus_handler()
97 ul = ul * page_size(); in sigbus_handler()
105 …assert_se(mmap(aligned, page_size(), PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED, -1… in sigbus_handler()
116 (void) page_size(); in sigbus_install()
Dmemory-util.h13 size_t page_size(void) _pure_;
14 #define PAGE_ALIGN(l) ALIGN_TO((l), page_size())
15 #define PAGE_ALIGN_DOWN(l) ((l) & ~(page_size() - 1))
16 #define PAGE_OFFSET(l) ((l) & (page_size() - 1))
Dlimits-util.c30 ps = page_size(); in physical_memory()
95 ps = page_size(); in physical_memory_scale()
Dmemory-util.c7 size_t page_size(void) { in page_size() function
Dfileio.c462 size = MIN3(page_size() - 1, READ_VIRTUAL_BYTES_MAX, max_size); in read_virtual_file_fd()
/systemd-251/src/libsystemd/sd-journal/
Dmmap-cache.c72 # define WINDOW_SIZE (page_size())
384 woffset = offset & ~((uint64_t) page_size() - 1ULL); in add_mmap()
/systemd-251/src/libsystemd/sd-netlink/
Dnetlink-util.c497 if (message_length > MIN(page_size(), 8192UL)) in rtattr_append_attribute()
Dnetlink-message.c191 if (message_length > MIN(page_size(), 8192UL)) in add_rtattr()
/systemd-251/src/shared/
Dsleep-config.c263 *ret_offset = fiemap->fm_extents[0].fe_physical / page_size(); in calculate_swap_file_offset()
/systemd-251/src/coredump/
Dcoredump.c368 if (rlimit < page_size()) in save_external_coredump()