Lines Matching refs:ARG3
1165 ARG1, (HChar *) ARG1, ARG2, ARG3, ARG4, ARG5);
1171 if (ARG3 > 0) {
1189 | file actions | (not included in ksa_size, only in ARG3)
1194 attrs_size (ARG3) = ksa_size + file actions size */
1249 while ((Addr) kfa < ARG2 + ARG3) {
1267 if (!VG_(am_is_valid_for_client)(ARG2, ARG3, VKI_PROT_READ)) {
1295 attrs_size = ARG3 + sizeof(vki_spawn_attr_t);
1298 SizeT file_actions_size = ARG3 - attrs->ksa_size;
1316 (HChar *) ARG2 + ARG3 - file_actions_size,
1321 attrs_size = ARG3;
1631 Int arg1, UWord arg3, UWord arg4)
1647 arg3, arg4);
1649 sres = VG_(do_syscall3)(SYS_open, (UWord) filename, arg3, arg4);
1653 arg3, arg4);
1740 SARG2, ARG3);
1755 ARG2, ARG3))
1797 Int fd2 = (Int) ARG3;
1832 ARG1, (HChar *) ARG1, fd, ARG3, (HChar *) ARG3);
1836 PRE_MEM_RASCIIZ("symlinkat(path2)", ARG3);
1840 && ML_(safe_to_deref)((void *) ARG3, 1)
1841 && ((HChar *) ARG3)[0] != '/'
2221 if (ARG3 & VKI_MS_OPTIONSTR) {
2230 else if (ARG3 & VKI_MS_DATA) {
2253 if (ARG3 & (VKI_MS_DATA | VKI_MS_OPTIONSTR)) {
2256 if ((ARG3 & VKI_MS_OPTIONSTR) && ARG7) {
2266 if (ARG3 & VKI_MS_OPTIONSTR) {
2268 } else if (ARG3 & VKI_MS_DATA) {
2270 (ARG3 & MS_NOMNTTAB) &&
2292 (HChar *) ARG2, ARG3, SARG4);
2296 PRE_MEM_WRITE("readlinkat(buf)", ARG3, ARG4);
2314 SET_STATUS_from_SysRes(VG_(do_syscall4)(saved, dfd, (UWord)name, ARG3,
2321 POST_MEM_WRITE(ARG3, RES);
2361 fd, ARG2, (HChar *) ARG2, ARG3, ARG4);
2365 PRE_MEM_WRITE("frealpathat(buf)", ARG3, ARG4);
2377 POST_MEM_WRITE(ARG3, VG_(strlen)((HChar *) ARG3) + 1);
2552 /* int sysi86(int cmd, uintptr_t arg1, uintptr_t arg2, uintptr_t arg3); */
2553 PRINT("sys_sysi86 ( %ld, %#lx, %#lx, %#lx )", SARG1, ARG2, ARG3, ARG4);
2555 uintptr_t, arg3);
2560 /* ARG3 is a desired x87 FCW value, ARG4 is a desired SSE MXCSR value.
2595 SARG1, SARG2, ARG3, SARG4);
2599 UWord addr = ML_(generic_PRE_sys_shmat)(tid, ARG2, ARG3, ARG4);
2603 ARG3 = addr;
2608 switch (ARG3 /* cmd */) {
2707 SARG1, SARG2, ARG3, ARG4);
2715 SARG1, ARG2, ARG3, ARG4);
2719 PRE_MEM_WRITE("shmsys(shmids, buf)", ARG2, ARG3 * sizeof(int *));
2727 SARG1, SARG2, ARG3, ARG4);
2731 switch (ARG3 /*cmd*/) {
2742 "cmd %lu.", ARG3);
2753 SARG1, SARG2, ARG3, SARG4, ARG5);
2772 ML_(generic_POST_sys_shmat)(tid, RES, ARG2, ARG3, ARG4);
2776 switch (ARG3 /*cmd*/) {
2813 if (*pnids <= ARG3)
2820 switch (ARG3 /*cmd*/) {
2935 ML_(generic_PRE_sys_semctl)(tid, ARG2, ARG3, ARG4, ARG5);
2945 PRINT("sys_semsys ( %ld, %ld, %#lx, %lu )", SARG1, SARG2, ARG3, ARG4);
2948 ML_(generic_PRE_sys_semop)(tid, ARG2, ARG3, ARG4);
2952 PRINT("sys_semsys ( %ld, %#lx, %lu, %#lx )", SARG1, ARG2, ARG3, ARG4);
2956 PRE_MEM_WRITE("semsys(semids, buf)", ARG2, ARG3 * sizeof(int *));
2963 PRINT("sys_semsys ( %ld, %ld, %#lx, %lu, %#lx )", SARG1, SARG2, ARG3,
2968 ML_(generic_PRE_sys_semtimedop)(tid, ARG2, ARG3, ARG4, ARG5);
2981 ML_(generic_POST_sys_semctl)(tid, RES, ARG2, ARG3, ARG4, ARG5);
2991 if (*pnids <= ARG3)
3017 /* Handle 2-arg specially here (they do not use ARG3 at all). */
3025 PRINT("sys_ioctl ( %ld, %#lx, %#lx )", SARG1, ARG2, ARG3);
3033 PRE_MEM_WRITE("ioctl(POOL_STATUSQ)", ARG3, sizeof(vki_pool_status_t));
3040 ARG3, sizeof(struct vki_mntentbuf));
3042 struct vki_mntentbuf *embuf = (struct vki_mntentbuf *) ARG3;
3075 PRE_MEM_WRITE("ioctl(TCGETA)", ARG3, sizeof(struct vki_termio));
3078 PRE_MEM_WRITE("ioctl(TCGETS)", ARG3, sizeof(struct vki_termios));
3081 PRE_MEM_READ("ioctl(TCSETS)", ARG3, sizeof(struct vki_termios));
3084 PRE_MEM_READ("ioctl(TCSETSW)", ARG3, sizeof(struct vki_termios));
3087 PRE_MEM_READ("ioctl(TCSETSF)", ARG3, sizeof(struct vki_termios));
3090 PRE_MEM_WRITE("ioctl(TIOCGWINSZ)", ARG3, sizeof(struct vki_winsize));
3093 PRE_MEM_READ("ioctl(TIOCSWINSZ)", ARG3, sizeof(struct vki_winsize));
3096 PRE_MEM_WRITE("ioctl(TIOCGPGRP)", ARG3, sizeof(vki_pid_t));
3099 PRE_MEM_READ("ioctl(TIOCSPGRP)", ARG3, sizeof(vki_pid_t));
3102 PRE_MEM_WRITE("ioctl(TIOCGSID)", ARG3, sizeof(vki_pid_t));
3110 PRE_MEM_RASCIIZ("ioctl(I_PUSH)", ARG3);
3114 PRE_MEM_READ("ioctl(I_STR)", ARG3, sizeof(struct vki_strioctl));
3116 struct vki_strioctl *p = (struct vki_strioctl *) ARG3;
3128 struct vki_strpeek *p = (struct vki_strpeek*)ARG3;
3161 struct vki_ifconf *p = (struct vki_ifconf *) ARG3;
3174 struct vki_ifreq *p = (struct vki_ifreq *) ARG3;
3181 struct vki_ifreq *p = (struct vki_ifreq *) ARG3;
3187 PRE_MEM_WRITE("ioctl(SIOCGIFNUM)", ARG3, sizeof(int));
3191 struct vki_lifreq *p = (struct vki_lifreq *) ARG3;
3200 struct vki_lifconf *p = (struct vki_lifconf *) ARG3;
3217 struct vki_lifreq *p = (struct vki_lifreq *) ARG3;
3226 struct vki_lifreq *p = (struct vki_lifreq *) ARG3;
3235 struct vki_lifnum *p = (struct vki_lifnum *) ARG3;
3247 PRE_MEM_READ("ioctl(FIOSETOWN)", ARG3, sizeof(vki_pid_t));
3250 PRE_MEM_WRITE("ioctl(FIOGETOWN)", ARG3, sizeof(vki_pid_t));
3257 (vki_crypto_get_provider_list_t *) ARG3;
3262 PRE_MEM_WRITE("ioctl(CRYPTO_GET_PROVIDER_LIST)", ARG3,
3277 vki_dof_helper_t *dh = (vki_dof_helper_t *) ARG3;
3288 ML_(PRE_unknown_ioctl)(tid, ARG2, ARG3);
3297 ARG4 = ARG3;
3310 POST_MEM_WRITE(ARG3, sizeof(vki_pool_status_t));
3316 struct vki_mntentbuf *embuf = (struct vki_mntentbuf *) ARG3;
3342 POST_MEM_WRITE(ARG3, sizeof(struct vki_termio));
3345 POST_MEM_WRITE(ARG3, sizeof(struct vki_termios));
3354 POST_MEM_WRITE(ARG3, sizeof(struct vki_winsize));
3359 POST_MEM_WRITE(ARG3, sizeof(vki_pid_t));
3364 POST_MEM_WRITE(ARG3, sizeof(vki_pid_t));
3375 struct vki_strioctl *p = (struct vki_strioctl *) ARG3;
3384 struct vki_strpeek *p = (struct vki_strpeek*)ARG3;
3402 struct vki_ifconf *p = (struct vki_ifconf *) ARG3;
3411 struct vki_ifreq *p = (struct vki_ifreq *) ARG3;
3417 struct vki_ifreq *p = (struct vki_ifreq *) ARG3;
3422 POST_MEM_WRITE(ARG3, sizeof(int));
3426 struct vki_lifreq *p = (struct vki_lifreq *) ARG3;
3432 struct vki_lifconf *p = (struct vki_lifconf *) ARG3;
3441 struct vki_lifreq *p = (struct vki_lifreq *) ARG3;
3447 struct vki_lifreq *p = (struct vki_lifreq *) ARG3;
3453 struct vki_lifnum *p = (struct vki_lifnum *) ARG3;
3462 POST_MEM_WRITE(ARG3, sizeof(vki_pid_t));
3469 (vki_crypto_get_provider_list_t *) ARG3;
3536 PRINT("sys_execve ( %#lx, %#lx, %#lx, %ld )", ARG1, ARG2, ARG3, SARG4);
3544 ARG1, (HChar *) ARG1, ARG2, ARG3);
3560 if (ARG3)
3561 ML_(pre_argv_envp)(ARG3, tid, "execve(envp)", "execve(envp[i])");
3697 if (ARG3 != 0) {
3698 envp = VG_(env_clone)((HChar**)ARG3);
3704 /* Set VALGRIND_LIB in ARG3 (the environment). */
3825 "errno %ld\n", SARG1, ARG2, ARG3, ARG4, ERR);
3828 " %lu\n", ARG1, (HChar *) ARG1, ARG2, ARG3, SARG4, ERR);
3831 ARG1, (HChar *) ARG1, ARG2, ARG3, ERR);
3864 /* These ones ignore ARG3. */
3872 /* These ones use ARG3 as "arg". */
3883 !ML_(fd_allowed)(ARG3, "fcntl(F_DUP2FD)", tid, False)) {
3889 /* These ones use ARG3 as "native lock" (input only). */
3895 PRINT("sys_fcntl ( %ld, %ld, %#lx )", SARG1, SARG2, ARG3);
3898 pre_mem_read_flock(tid, (struct vki_flock*)ARG3);
3901 /* This one uses ARG3 as "native lock" (input&output). */
3903 PRINT("sys_fcntl ( %ld, %ld, %#lx )", SARG1, SARG2, ARG3);
3906 pre_mem_read_flock(tid, (struct vki_flock*)ARG3);
3907 PRE_MEM_WRITE("fcntl(lock)", ARG3, sizeof(struct vki_flock));
3911 /* These ones use ARG3 as "transitional 64b lock" (input only). */
3917 PRINT("sys_fcntl ( %ld, %ld, %#lx )", SARG1, SARG2, ARG3);
3920 pre_mem_read_flock64(tid, (struct vki_flock64*)ARG3);
3923 /* This one uses ARG3 as "transitional 64b lock" (input&output). */
3925 PRINT("sys_fcntl ( %ld, %ld, %#lx )", SARG1, SARG2, ARG3);
3928 pre_mem_read_flock64(tid, (struct vki_flock64*)ARG3);
3929 PRE_MEM_WRITE("fcntl(lock)", ARG3, sizeof(struct vki_flock64));
3933 /* These ones use ARG3 as "fshare". */
3937 PRINT("sys_fcntl[ARG3=='fshare'] ( %ld, %ld, %#lx )", SARG1, SARG2, ARG3);
3940 PRE_MEM_READ("fcntl(fshare)", ARG3, sizeof(struct vki_fshare));
3982 /* This one uses ARG3 as "native lock" (input&output). */
3984 POST_MEM_WRITE(ARG3, sizeof(struct vki_flock));
3988 /* This one uses ARG3 as "transitional 64b lock" (input&output). */
3990 POST_MEM_WRITE(ARG3, sizeof(struct vki_flock64));
4007 Int tofd = (Int) ARG3;
4066 (HChar *) ARG2, ARG3, SARG4);
4074 PRE_MEM_WRITE("fstatat(buf)", ARG3, sizeof(struct vki_stat));
4086 POST_MEM_WRITE(ARG3, sizeof(struct vki_stat));
4098 if (ARG3 & VKI_O_CREAT) {
4124 if (ML_(handle_auxv_open)(status, (const HChar *) ARG2, ARG3))
4128 fd, ARG3, ARG4))
4157 PRINT("sys_tasksys ( %ld, %ld, %lu )", SARG1, SARG2, ARG3);
4230 PRE_MEM_READ("lwp_park(lwpid)", ARG2, ARG3 * sizeof(vki_id_t));
4262 SARG1, SARG2, ARG3, SARG4, ARG5);
4271 PRE_MEM_READ("sendfilev(vec)", ARG3,
4275 struct vki_sendfilevec *vec = (struct vki_sendfilevec *) ARG3;
4301 PRE_MEM_READ("sendfilev(vec)", ARG3,
4306 (struct vki_sendfilevec64 *) ARG3;
4350 PRINT("sys_lwp_name ( %ld, %ld, %#lx, %lu )", SARG1, SARG2, ARG3, ARG4);
4357 PRE_MEM_RASCIIZ("lwp_name(name)", ARG3);
4363 PRE_MEM_WRITE("lwp_name(name)", ARG3, ARG4);
4376 if (ARG3) { // Paranoia
4377 const HChar *new_name = (const HChar *) ARG3;
4388 POST_MEM_WRITE(ARG3, VG_(strlen)((HChar *) ARG3) + 1);
4441 PRINT("sys_privsys ( %ld, %lu, %lu )", SARG1, ARG2, ARG3);
4515 PRINT("sys_ucredsys ( %ld, %ld, %#lx )", SARG1, SARG2, ARG3);
4522 PRE_MEM_WRITE("ucredsys(buf)", ARG3, sizeof(vki_ucred_t));
4529 PRE_MEM_WRITE("ucredsys(buf)", ARG3, sizeof(vki_ucred_t));
4548 vg_assert(ARG3 != 0);
4549 POST_MEM_WRITE(ARG3, ((vki_ucred_t *) ARG3)->uc_size);
4563 struct vki_strbuf *dataptr = (struct vki_strbuf *)ARG3;
4565 PRINT("sys_getmsg ( %ld, %#lx, %#lx, %#lx )", SARG1, ARG2, ARG3, ARG4);
4581 if (ML_(safe_to_deref)((void*)ARG3, sizeof(struct vki_strbuf))
4597 struct vki_strbuf *dataptr = (struct vki_strbuf *)ARG3;
4611 struct vki_strbuf *dataptr = (struct vki_strbuf *)ARG3;
4613 PRINT("sys_putmsg ( %ld, %#lx, %#lx, %ld )", SARG1, ARG2, ARG3, SARG4);
4627 if (ML_(safe_to_deref)((void*)ARG3, sizeof(struct vki_strbuf))
4659 PRINT("sys_sigprocmask ( %ld, %#lx, %#lx )", SARG1, ARG2, ARG3);
4664 if (ARG3)
4665 PRE_MEM_WRITE("sigprocmask(oset)", ARG3, sizeof(vki_sigset_t));
4671 if (ARG3 && !ML_(safe_to_deref((void*)ARG3, sizeof(vki_sigset_t)))) {
4678 (vki_sigset_t*)ARG3)
4687 if (ARG3)
4688 ARG3, sizeof(vki_sigset_t));
4695 PRINT("sys_sigaction ( %ld, %#lx, %#lx )", SARG1, ARG2, ARG3);
4708 if (ARG3)
4709 PRE_MEM_WRITE("sigaction(oact)", ARG3, sizeof(vki_sigaction_fromK_t));
4716 if (ARG3 && !ML_(safe_to_deref((void*)ARG3,
4724 (vki_sigaction_fromK_t*)ARG3));
4729 if (ARG3)
4730 POST_MEM_WRITE(ARG3, sizeof(vki_sigaction_fromK_t));
4982 PRINT("sys_waitid( %ld, %ld, %#lx, %ld )", SARG1, SARG2, ARG3, SARG4);
4985 PRE_MEM_WRITE("waitid(infop)", ARG3, sizeof(vki_siginfo_t));
4990 POST_MEM_WRITE(ARG3, sizeof(vki_siginfo_t));
4997 uintptr_t arg3, uintptr_t arg4);
5003 PRINT("sys_utimesys ( %ld, %ld, %#lx )", SARG1, SARG2, ARG3);
5006 if (ARG3)
5007 PRE_MEM_READ("utimesys(times)", ARG3, 2 * sizeof(vki_timespec_t));
5025 SARG1, fd, ARG3, (HChar *) ARG3, ARG4, SARG5);
5028 if (ARG3)
5029 PRE_MEM_RASCIIZ("utimesys(path)", ARG3);
5035 && ML_(safe_to_deref)((void *) ARG3, 1)
5036 && ((HChar *) ARG3)[0] != '/'
5061 fd, ARG2, (HChar *) ARG2, ARG3, SARG4);
5066 if (ARG3)
5067 PRE_MEM_READ("utimensat(times)", ARG3, 2 * sizeof(vki_timespec_t));
5087 PRINT("sys_sigresend( %ld, %#lx, %#lx )", SARG1, ARG2, ARG3);
5093 PRE_MEM_WRITE("sigresend(mask)", ARG3, sizeof(vki_sigset_t));
5099 if (!ML_(safe_to_deref)((void*)ARG3, sizeof(vki_sigset_t))) {
5108 ARG4 = ARG3;
5116 ARG3 = (UWord)&block_all;
5251 switch (ARG3 /*cmd*/) {
5434 switch (ARG3 /*cmd*/) {
5533 ARG1, ARG2, ARG3, ARG4, SARG5, ARG6);
5541 r = ML_(generic_PRE_sys_mmap)(tid, ARG1, ARG2, ARG3, ARG4, ARG5, offset);
6095 PRINT("sys_mmapobj ( %ld, %#lx, %#lx, %#lx, %#lx )", SARG1, ARG2, ARG3,
6105 PRE_MEM_WRITE("mmapobj(storage)", ARG3,
6136 if (!ML_(safe_to_deref)((void *) ARG3,
6151 (vki_mmapobj_result_t *) ARG3, elements);
6159 vki_mmapobj_result_t *mrp = &((vki_mmapobj_result_t *) ARG3)[idx];
6179 if (ARG3 != VKI_MC_LOCKAS && ARG3 != VKI_MC_UNLOCKAS &&
6188 if (ARG3 == VKI_MC_HAT_ADVISE)
6197 struct vki_strbuf *dataptr = (struct vki_strbuf *)ARG3;
6199 PRINT("sys_getpmsg ( %ld, %#lx, %#lx, %#lx, %#lx )", SARG1, ARG2, ARG3,
6216 if (ML_(safe_to_deref)((void*)ARG3, sizeof(struct vki_strbuf))
6234 struct vki_strbuf *dataptr = (struct vki_strbuf *)ARG3;
6249 struct vki_strbuf *dataptr = (struct vki_strbuf *)ARG3;
6251 PRINT("sys_putpmsg ( %ld, %#lx, %#lx, %ld, %ld )", SARG1, ARG2, ARG3, SARG4,
6266 if (ML_(safe_to_deref)((void*)ARG3, sizeof(struct vki_strbuf))
6350 PRE_MEM_WRITE("sysinfo(buf)", ARG2, ARG3);
6368 POST_MEM_WRITE(ARG2, MIN(RES, ARG3));
6480 PRINT("sys_sigtimedwait ( %#lx, %#lx, %#lx )", ARG1, ARG2, ARG3);
6486 if (ARG3)
6487 PRE_MEM_READ("sigtimedwait(timeout)", ARG3, sizeof(vki_timespec_t));
6602 PRINT("sys_lwp_create ( %#lx, %ld, %#lx )", ARG1, ARG2, ARG3);
6606 if (ARG3 != 0)
6607 PRE_MEM_WRITE("lwp_create(new_lwp)", ARG3, sizeof(vki_id_t));
6671 res = VG_(do_syscall3)(__NR_lwp_create, (UWord)&uc, ARG2, ARG3);
6674 if (ARG3 != 0)
6675 POST_MEM_WRITE(ARG3, sizeof(vki_id_t));
6779 do_lwp_sigqueue("lwp_sigqueue", ARG2, ARG3, status, flags);
6804 SARG1, SARG2, ARG3, SARG4, ARG5);
6855 PRINT("sys_lwp_sigmask ( %ld, %#lx, %#lx, %#lx, %#lx )", SARG1, ARG2, ARG3,
6861 sigset.__sigbits[1] = ARG3;
6878 PRINT("sys_lwp_private ( %ld, %ld, %#lx )", SARG1, SARG2, ARG3);
6903 tst->os_state.thrptr = ARG3;
6906 tst->arch.vex.guest_FS_CONST = ARG3;
6941 PRE_MEM_WRITE("lwp_private(base)", ARG3, sizeof(Addr));
6942 if (!ML_(safe_to_deref((void*)ARG3, sizeof(Addr)))) {
6946 *(Addr*)ARG3 = thrptr;
6947 POST_MEM_WRITE((Addr)ARG3, sizeof(Addr));
6998 PRINT("sys_lwp_cond_wait( %#lx, %#lx, %#lx, %ld )", ARG1, ARG2, ARG3, SARG4);
7009 if (ARG3 != 0)
7010 PRE_MEM_READ("lwp_cond_wait(tsp)", ARG3, sizeof(vki_timespec_t));
7019 if (ARG3 != 0)
7020 POST_MEM_WRITE(ARG3, sizeof(vki_timespec_t));
7048 PRINT("sys_pread ( %ld, %#lx, %lu, %ld )", SARG1, ARG2, ARG3, SARG4);
7051 PRE_MEM_WRITE("pread(buf)", ARG2, ARG3);
7068 PRINT("sys_pwrite ( %ld, %#lx, %lu, %ld )", SARG1, ARG2, ARG3, SARG4);
7071 PRE_MEM_READ("pwrite(buf)", ARG2, ARG3);
7085 PRE_MEM_WRITE("getpagesizes(buf)", ARG2, ARG3 * sizeof(vki_size_t));
7097 void *arg3, void *arg4); */
7181 switch (ARG3 /*source*/) {
7208 PRINT("sys_port ( %ld, %#lx, %#lx, %lu, %lx, %#lx)", SARG1, ARG2, ARG3,
7213 PRE_MEM_WRITE("port(errors)", ARG3, ARG4 * sizeof(int));
7216 PRINT("sys_port ( %ld, %ld, %#lx, %ld, %ld, %#lx )", SARG1, SARG2, ARG3,
7221 PRE_MEM_WRITE("port(uevp)", ARG3, sizeof(vki_port_event_t));
7224 PRINT("sys_port ( %ld, %ld, %#lx, %lu, %lu, %#lx )", SARG1, SARG2, ARG3,
7231 PRE_MEM_WRITE("port(uevp)", ARG3, ARG4 * sizeof(vki_port_event_t));
7277 POST_MEM_WRITE(ARG3, ARG4 * sizeof(int));
7281 POST_MEM_WRITE(ARG3, sizeof(vki_port_event_t));
7284 POST_MEM_WRITE(ARG3, RES * sizeof(vki_port_event_t));
7305 PRINT("sys_pollsys ( %#lx, %lu, %#lx, %#lx )", ARG1, ARG2, ARG3, ARG4);
7317 if (ARG3)
7318 PRE_MEM_READ("poll(timeout)", ARG3, sizeof(vki_timespec_t));
7347 PRINT("sys_labelsys ( %ld, %ld, %#lx )", SARG1, SARG2, ARG3);
7351 PRE_MEM_READ("labelsys(buf)", ARG3, sizeof(vki_tsol_rhent_t));
7356 PRINT("sys_labelsys ( %ld, %ld, %#lx )", SARG1, SARG2, ARG3);
7360 PRE_MEM_READ("labelsys(buf)", ARG3, sizeof(vki_tsol_tpent_t));
7365 PRINT("sys_labelsys ( %ld, %ld, %#lx )", SARG1, SARG2, ARG3);
7368 PRE_MEM_READ("labelsys(buf)", ARG3, sizeof(vki_tsol_mlpent_t));
7374 SARG1, ARG2, (HChar *) ARG2, ARG3);
7378 PRE_MEM_WRITE("labelsys(label)", ARG3, sizeof(vki_bslabel_t));
7383 PRINT("sys_labelsys ( %ld, %ld, %#lx )", SARG1, SARG2, ARG3);
7389 PRE_MEM_WRITE("labelsys(label)", ARG3, sizeof(vki_bslabel_t));
7433 POST_MEM_WRITE(ARG3, sizeof(vki_tsol_rhent_t));
7448 POST_MEM_WRITE(ARG3, sizeof(vki_tsol_tpent_t));
7463 POST_MEM_WRITE(ARG3, sizeof(vki_tsol_mlpent_t));
7473 POST_MEM_WRITE(ARG3, sizeof(vki_bslabel_t));
7504 PRE_MEM_READ("acl(aclbufp)", ARG4, ARG3 * sizeof(vki_aclent_t));
7507 PRE_MEM_WRITE("acl(aclbufp)", ARG4, ARG3 * sizeof(vki_aclent_t));
7513 PRE_MEM_READ("acl(aclbufp)", ARG4, ARG3 * sizeof(vki_ace_t));
7516 PRE_MEM_WRITE("acl(aclbufp)", ARG4, ARG3 * sizeof(vki_ace_t));
7533 POST_MEM_WRITE(ARG4, ARG3 * sizeof(vki_aclent_t));
7540 POST_MEM_WRITE(ARG4, ARG3 * sizeof(vki_ace_t));
7587 PRE_MEM_READ("auditsys(record)", ARG2, ARG3);
7592 SARG1, SARG2, ARG3, SARG4);
7598 PRE_MEM_WRITE("auditsys(policy)", ARG3, sizeof(vki_uint32_t));
7603 PRE_MEM_READ("auditsys(policy)", ARG3, sizeof(vki_uint32_t));
7608 PRE_MEM_WRITE("auditsys(kmask)", ARG3, sizeof(vki_au_mask_t));
7613 PRE_MEM_READ("auditsys(kmask)", ARG3, sizeof(vki_au_mask_t));
7619 PRE_MEM_WRITE("auditsys(qctrl)", ARG3,
7626 PRE_MEM_READ("auditsys(qctrl)", ARG3,
7632 PRE_MEM_WRITE("auditsys(data)", ARG3, ARG4);
7637 PRE_MEM_WRITE("auditsys(data)", ARG3, ARG4);
7642 PRE_MEM_WRITE("auditsys(stats)", ARG3, sizeof(vki_au_stat_t));
7647 PRE_MEM_READ("auditsys(stats)", ARG3, sizeof(vki_au_stat_t));
7652 PRE_MEM_READ("auditsys(umask)", ARG3, sizeof(vki_auditinfo_t));
7657 PRE_MEM_READ("auditsys(smask)", ARG3, sizeof(vki_auditinfo_t));
7662 PRE_MEM_WRITE("auditsys(cond)", ARG3, sizeof(int));
7667 PRE_MEM_READ("auditsys(cond)", ARG3, sizeof(int));
7674 if (ML_(safe_to_deref((void *) ARG3,
7677 (vki_au_evclass_map_t *) ARG3;
7680 PRE_MEM_WRITE("auditsys(classmap)", ARG3,
7689 if (ML_(safe_to_deref((void *) ARG3,
7692 (vki_au_evclass_map_t *) ARG3;
7704 if (ML_(safe_to_deref((void *) ARG3,
7707 (struct vki_auditpinfo *) ARG3;
7709 PRE_MEM_WRITE("auditsys(apinfo)", ARG3,
7717 PRE_MEM_WRITE("auditsys(apinfo)", ARG3,
7725 if (ML_(safe_to_deref((void *) ARG3,
7728 (struct vki_auditpinfo_addr *) ARG3;
7731 PRE_MEM_WRITE("auditsys(apinfo_addr)", ARG3, ARG4);
7738 PRE_MEM_WRITE("auditsys(kaudit)", ARG3, ARG4);
7744 PRE_MEM_READ("auditsys(kaudit)", ARG3, ARG4);
7749 PRE_MEM_WRITE("auditsys(amask)", ARG3, sizeof(vki_au_mask_t));
7754 PRE_MEM_READ("auditsys(amask)", ARG3, sizeof(vki_au_mask_t));
7768 PRE_MEM_WRITE("auditsys(ai)", ARG2, ARG3);
7775 PRE_MEM_READ("auditsys(ai)", ARG2, ARG3);
7811 POST_MEM_WRITE(ARG3, sizeof(vki_uint32_t));
7816 POST_MEM_WRITE(ARG3, sizeof(vki_au_mask_t));
7821 POST_MEM_WRITE(ARG3, sizeof(struct vki_au_qctrl));
7827 POST_MEM_WRITE(ARG3, VG_(strlen)((HChar *) ARG3) + 1);
7830 POST_MEM_WRITE(ARG3, sizeof(vki_au_stat_t));
7837 POST_MEM_WRITE(ARG3, sizeof(int));
7842 POST_MEM_WRITE(ARG3, sizeof(vki_au_evclass_map_t));
7847 POST_MEM_WRITE(ARG3, sizeof(struct vki_auditpinfo));
7852 POST_MEM_WRITE(ARG3, sizeof(struct auditpinfo_addr));
7855 POST_MEM_WRITE(ARG3, sizeof(vki_auditinfo_addr_t));
7860 POST_MEM_WRITE(ARG3, sizeof(vki_au_mask_t));
7889 SARG1, SARG2, ARG3, SARG4, ARG5);
7907 SysRes res = VG_(do_syscall5)(SYSNO, ARG1, ARG2, ARG3, ARG4,
7966 PRINT("sys_timer_create ( %ld, %#lx, %#lx )", SARG1, ARG2, ARG3);
7987 PRE_MEM_WRITE("timer_create(timerid)", ARG3, sizeof(vki_timer_t));
7992 POST_MEM_WRITE(ARG3, sizeof(vki_timer_t));
8009 SARG1, SARG2, ARG3, ARG4);
8014 ARG3, sizeof(struct vki_itimerspec));
8062 PRE_MEM_WRITE("facl(aclbufp)", ARG4, ARG3 * sizeof(vki_aclent_t));
8071 PRE_MEM_WRITE("facl(aclbufp)", ARG4, ARG3 * sizeof(vki_ace_t));
8092 POST_MEM_WRITE(ARG4, ARG3 * sizeof(vki_aclent_t));
8099 POST_MEM_WRITE(ARG4, ARG3 * sizeof(vki_ace_t));
8775 /* int doorfs(long arg1, long arg2, long arg3, long arg4, long arg5,
8780 PRINT("sys_door ( %#lx, %#lx, %#lx, %#lx, %#lx, %ld )", ARG1, ARG2, ARG3,
8792 PRE_REG_READ3(long, "door", long, arg1, long, arg2, long, arg3);
8880 PRE_REG_READ6(long, "door", long, arg1, long, arg2, long, arg3,
8905 if (ARG3) {
8906 vki_door_return_desc_t *desc_env = (vki_door_return_desc_t*)ARG3;
8908 PRE_MEM_READ("door_return(desc_env)", ARG3,
8930 PRE_REG_READ3(long, "door", long, arg1, long, arg2, long, arg3);
8935 PRE_REG_READ3(long, "door", long, arg1, long, arg2, long, arg3);
9152 /* Kernel: int pset(int subcode, long arg1, long arg2, long arg3,
9181 PRINT("sys_pset ( %ld, %ld, %#lx, %#lx, %#lx )", SARG1, SARG2, ARG3,
9186 if (ARG3 != 0)
9187 PRE_MEM_WRITE("pset(type)", ARG3, sizeof(int));
9227 PRINT("sys_pset ( %ld, %ld, %#lx, %ld )", SARG1, SARG2, ARG3, SARG4);
9230 if (ARG3 != 0)
9231 PRE_MEM_WRITE("pset(loadavg)", ARG3, SARG4 * sizeof(double));
9235 PRINT("sys_pset ( %ld, %#lx, %#lx )", SARG1, ARG2, ARG3);
9238 if (ARG3 != 0)
9239 PRE_MEM_WRITE("pset(numpsets)", ARG3, sizeof(vki_uint_t));
9240 if ((ARG2 != 0) && (ARG3 != 0)) {
9241 vki_uint_t *numpsets = (vki_uint_t *) ARG3;
9256 PRINT("sys_pset ( %ld, %ld, %#lx, %ld )", SARG1, SARG2, ARG3, SARG4);
9259 PRE_MEM_WRITE("pset(buf)", ARG3, ARG4);
9264 PRINT("sys_pset ( %ld, %ld, %ld )", SARG1, SARG2, ARG3);
9270 PRINT("sys_pset ( %ld, %ld, %#lx )", SARG1, SARG2, ARG3);
9273 PRE_MEM_WRITE("pset(attr)", ARG3, sizeof(vki_uint_t));
9305 if (ARG3 != 0)
9306 POST_MEM_WRITE(ARG3, sizeof(int));
9323 if (ARG3 != 0)
9324 POST_MEM_WRITE(ARG3, MIN(SARG4, VKI_LOADAVG_NSTATS) * sizeof(double));
9327 if (ARG3 != 0)
9328 POST_MEM_WRITE(ARG3, sizeof(vki_uint_t));
9329 if ((ARG2 != 0) && (ARG3 != 0)) {
9330 vki_uint_t *numpsets = (vki_uint_t *) ARG3;
9336 POST_MEM_WRITE(ARG3, VG_(strlen)((HChar *) ARG3) + 1);
9342 POST_MEM_WRITE(ARG3, sizeof(vki_uint_t));
9358 ARG3);
9363 PRE_MEM_WRITE("resolvepath(buf)", ARG2, ARG3);
9377 PRINT("lwp_mutex_timedlock ( %#lx, %#lx, %#lx )", ARG1, ARG2, ARG3);
9424 PRINT("sys_lwp_rwlock ( %ld, %#lx, %#lx )", SARG1, ARG2, ARG3);
9429 PRINT("sys_lwp_rwlock ( %ld, %#lx, %#lx )", SARG1, ARG2, ARG3);
9472 if ((ARG1 == 0 || ARG1 == 1) && ARG3)
9473 PRE_MEM_READ("lwp_rwlock(tsp)", ARG3, sizeof(vki_timespec_t));
9553 /* Kernel: long zone(int cmd, void *arg1, void *arg2, void *arg3,
9627 PRINT("sys_zone ( %ld, %#lx, %#lx )", SARG1, ARG2, ARG3);
9631 PRE_MEM_WRITE("zone(numzones)", ARG3, sizeof(vki_uint_t));
9633 if (ML_(safe_to_deref((void *) ARG3, sizeof(vki_uint_t)))) {
9636 *(vki_uint_t *) ARG3 * sizeof(vki_zoneid_t));
9699 PRINT("sys_zone ( %ld, %ld, %#lx, %#lx )", SARG1, SARG2, ARG3, ARG4);
9704 PRE_MEM_WRITE("zone(dlnump)", ARG3, sizeof(int));
9705 if (ML_(safe_to_deref((void *) ARG3, sizeof(int)))) {
9708 *(int *) ARG3 * sizeof(vki_datalink_id_t));
9716 PRINT("sys_zone ( %ld, %#lx, %#lx )", SARG1, ARG2, ARG3);
9720 PRE_MEM_WRITE("zone(numzones)", ARG3, sizeof(vki_uint_t));
9722 if (ML_(safe_to_deref((void *) ARG3, sizeof(vki_uint_t)))) {
9725 *(vki_uint_t *) ARG3 * sizeof(vki_uint64_t));
9764 POST_MEM_WRITE(ARG2, *(vki_uint_t *) ARG3 * sizeof(vki_zoneid_t));
9777 POST_MEM_WRITE(ARG4, *(int *) ARG3 * sizeof(vki_datalink_id_t));
9781 POST_MEM_WRITE(ARG2, *(vki_uint_t *) ARG3 * sizeof(vki_uint64_t));
9877 PRINT("sys_bind ( %ld, %#lx, %lu, %ld )", SARG1, ARG2, ARG3, SARG4);
9880 ML_(generic_PRE_sys_bind)(tid, ARG1, ARG2, ARG3);
9896 PRINT("sys_accept ( %ld, %#lx, %#lx, %ld, %ld )", SARG1, ARG2, ARG3, SARG4,
9904 PRINT("sys_accept ( %ld, %#lx, %#lx, %ld )", SARG1, ARG2, ARG3, SARG4);
9908 ML_(generic_PRE_sys_accept)(tid, ARG1, ARG2, ARG3);
9915 ARG1, ARG2, ARG3);
9924 PRINT("sys_connect ( %ld, %#lx, %lu, %ld )", SARG1, ARG2, ARG3, SARG4);
9927 ML_(generic_PRE_sys_connect)(tid, ARG1, ARG2, ARG3);
9948 PRINT("sys_recv ( %ld, %#lx, %lu, %ld )", SARG1, ARG2, ARG3, SARG4);
9951 ML_(generic_PRE_sys_recv)(tid, ARG1, ARG2, ARG3);
9956 ML_(generic_POST_sys_recv)(tid, RES, ARG1, ARG2, ARG3);
9964 PRINT("sys_recvfrom ( %ld, %#lx, %lu, %ld, %#lx, %#lx )", SARG1, ARG2, ARG3,
9968 ML_(generic_PRE_sys_recvfrom)(tid, ARG1, ARG2, ARG3, ARG4, ARG5, ARG6);
9974 ARG1, ARG2, ARG3, ARG4, ARG5, ARG6);
9995 PRINT("sys_send ( %ld, %#lx, %lu, %ld )", SARG1, ARG2, ARG3, SARG4);
9998 ML_(generic_PRE_sys_send)(tid, ARG1, ARG2, ARG3);
10016 PRINT("sys_sendto ( %ld, %#lx, %lu, %ld, %#lx, %ld )", SARG1, ARG2, ARG3,
10020 ML_(generic_PRE_sys_sendto)(tid, ARG1, ARG2, ARG3, ARG4, ARG5, ARG6);
10032 SARG1, ARG2, ARG3, SARG4);
10035 ML_(buf_and_len_pre_check)(tid, ARG2, ARG3, "getpeername(name)",
10046 ARG2, ARG3, "getpeername(namelen)");
10053 PRINT("sys_getsockname ( %ld, %#lx, %#lx, %ld )", SARG1, ARG2, ARG3, SARG4);
10056 ML_(generic_PRE_sys_getsockname)(tid, ARG1, ARG2, ARG3);
10062 ARG1, ARG2, ARG3);
10093 ML_(generic_PRE_sys_setsockopt)(tid, ARG1, ARG2, ARG3, ARG4, ARG5);
10109 PRINT("sys_uucopy ( %#lx, %#lx, %lu )", ARG1, ARG2, ARG3);
10113 if (!ML_(valid_client_addr)(ARG1, ARG3, tid, "uucopy(s1)")) {
10116 if (!ML_(valid_client_addr)(ARG2, ARG3, tid, "uucopy(s2)")) {
10125 PRE_MEM_READ("uucopy(s1)", ARG1, ARG3);
10126 PRE_MEM_WRITE("uucopy(s2)", ARG2, ARG3);
10131 POST_MEM_WRITE(ARG2, ARG3);