/external/strace/tests-m32/ |
D | shmxt.c | 49 void *shmaddr = shmat(id, NULL, SHM_RDONLY); in main() local 50 if (shmaddr == (void *)(-1)) in main() 52 printf("%s(%d, NULL, SHM_RDONLY) = %p\n", SHMAT, id, shmaddr); in main() 57 rc = shmdt(shmaddr); in main() 58 printf("shmdt(%p) = %s\n", shmaddr, sprintrc(rc)); in main() 60 ++shmaddr; in main() 61 void *shmaddr2 = shmat(id, shmaddr, SHM_RND); in main() 64 SHMAT, id, shmaddr, errno2name()); in main() 67 SHMAT, id, shmaddr, shmaddr2); in main() 72 shmaddr = shmat(id, NULL, SHM_RDONLY|SHM_EXEC); in main() [all …]
|
/external/strace/tests-mx32/ |
D | shmxt.c | 49 void *shmaddr = shmat(id, NULL, SHM_RDONLY); in main() local 50 if (shmaddr == (void *)(-1)) in main() 52 printf("%s(%d, NULL, SHM_RDONLY) = %p\n", SHMAT, id, shmaddr); in main() 57 rc = shmdt(shmaddr); in main() 58 printf("shmdt(%p) = %s\n", shmaddr, sprintrc(rc)); in main() 60 ++shmaddr; in main() 61 void *shmaddr2 = shmat(id, shmaddr, SHM_RND); in main() 64 SHMAT, id, shmaddr, errno2name()); in main() 67 SHMAT, id, shmaddr, shmaddr2); in main() 72 shmaddr = shmat(id, NULL, SHM_RDONLY|SHM_EXEC); in main() [all …]
|
/external/strace/tests/ |
D | shmxt.c | 49 void *shmaddr = shmat(id, NULL, SHM_RDONLY); in main() local 50 if (shmaddr == (void *)(-1)) in main() 52 printf("%s(%d, NULL, SHM_RDONLY) = %p\n", SHMAT, id, shmaddr); in main() 57 rc = shmdt(shmaddr); in main() 58 printf("shmdt(%p) = %s\n", shmaddr, sprintrc(rc)); in main() 60 ++shmaddr; in main() 61 void *shmaddr2 = shmat(id, shmaddr, SHM_RND); in main() 64 SHMAT, id, shmaddr, errno2name()); in main() 67 SHMAT, id, shmaddr, shmaddr2); in main() 72 shmaddr = shmat(id, NULL, SHM_RDONLY|SHM_EXEC); in main() [all …]
|
/external/linux-kselftest/tools/testing/selftests/vm/ |
D | hugepage-shm.c | 59 char *shmaddr; in main() local 68 shmaddr = shmat(shmid, ADDR, SHMAT_FLAGS); in main() 69 if (shmaddr == (char *)-1) { in main() 74 printf("shmaddr: %p\n", shmaddr); in main() 78 shmaddr[i] = (char)(i); in main() 86 if (shmaddr[i] != (char)i) { in main() 92 if (shmdt((const void *)shmaddr) != 0) { in main()
|
/external/ltp/include/ |
D | tst_safe_sysv_ipc.h | 53 const void *shmaddr, int shmflg); 54 #define SAFE_SHMAT(shmid, shmaddr, shmflg) \ argument 55 safe_shmat(__FILE__, __LINE__, (shmid), (shmaddr), (shmflg)) 57 int safe_shmdt(const char *file, const int lineno, const void *shmaddr); 58 #define SAFE_SHMDT(shmaddr) safe_shmdt(__FILE__, __LINE__, (shmaddr)) argument
|
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmat/ |
D | hugeshmat05.c | 65 char *shmaddr; in shm_test() local 71 shmaddr = shmat(shmid, 0, 0); in shm_test() 72 if (shmaddr == (char *)-1) { in shm_test() 78 shmaddr[0] = 1; in shm_test() 81 if (shmdt((const void *)shmaddr) != 0) { in shm_test()
|
/external/ltp/testcases/kernel/syscalls/mremap/ |
D | mremap04.c | 94 char *shmaddr; /* pointer to shared memory segment */ variable 124 addr = mremap(shmaddr, memsize, newsize, 0); in main() 206 shmaddr = shmat(shmid, NULL, 0); in setup() 207 if (shmaddr == (void *)-1) { in setup() 226 if (shmdt(shmaddr) < 0) { in cleanup()
|
/external/ltp/lib/ |
D | tst_safe_sysv_ipc.c | 106 const void *shmaddr, int shmflg) in safe_shmat() argument 110 rval = shmat(shmid, shmaddr, shmflg); in safe_shmat() 113 file, lineno, shmid, shmaddr, shmflg); in safe_shmat() 119 int safe_shmdt(const char *file, const int lineno, const void *shmaddr) in safe_shmdt() argument 123 rval = shmdt(shmaddr); in safe_shmdt() 126 file, lineno, shmaddr); in safe_shmdt()
|
/external/ltp/testcases/kernel/sched/process_stress/ |
D | process.c | 143 Pinfo *shmaddr; /* Start address of shared memory */ variable 193 extern Pinfo *shmaddr; /* shared memory pointer */ in print_shm() 204 for (pinfo = shmaddr, i = 0; i < nodesum; i++, pinfo++) { in print_shm() 297 extern Pinfo *shmaddr; /* Global shared memory address */ in rm_shmseg() 385 extern Pinfo *shmaddr; in put_proc_info() 391 smp = shmaddr + tval; in put_proc_info() 404 smp->list = (int *)(Pinfo *) (shmaddr + nodesum) + (BVAL * tval); in put_proc_info() 425 extern Pinfo *shmaddr; in notify() 430 int *listp = (shmaddr + slot)->list; in notify() 443 sprintf(mtext, "%d %d %d", i, slot, (shmaddr + slot)->pid); in notify() [all …]
|
/external/bcc/tools/ |
D | shmsnoop_example.txt | 8 19813 server SHMAT 7f1cf8b1f000 shmid: 0x10000, shmaddr: 0x0, shmflg: 0x0 10 19816 client SHMAT 7f4fd8ee7000 shmid: 0x10000, shmaddr: 0x0, shmflg: 0x0 11 19816 client SHMDT 0 shmaddr: 0x7f4fd8ee7000 12 19813 server SHMDT 0 shmaddr: 0x7f1cf8b1f000 34 0.563194000 19825 server SHMDT 0 shmaddr: 0x7f74362e4000 42 19855 server SHMDT 0 shmaddr: 0x7f4329ff8000
|
D | shmsnoop.py | 307 (event.shmid, event.shmaddr, shmflg_str(event.shmflg, shmat_flags))) 310 print("shmaddr: 0x%lx" % (event.shmaddr))
|
/external/ltp/testcases/kernel/syscalls/ipc/shmat/ |
D | shmat01.c | 40 void **shmaddr; member 90 addr = shmat(shm_id, *tc->shmaddr, tc->flag); in verify_shmat() 108 if (expected_addr(*tc->shmaddr, addr) != addr) { in verify_shmat() 111 addr, expected_addr(*tc->shmaddr, addr)); in verify_shmat()
|
D | shmat02.c | 36 void **shmaddr; member 49 addr = shmat(*tc->shmid, *tc->shmaddr, 0); in verify_shmat()
|
/external/stressapptest/src/ |
D | os.cc | 541 void *shmaddr; in AllocateTestMem() local 554 shmaddr = shmat(shmid, NULL, 0); in AllocateTestMem() 555 if (shmaddr == reinterpret_cast<void*>(-1)) { in AllocateTestMem() 572 buf = shmaddr; in AllocateTestMem() 574 shmid, shmaddr); in AllocateTestMem() 581 void *shmaddr = NULL; in AllocateTestMem() local 609 shmaddr = mmap64(NULL, length, PROT_READ | PROT_WRITE, in AllocateTestMem() 612 if (shmaddr == reinterpret_cast<void*>(-1)) { in AllocateTestMem() 624 buf = shmaddr; in AllocateTestMem() 629 sprintf(location_message, "at %p", shmaddr); in AllocateTestMem()
|
/external/webrtc/modules/desktop_capture/linux/ |
D | x_server_pixel_buffer.cc | 176 if (shm_segment_info_->shmaddr != nullptr) in ReleaseSharedMemorySegment() 177 shmdt(shm_segment_info_->shmaddr); in ReleaseSharedMemorySegment() 226 shm_segment_info_->shmaddr = nullptr; in InitShm() 238 shm_segment_info_->shmaddr = reinterpret_cast<char*>(shmat_result); in InitShm() 239 x_shm_image_->data = shm_segment_info_->shmaddr; in InitShm() 282 display_, window_, shm_segment_info_->shmaddr, shm_segment_info_, in InitPixmaps()
|
/external/mesa3d/src/gallium/winsys/sw/xlib/ |
D | xlib_sw_winsys.c | 127 shminfo->shmaddr = (char *) -1; in alloc_shm() 135 shminfo->shmaddr = (char *) shmat(shminfo->shmid, 0, 0); in alloc_shm() 136 if (shminfo->shmaddr == (char *) -1) { in alloc_shm() 142 return shminfo->shmaddr; in alloc_shm() 261 shmdt(xlib_dt->shminfo.shmaddr); in xlib_displaytarget_destroy() 265 xlib_dt->shminfo.shmaddr = (char *) -1; in xlib_displaytarget_destroy()
|
/external/linux-kselftest/tools/testing/selftests/powerpc/benchmarks/ |
D | context_switch.c | 318 void *shmaddr; in futex_setup() local 326 shmaddr = shmat(shmid, NULL, 0); in futex_setup() 327 if (shmaddr == (char *)-1) { in futex_setup() 335 m1 = shmaddr; in futex_setup() 336 m2 = shmaddr + sizeof(*m1); in futex_setup()
|
/external/ltp/testcases/kernel/mem/hugetlb/hugemmap/ |
D | hugemmap05.c | 81 void *addr = NULL, *shmaddr = NULL; in test_overcommit() local 121 shmaddr = SAFE_SHMAT(shmid, ADDR, SHMAT_FLAGS); in test_overcommit() 122 check_wr_bytes(shmaddr); in test_overcommit() 155 SAFE_SHMDT(shmaddr); in test_overcommit()
|
/external/swiftshader/src/Main/ |
D | FrameBufferX11.cpp | 69 shminfo.shmaddr = x_image->data = (char*)shmat(shminfo.shmid, 0, 0); in FrameBufferX11() 82 shmdt(shminfo.shmaddr); in FrameBufferX11() 116 shmdt(shminfo.shmaddr); in ~FrameBufferX11()
|
/external/mesa3d/src/mesa/drivers/x11/ |
D | xm_buffer.c | 104 b->shminfo.shmaddr = b->backxrb->ximage->data in alloc_back_shm_ximage() 106 if (b->shminfo.shmaddr == (char *) -1) { in alloc_back_shm_ximage() 128 shmdt(b->shminfo.shmaddr); in alloc_back_shm_ximage() 149 shmdt(b->shminfo.shmaddr); in alloc_back_shm_ximage() 183 shmdt(b->shminfo.shmaddr); in alloc_back_buffer() 402 shmdt( b->shminfo.shmaddr ); in xmesa_delete_framebuffer()
|
/external/mesa3d/src/glx/ |
D | drisw_glx.c | 214 int shmid, char *shmaddr, unsigned offset, in swrastPutImageShm() argument 219 pdp->shminfo.shmaddr = shmaddr; in swrastPutImageShm() 221 shmaddr + offset, loaderPrivate); in swrastPutImageShm() 228 int shmid, char *shmaddr, unsigned offset, in swrastPutImageShm2() argument 233 pdp->shminfo.shmaddr = shmaddr; in swrastPutImageShm2() 235 shmaddr + offset, loaderPrivate); in swrastPutImageShm2() 314 ximage->data = prp->shminfo.shmaddr; /* no offset */ in swrastGetImageShm2()
|
/external/mesa3d/src/gallium/frontends/dri/ |
D | drisw.c | 81 put_image_shm(__DRIdrawable *dPriv, int shmid, char *shmaddr, in put_image_shm() argument 92 shmid, shmaddr, offset, dPriv->loaderPrivate); in put_image_shm() 96 shmid, shmaddr, offset + offset_x, dPriv->loaderPrivate); in put_image_shm() 190 int shmid, char *shmaddr, unsigned offset, in drisw_put_image_shm() argument 197 put_image_shm(dPriv, shmid, shmaddr, offset, offset_x, x, y, width, height, stride); in drisw_put_image_shm()
|
/external/mesa3d/src/gallium/include/frontend/ |
D | drisw_api.h | 23 int shmid, char *shmaddr, unsigned offset, unsigned offset_x,
|
/external/crosvm/gpu_display/src/ |
D | gpu_display_x.rs | 196 shmdt(self.segment_info.shmaddr as *const _); in drop() 204 unsafe { VolatileSlice::from_raw_parts(self.segment_info.shmaddr as *mut _, self.size) } in as_volatile_slice() 477 segment_info.shmaddr = shmat(segment_info.shmid, null_mut(), 0) as *mut _; in lazily_allocate_buffer() 478 if segment_info.shmaddr == (-1isize) as *mut _ { in lazily_allocate_buffer() 483 (*image).data = segment_info.shmaddr; in lazily_allocate_buffer()
|
/external/compiler-rt/include/sanitizer/ |
D | linux_syscall_hooks.h | 1329 #define __sanitizer_syscall_pre_shmat(shmid, shmaddr, shmflg) \ argument 1330 __sanitizer_syscall_pre_impl_shmat((long)(shmid), (long)(shmaddr), \ 1332 #define __sanitizer_syscall_post_shmat(res, shmid, shmaddr, shmflg) \ argument 1333 __sanitizer_syscall_post_impl_shmat(res, (long)(shmid), (long)(shmaddr), \ 1340 #define __sanitizer_syscall_pre_shmdt(shmaddr) \ argument 1341 __sanitizer_syscall_pre_impl_shmdt((long)(shmaddr)) 1342 #define __sanitizer_syscall_post_shmdt(res, shmaddr) \ argument 1343 __sanitizer_syscall_post_impl_shmdt(res, (long)(shmaddr)) 2757 void __sanitizer_syscall_pre_impl_shmat(long shmid, long shmaddr, long shmflg); 2758 void __sanitizer_syscall_post_impl_shmat(long res, long shmid, long shmaddr, [all …]
|