/external/perfetto/src/tracing/ipc/ |
D | posix_shared_memory_unittest.cc | 53 const size_t shm_size = shm->size(); in TEST() local 55 ASSERT_EQ(base::GetSysPageSize(), shm_size); in TEST() 58 ASSERT_TRUE(base::vm_test_utils::IsMapped(shm_start, shm_size)); in TEST() 61 ASSERT_FALSE(base::vm_test_utils::IsMapped(shm_start, shm_size)); in TEST() 86 const size_t shm_size = shm->size(); in TEST() local 88 ASSERT_EQ(base::GetSysPageSize(), shm_size); in TEST() 95 ASSERT_FALSE(base::vm_test_utils::IsMapped(shm_start, shm_size)); in TEST() 121 const size_t shm_size = shm->size(); in TEST() local 123 ASSERT_EQ(shm_size, kLessThanAPage); in TEST() 126 ASSERT_TRUE(base::vm_test_utils::IsMapped(shm_start, shm_size)); in TEST() [all …]
|
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmget/ |
D | hugeshmget01.c | 30 static size_t shm_size; variable 48 if (buf.shm_segsz != shm_size) { in test_hugeshmget() 78 shm_size = hpage_size * hugepages / 2; in setup() 79 update_shm_size(&shm_size); in setup() 82 shm_id_1 = shmget(shmkey, shm_size, in setup()
|
D | hugeshmget05.c | 31 static size_t shm_size; variable 65 TEST(shmget(shmkey, shm_size, SHM_HUGETLB | SHM_RW)); in do_child() 89 shm_size = hpage_size * hugepages / 2; in setup() 90 update_shm_size(&shm_size); in setup() 92 shm_id_1 = shmget(shmkey, shm_size, in setup()
|
D | hugeshmget03.c | 36 static size_t shm_size; variable 50 TEST(shmget(IPC_PRIVATE, shm_size, in test_hugeshmget() 78 shm_size = hpage_size; in setup() 85 shm_id_1 = shmget(IPC_PRIVATE, shm_size, in setup() 94 shm_id_1 = shmget(IPC_PRIVATE, shm_size, in setup()
|
D | hugeshmget02.c | 29 static size_t shm_size; variable 67 TEST(shmget(*(tcases[i].skey), tcases[i].size_coe * shm_size, in test_hugeshmget() 96 shm_size = hpage_size * hugepages / 2; in setup() 97 update_shm_size(&shm_size); in setup() 101 shm_id_1 = shmget(shmkey, shm_size, in setup()
|
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmctl/ |
D | hugeshmctl02.c | 40 static size_t shm_size; variable 103 shm_size = hpage_size * (hugepages / 2); in setup() 104 update_shm_size(&shm_size); in setup() 108 shm_id_1 = shmget(shmkey, shm_size, SHM_HUGETLB | IPC_CREAT | IPC_EXCL); in setup() 113 shm_id_2 = shmget(shmkey + 1, shm_size, in setup()
|
D | hugeshmctl03.c | 50 static size_t shm_size; variable 128 shm_size = hpage_size * hugepages / 2; in setup() 129 update_shm_size(&shm_size); in setup() 131 shm_id_1 = shmget(shmkey, shm_size, in setup()
|
D | hugeshmctl01.c | 52 static size_t shm_size; variable 97 shm_id_1 = shmget(shmkey, shm_size, in test_hugeshmctl() 200 if (buf.shm_segsz != shm_size) { in func_stat() 322 shm_size = hpage_size * hugepages / 2; in setup() 323 update_shm_size(&shm_size); in setup()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/ |
D | 24-1.c | 42 size_t shm_size = 1024; in main() local 57 if (ftruncate(fd, shm_size) == -1) { in main() 62 len = shm_size; in main() 74 mapped_size += shm_size; in main()
|
D | 24-2.c | 42 size_t shm_size; in main() local 46 shm_size = 2 * page_size; in main() 57 if (ftruncate(fd, shm_size) == -1) { in main() 70 len = shm_size; in main()
|
D | 18-1.c | 72 size_t shm_size; in main() local 93 shm_size = 1024; in main() 110 if (ftruncate(fd, shm_size) == -1) { in main()
|
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmat/ |
D | hugeshmat01.c | 46 static size_t shm_size; variable 120 if (buf.shm_segsz != shm_size) { in check_functionality() 178 shm_size = hpage_size * hugepages / 2; in setup() 179 update_shm_size(&shm_size); in setup() 181 shm_id_1 = shmget(shmkey++, shm_size, in setup()
|
D | hugeshmat03.c | 47 static size_t shm_size; variable 98 shm_size = hpage_size * hugepages / 2; in setup() 99 update_shm_size(&shm_size); in setup() 101 shm_id_1 = shmget(shmkey, shm_size, in setup()
|
D | hugeshmat02.c | 48 static size_t shm_size; variable 103 shm_size = hpage_size * hugepages / 2; in setup() 104 update_shm_size(&shm_size); in setup() 109 shm_id_2 = shmget(shmkey++, shm_size, in setup()
|
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmdt/ |
D | hugeshmdt01.c | 47 static size_t shm_size; variable 143 shm_size = hpage_size * hugepages / 2; in setup() 144 update_shm_size(&shm_size); in setup() 148 shm_id_1 = shmget(shmkey, shm_size, in setup()
|
/external/adhd/cras/src/tests/ |
D | rstream_unittest.cc | 133 size_t shm_size; in TEST_F() local 151 shm_size = cras_shm_samples_size(shm_ret); in TEST_F() 152 EXPECT_EQ(shm_size, 32768); in TEST_F() 170 size_t shm_size; in TEST_F() local 189 shm_size = cras_shm_samples_size(shm_ret); in TEST_F() 190 EXPECT_EQ(shm_size, 32768); in TEST_F()
|
/external/virglrenderer/vtest/ |
D | vtest_renderer.c | 708 size_t *shm_size) in vtest_create_resource_decode_args2() argument 732 *shm_size = res_create_buf[VCMD_RES_CREATE2_DATA_SIZE]; in vtest_create_resource_decode_args2() 761 size_t shm_size) in vtest_create_resource_internal() argument 782 if (shm_size) { in vtest_create_resource_internal() 785 fd = vtest_create_resource_setup_shm(res, shm_size); in vtest_create_resource_internal() 828 size_t shm_size; in vtest_create_resource2() local 831 ret = vtest_create_resource_decode_args2(ctx, &args, &shm_size); in vtest_create_resource2() 836 return vtest_create_resource_internal(ctx, &args, shm_size); in vtest_create_resource2()
|
/external/perfetto/src/tracing/core/ |
D | tracing_service_impl.cc | 185 size_t shm_size, in EnsureValidShmSizes() argument 198 if (shm_size == 0) in EnsureValidShmSizes() 199 shm_size = TracingServiceImpl::kDefaultShmSize; in EnsureValidShmSizes() 202 shm_size = std::min<size_t>(shm_size, TracingServiceImpl::kMaxShmSize); in EnsureValidShmSizes() 217 if (!page_size_is_valid || shm_size < page_size || in EnsureValidShmSizes() 218 shm_size % page_size != 0) { in EnsureValidShmSizes() 222 return std::make_tuple(shm_size, page_size); in EnsureValidShmSizes() 393 size_t shm_size, page_size; in ConnectProducer() local 394 std::tie(shm_size, page_size) = in ConnectProducer() 396 if (shm_size == shm->size() && in ConnectProducer() [all …]
|
/external/arm-trusted-firmware/include/drivers/ |
D | scmi-msg.h | 30 size_t shm_size; member
|
/external/ltp/testcases/kernel/mem/include/ |
D | mem.h | 87 void update_shm_size(size_t *shm_size);
|
/external/crosvm/gpu_display/src/ |
D | dwl.rs | 98 shm_size: usize, in dwl_context_surface_new()
|
D | display_wl.c | 557 int shm_fd, size_t shm_size, in dwl_context_surface_new() argument 563 size_t buffer_count = shm_size / buffer_size; in dwl_context_surface_new() 582 wl_shm_create_pool(self->ifaces.shm, shm_fd, shm_size); in dwl_context_surface_new()
|
/external/adhd/cras/src/server/ |
D | cras_system_state.c | 67 size_t shm_size; member 134 state.shm_size = sizeof(*exp_state); in cras_system_state_init() 217 munmap(state.exp_state, state.shm_size); in cras_system_state_deinit()
|
/external/arm-trusted-firmware/drivers/scmi-msg/ |
D | smt.c | 151 msg.out_size = chan->shm_size - sizeof(*smt_hdr); in scmi_proccess_smt()
|
/external/ltp/testcases/kernel/mem/lib/ |
D | mem.c | 841 void update_shm_size(size_t * shm_size) in update_shm_size() argument 846 if (*shm_size > shmmax) { in update_shm_size() 848 *shm_size = shmmax; in update_shm_size()
|