Searched defs:shmaddr (Results 1 - 15 of 15) sorted by relevance

/external/linux-kselftest/tools/testing/selftests/vm/
H A Dhugepage-shm.c59 char *shmaddr; local
68 shmaddr = shmat(shmid, ADDR, SHMAT_FLAGS);
69 if (shmaddr == (char *)-1) {
74 printf("shmaddr: %p\n", shmaddr);
78 shmaddr[i] = (char)(i);
86 if (shmaddr[i] != (char)i) {
92 if (shmdt((const void *)shmaddr) != 0) {
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmat/
H A Dhugeshmat05.c65 char *shmaddr; local
71 shmaddr = shmat(shmid, 0, 0);
72 if (shmaddr == (char *)-1) {
78 shmaddr[0] = 1;
81 if (shmdt((const void *)shmaddr) != 0) {
/external/ltp/testcases/kernel/syscalls/mremap/
H A Dmremap04.c95 char *shmaddr; /* pointer to shared memory segment */ variable
125 addr = mremap(shmaddr, memsize, newsize, 0);
207 shmaddr = shmat(shmid, NULL, 0);
208 if (shmaddr == (void *)-1) {
227 if (shmdt(shmaddr) < 0) {
/external/strace/tests/
H A Dshmxt.c49 void *shmaddr = shmat(id, NULL, SHM_RDONLY); local
50 if (shmaddr == (void *)(-1))
52 printf("%s(%d, NULL, SHM_RDONLY) = %p\n", SHMAT, id, shmaddr);
57 rc = shmdt(shmaddr);
58 printf("shmdt(%p) = %s\n", shmaddr, sprintrc(rc));
60 ++shmaddr;
61 void *shmaddr2 = shmat(id, shmaddr, SHM_RND);
64 SHMAT, id, shmaddr, errno2name());
67 SHMAT, id, shmaddr, shmaddr2);
72 shmaddr
[all...]
/external/strace/tests-m32/
H A Dshmxt.c49 void *shmaddr = shmat(id, NULL, SHM_RDONLY); local
50 if (shmaddr == (void *)(-1))
52 printf("%s(%d, NULL, SHM_RDONLY) = %p\n", SHMAT, id, shmaddr);
57 rc = shmdt(shmaddr);
58 printf("shmdt(%p) = %s\n", shmaddr, sprintrc(rc));
60 ++shmaddr;
61 void *shmaddr2 = shmat(id, shmaddr, SHM_RND);
64 SHMAT, id, shmaddr, errno2name());
67 SHMAT, id, shmaddr, shmaddr2);
72 shmaddr
[all...]
/external/strace/tests-mx32/
H A Dshmxt.c49 void *shmaddr = shmat(id, NULL, SHM_RDONLY); local
50 if (shmaddr == (void *)(-1))
52 printf("%s(%d, NULL, SHM_RDONLY) = %p\n", SHMAT, id, shmaddr);
57 rc = shmdt(shmaddr);
58 printf("shmdt(%p) = %s\n", shmaddr, sprintrc(rc));
60 ++shmaddr;
61 void *shmaddr2 = shmat(id, shmaddr, SHM_RND);
64 SHMAT, id, shmaddr, errno2name());
67 SHMAT, id, shmaddr, shmaddr2);
72 shmaddr
[all...]
/external/ltp/lib/
H A Dtst_safe_sysv_ipc.c98 const void *shmaddr, int shmflg)
102 rval = shmat(shmid, shmaddr, shmflg);
105 file, lineno, shmid, shmaddr, shmflg);
111 int safe_shmdt(const char *file, const int lineno, const void *shmaddr) argument
115 rval = shmdt(shmaddr);
118 file, lineno, shmaddr);
97 safe_shmat(const char *file, const int lineno, int shmid, const void *shmaddr, int shmflg) argument
/external/ltp/testcases/kernel/syscalls/ipc/shmat/
H A Dshmat02.c22 * 2) shmat() fails and set errno to EINVAL when shmaddr is not page
48 void **shmaddr; member in struct:test_case_t
61 addr = shmat(*tc->shmid, *tc->shmaddr, 0);
H A Dshmat01.c22 * 1) shmat() chooses a suitable (unused) address when shmaddr is NULL.
23 * 2) shmat() attaches shm segment to the shmaddr when shmaddr is a
25 * 3) shmat() attaches shm segment to the address equal to shmaddr rounded
26 * down to the nearest multiple of SHMLBA when shmaddr is a page-unaligned
28 * 4) shmat() attaches shm segment to the shmaddr for reading when shmflg
53 void **shmaddr; member in struct:test_case_t
113 addr = shmat(shm_id, *tc->shmaddr, tc->flag);
131 if (expected_addr(*tc->shmaddr, addr) != addr) {
134 addr, expected_addr(*tc->shmaddr, add
[all...]
/external/ltp/testcases/kernel/mem/hugetlb/hugemmap/
H A Dhugemmap05.c93 void *addr = NULL, *shmaddr = NULL; local
133 shmaddr = SAFE_SHMAT(shmid, ADDR, SHMAT_FLAGS);
134 check_wr_bytes(shmaddr);
167 SAFE_SHMDT(shmaddr);
/external/linux-kselftest/tools/testing/selftests/powerpc/benchmarks/
H A Dcontext_switch.c322 void *shmaddr; local
330 shmaddr = shmat(shmid, NULL, 0);
331 if (shmaddr == (char *)-1) {
339 m1 = shmaddr;
340 m2 = shmaddr + sizeof(*m1);
/external/ltp/testcases/kernel/sched/process_stress/
H A Dprocess.c144 Pinfo *shmaddr; /* Start address of shared memory */ variable
194 extern Pinfo *shmaddr; /* shared memory pointer */
205 for (pinfo = shmaddr, i = 0; i < nodesum; i++, pinfo++) {
298 extern Pinfo *shmaddr; /* Global shared memory address */
386 extern Pinfo *shmaddr;
392 smp = shmaddr + tval;
405 smp->list = (int *)(Pinfo *) (shmaddr + nodesum) + (BVAL * tval);
426 extern Pinfo *shmaddr;
431 int *listp = (shmaddr + slot)->list;
444 sprintf(mtext, "%d %d %d", i, slot, (shmaddr
[all...]
/external/stressapptest/src/
H A Dos.cc526 void *shmaddr; local
539 shmaddr = shmat(shmid, NULL, 0);
540 if (shmaddr == reinterpret_cast<void*>(-1)) {
557 buf = shmaddr;
559 shmid, shmaddr);
566 void *shmaddr = NULL; local
594 shmaddr = mmap64(NULL, length, PROT_READ | PROT_WRITE,
597 if (shmaddr == reinterpret_cast<void*>(-1)) {
609 buf = shmaddr;
614 sprintf(location_message, "at %p", shmaddr);
[all...]
/external/compiler-rt/lib/msan/
H A Dmsan_interceptors.cc1191 INTERCEPTOR(void *, shmat, int shmid, const void *shmaddr, int shmflg) { argument
1193 void *p = REAL(shmat)(shmid, shmaddr, shmflg);
/external/fio/os/windows/
H A Dposix.c623 void *shmat(int shmid, const void *shmaddr, int shmflg) argument
647 int shmdt(const void *shmaddr) argument
649 if (!UnmapViewOfFile(shmaddr)) {

Completed in 444 milliseconds