Home
last modified time | relevance | path

Searched refs:SHM_SIZE (Results 1 – 15 of 15) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/ipc/shmget/
Dshmget02.c56 {&shmkey1, SHM_SIZE, IPC_EXCL, 0, 0, ENOENT},
57 {&shmkey, SHM_SIZE, IPC_CREAT | IPC_EXCL, 0, 0, EEXIST},
60 {&shmkey, SHM_SIZE * 2, IPC_EXCL, 0, 0, EINVAL},
61 {&shmkey, SHM_SIZE, SHM_RD, 1, 0, EACCES},
62 {&shmkey1, SHM_SIZE, IPC_CREAT | SHM_HUGETLB, 0, 1, EPERM},
63 {&shmkey1, SHM_SIZE, IPC_CREAT | SHM_HUGETLB, 0, 0, ENOMEM}
124 shm_id = SAFE_SHMGET(shmkey, SHM_SIZE, IPC_CREAT | IPC_EXCL); in setup()
Dshmget04.c43 TST_EXP_FAIL2(shmget(shmkey, SHM_SIZE, tc->flag), EACCES, "shmget(%i, %i, %i)", in verify_shmget()
44 shmkey, SHM_SIZE, tc->flag); in verify_shmget()
55 shm_id = SAFE_SHMGET(shmkey, SHM_SIZE, IPC_CREAT | IPC_EXCL); in setup()
Dshmget03.c30 TST_EXP_FAIL2(shmget(shmkey + maxshms, SHM_SIZE, IPC_CREAT | IPC_EXCL | SHM_RW), ENOSPC, in verify_shmget()
31 "shmget(%i, %i, %i)", shmkey + maxshms, SHM_SIZE, IPC_CREAT | IPC_EXCL | SHM_RW); in verify_shmget()
46 res = shmget(shmkey + num, SHM_SIZE, IPC_CREAT | IPC_EXCL | SHM_RW); in setup()
Dshmget06.c35 shm_id[1] = SAFE_SHMGET(shmkey[1], SHM_SIZE, IPC_CREAT | SHM_RW); in verify_shmget()
52 shm_id[0] = SAFE_SHMGET(shmkey[0], SHM_SIZE, IPC_CREAT | SHM_RW); in setup()
Dshmget05.c36 shm_id = SAFE_SHMGET(shmkey, SHM_SIZE, SHM_RW | IPC_CREAT); in verify_shmget()
/third_party/ltp/testcases/kernel/syscalls/ipc/shmctl/
Dshmctl02.c37 #define SHM_SIZE 2048 macro
111 shm_id3 = SAFE_SHMGET(IPC_PRIVATE, SHM_SIZE, IPC_CREAT | SHM_RW); in setup()
119 shm_id1 = SAFE_SHMGET(shmkey1, SHM_SIZE, IPC_CREAT | IPC_EXCL); in setup()
120 shm_id2 = SAFE_SHMGET(shmkey2, SHM_SIZE, IPC_CREAT | IPC_EXCL | SHM_RW); in setup()
122 tmp = shm_rem = SAFE_SHMGET(IPC_PRIVATE, SHM_SIZE, IPC_CREAT | SHM_RW); in setup()
Dshmctl01.c171 if (ds->shm_segsz != SHM_SIZE) { in check_ds()
173 desc, ds->shm_segsz, SHM_SIZE); in check_ds()
175 tst_res(TPASS, "%s: shm_segsz=%i", desc, SHM_SIZE); in check_ds()
248 shm_id = SAFE_SHMGET(IPC_PRIVATE, SHM_SIZE, IPC_CREAT | SHM_RW); in setup()
Dshmctl07.c18 #define SHM_SIZE 2048 macro
58 shm_id = SAFE_SHMGET(IPC_PRIVATE, SHM_SIZE, IPC_CREAT | SHM_RW); in setup()
Dshmctl08.c21 #define SHM_SIZE 2048 macro
93 shm_id = SAFE_SHMGET(IPC_PRIVATE, SHM_SIZE, IPC_CREAT | 0666); in setup()
Dshmctl04.c31 #define SHM_SIZE 2048 macro
163 shm_id = SAFE_SHMGET(IPC_PRIVATE, SHM_SIZE, IPC_CREAT | SHM_RW); in setup()
Dshmctl06.c33 shmid = shmget(key, SHM_SIZE, IPC_CREAT | IPC_EXCL | SHM_RW); in run()
/third_party/node/deps/v8/src/d8/
Dcov.cc19 #define SHM_SIZE 0x100000 macro
20 #define MAX_EDGES ((SHM_SIZE - 4) * 8)
45 shmem = (struct shmem_data*)v8::base::Malloc(SHM_SIZE); in __sanitizer_cov_trace_pc_guard_init()
53 shmem = (struct shmem_data*)mmap(0, SHM_SIZE, PROT_READ | PROT_WRITE, in __sanitizer_cov_trace_pc_guard_init()
/third_party/ltp/include/
Dipcshm.h41 #define SHM_SIZE 2048 /* a resonable size for a memory segment */ macro
Dlibnewipc.h44 #define SHM_SIZE 2048 macro
/third_party/ltp/testcases/kernel/mce-test/stress/tools/page-poisoning/
Dpage-poisoning.c48 #define SHM_SIZE 1 // in page_size. macro
83 static int shm_size = SHM_SIZE;
863 if (shm_size < SHM_SIZE) in main()
864 shm_size = SHM_SIZE; in main()