Home
last modified time | relevance | path

Searched refs:shm_size (Results 1 – 25 of 26) sorted by relevance

12

/external/perfetto/src/tracing/ipc/
Dposix_shared_memory_unittest.cc53 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/
Dhugeshmget01.c30 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()
Dhugeshmget05.c31 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()
Dhugeshmget03.c36 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()
Dhugeshmget02.c29 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/
Dhugeshmctl02.c40 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()
Dhugeshmctl03.c50 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()
Dhugeshmctl01.c52 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/
D24-1.c42 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()
D24-2.c42 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()
D18-1.c72 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/
Dhugeshmat01.c46 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()
Dhugeshmat03.c47 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()
Dhugeshmat02.c48 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/
Dhugeshmdt01.c47 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/
Drstream_unittest.cc133 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/
Dvtest_renderer.c708 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/
Dtracing_service_impl.cc185 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/
Dscmi-msg.h30 size_t shm_size; member
/external/ltp/testcases/kernel/mem/include/
Dmem.h87 void update_shm_size(size_t *shm_size);
/external/crosvm/gpu_display/src/
Ddwl.rs98 shm_size: usize, in dwl_context_surface_new()
Ddisplay_wl.c557 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/
Dcras_system_state.c67 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/
Dsmt.c151 msg.out_size = chan->shm_size - sizeof(*smt_hdr); in scmi_proccess_smt()
/external/ltp/testcases/kernel/mem/lib/
Dmem.c841 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()

12