Home
last modified time | relevance | path

Searched refs:shmat (Results 1 – 25 of 81) sorted by relevance

1234

/openbmc/openbmc/poky/meta/recipes-devtools/qemu/qemu/
H A D0005-tests-tcg-Check-that-shmat-does-not-break-proc-self-.patch4 Subject: [PATCH 5/5] tests/tcg: Check that shmat() does not break
7 Add a regression test for a recently fixed issue, where shmat()
18 tests/tcg/multiarch/linux/linux-shmat-maps.c | 55 ++++++++++++++++++++
20 create mode 100644 tests/tcg/multiarch/linux/linux-shmat-maps.c
22 diff --git a/tests/tcg/multiarch/linux/linux-shmat-maps.c b/tests/tcg/multiarch/linux/linux-shmat-m…
26 +++ b/tests/tcg/multiarch/linux/linux-shmat-maps.c
29 + * Test that shmat() does not break /proc/self/maps.
56 + p = shmat(shmid, (void *)0x800000, SHM_RND);
64 + p = shmat(shmid, NULL, 0);
H A D0004-linux-user-Rewrite-target_shmat.patch45 /* shmat pointers are always untagged */
49 + * Because we can't use host shmat() unless the address is sufficiently
78 + * use host shmat at all.
125 - host_raddr = shmat(shmid, (void *)g2h_untagged(shmaddr), shmflg);
134 + * If host page size > target page size, the host shmat may map
151 - /* In order to use the host shmat, we need to honor host SHMLBA. */
172 + /* shmat returns EINVAL not EEXIST like mmap. */
180 - host_raddr = shmat(shmid, g2h_untagged(mmap_start),
190 + test = shmat(shmid, want, shmflg);
225 + fprintf(f, "page layout changed following shmat\n");
H A D0003-linux-user-Add-strace-for-shmat.patch4 Subject: [PATCH 3/5] linux-user: Add strace for shmat
50 + print_shmat(cpu_env, &(const struct syscallname){ .name = "shmat" },
64 -{ TARGET_NR_shmat, "shmat" , NULL, NULL, print_syscall_ret_addr },
65 +{ TARGET_NR_shmat, "shmat" , NULL, print_shmat, print_syscall_ret_addr },
/openbmc/linux/tools/testing/selftests/powerpc/ptrace/
H A Dptrace-tm-spr.c37 cptr = (struct shared *)shmat(shm_id, NULL, 0); in tm_spr()
38 cptr1 = (int *)shmat(shm_id1, NULL, 0); in tm_spr()
130 pptr = (struct shared *)shmat(shm_id, NULL, 0); in ptrace_tm_spr()
131 pptr1 = (int *)shmat(shm_id1, NULL, 0); in ptrace_tm_spr()
H A Dptrace-vsx.c22 cptr = (int *)shmat(shm_id, NULL, 0); in vsx()
84 pptr = (int *)shmat(shm_id, NULL, 0); in ptrace_vsx()
H A Dptrace-tar.c20 cptr = (int *)shmat(shm_id, NULL, 0); in tar()
95 pptr = (int *)shmat(shm_id, NULL, 0); in ptrace_tar()
H A Dptrace-tm-gpr.c26 cptr = (unsigned long *)shmat(shm_id, NULL, 0); in tm_gpr()
127 pptr = (unsigned long *)shmat(shm_id, NULL, 0); in ptrace_tm_gpr()
H A Dptrace-tm-spd-gpr.c33 cptr = (int *)shmat(shm_id, NULL, 0); in tm_spd_gpr()
134 pptr = (int *)shmat(shm_id, NULL, 0); in ptrace_tm_spd_gpr()
H A Dptrace-tm-tar.c21 cptr = (unsigned long *)shmat(shm_id, NULL, 0); in tm_tar()
126 pptr = (unsigned long *)shmat(shm_id, NULL, 0); in ptrace_tm_tar()
H A Dptrace-tm-spd-tar.c27 cptr = (int *)shmat(shm_id, NULL, 0); in tm_spd_tar()
138 pptr = (int *)shmat(shm_id, NULL, 0); in ptrace_tm_spd_tar()
H A Dptrace-tm-spd-vsx.c47 cptr = (int *)shmat(shm_id, NULL, 0); in tm_spd_vsx()
152 pptr = (int *)shmat(shm_id, NULL, 0); in ptrace_tm_spd_vsx()
H A Dptrace-tm-vsx.c34 cptr = (unsigned long *)shmat(shm_id, NULL, 0); in tm_vsx()
135 pptr = (unsigned long *)shmat(shm_id, NULL, 0); in ptrace_tm_vsx()
H A Dptrace-gpr.c28 cptr = (int *)shmat(shm_id, NULL, 0); in child()
142 pptr = (int *)shmat(shm_id, NULL, 0); in ptrace_gpr()
/openbmc/qemu/tests/tcg/multiarch/linux/
H A Dlinux-shmat-null.c20 p = shmat(shmid, NULL, 0); in main()
27 p = shmat(shmid, NULL, 0); in main()
H A Dlinux-shmat-maps.c29 p = shmat(shmid, (void *)0x800000, SHM_RND); in main()
37 p = shmat(shmid, NULL, 0); in main()
/openbmc/qemu/tests/tcg/aarch64/
H A Dlse2-fault.c21 p = shmat(id, NULL, 0); in main()
/openbmc/linux/tools/testing/selftests/powerpc/syscalls/
H A Dipc.h35 DO_TEST(shmat, __NR_shmat)
/openbmc/linux/tools/testing/selftests/mm/
H A Dhugepage-shm.c64 shmaddr = shmat(shmid, ADDR, SHMAT_FLAGS); in main()
H A Dwrite_to_hugetlbfs.c210 ptr = shmat(shmid, NULL, 0); in main()
H A Dthuge-gen.c162 char *map = shmat(id, NULL, 0600); in test_shmget()
/openbmc/linux/kernel/
H A Dsys_ni.c140 COND_SYSCALL(shmat);
141 COND_SYSCALL_COMPAT(shmat);
/openbmc/qemu/bsd-user/
H A Dbsd-mem.h370 host_raddr = shmat(shmid, (void *)g2h_untagged(shmaddr), shmflg); in do_bsd_shmat()
379 host_raddr = shmat(shmid, g2h_untagged(mmap_start), in do_bsd_shmat()
/openbmc/linux/tools/testing/selftests/futex/functional/
H A Dfutex_wait.c103 shared_data = shmat(shm_id, NULL, 0); in main()
/openbmc/openbmc/poky/meta/recipes-support/apr/apr/
H A D0001-configure-Remove-runtime-test-for-mmap-that-can-map-.patch22 @@ -1303,36 +1303,6 @@ AC_CHECK_FUNCS([mmap munmap shm_open shm_unlink shmget shmat shmdt shmctl \
/openbmc/linux/tools/testing/selftests/powerpc/mm/
H A Dtlbie_test.c658 map1 = shmat(shmid, NULL, 0); in main()
663 map2 = shmat(shmid, NULL, 0); in main()

1234