• Home
  • Raw
  • Download

Lines Matching refs:tcp

369 print_dirfd(struct tcb *tcp, int fd)  in print_dirfd()  argument
375 printfd(tcp, fd); in print_dirfd()
440 decode_open(struct tcb *tcp, int offset) in decode_open() argument
442 if (entering(tcp)) { in decode_open()
443 printpath(tcp, tcp->u_arg[offset]); in decode_open()
446 tprint_open_modes(tcp->u_arg[offset + 1]); in decode_open()
447 if (tcp->u_arg[offset + 1] & O_CREAT) { in decode_open()
449 tprintf(", %#lo", tcp->u_arg[offset + 2]); in decode_open()
456 sys_open(struct tcb *tcp) in sys_open() argument
458 return decode_open(tcp, 0); in sys_open()
463 sys_openat(struct tcb *tcp) in sys_openat() argument
465 if (entering(tcp)) in sys_openat()
466 print_dirfd(tcp, tcp->u_arg[0]); in sys_openat()
467 return decode_open(tcp, 1); in sys_openat()
491 solaris_open(struct tcb *tcp) in solaris_open() argument
493 if (entering(tcp)) { in solaris_open()
494 printpath(tcp, tcp->u_arg[0]); in solaris_open()
497 printflags(openmodessol, tcp->u_arg[1] + 1, "O_???"); in solaris_open()
498 if (tcp->u_arg[1] & 0x100) { in solaris_open()
500 tprintf(", %#lo", tcp->u_arg[2]); in solaris_open()
509 sys_creat(struct tcb *tcp) in sys_creat() argument
511 if (entering(tcp)) { in sys_creat()
512 printpath(tcp, tcp->u_arg[0]); in sys_creat()
513 tprintf(", %#lo", tcp->u_arg[1]); in sys_creat()
533 decode_access(struct tcb *tcp, int offset) in decode_access() argument
535 if (entering(tcp)) { in decode_access()
536 printpath(tcp, tcp->u_arg[offset]); in decode_access()
538 printflags(access_flags, tcp->u_arg[offset + 1], "?_OK"); in decode_access()
544 sys_access(struct tcb *tcp) in sys_access() argument
546 return decode_access(tcp, 0); in sys_access()
551 sys_faccessat(struct tcb *tcp) in sys_faccessat() argument
553 if (entering(tcp)) in sys_faccessat()
554 print_dirfd(tcp, tcp->u_arg[0]); in sys_faccessat()
555 return decode_access(tcp, 1); in sys_faccessat()
560 sys_umask(struct tcb *tcp) in sys_umask() argument
562 if (entering(tcp)) { in sys_umask()
563 tprintf("%#lo", tcp->u_arg[0]); in sys_umask()
578 sys_lseek(struct tcb *tcp) in sys_lseek() argument
583 if (entering(tcp)) { in sys_lseek()
584 printfd(tcp, tcp->u_arg[0]); in sys_lseek()
586 offset = tcp->ext_arg[1]; in sys_lseek()
587 _whence = tcp->u_arg[2]; in sys_lseek()
598 sys_lseek(struct tcb *tcp) in sys_lseek() argument
603 if (entering(tcp)) { in sys_lseek()
604 printfd(tcp, tcp->u_arg[0]); in sys_lseek()
606 offset = tcp->u_arg[1]; in sys_lseek()
607 _whence = tcp->u_arg[2]; in sys_lseek()
621 sys_llseek(struct tcb *tcp) in sys_llseek() argument
623 if (entering(tcp)) { in sys_llseek()
624 printfd(tcp, tcp->u_arg[0]); in sys_llseek()
630 if (tcp->u_arg[4] == SEEK_SET) in sys_llseek()
632 ((long long int) tcp->u_arg[1]) << 32 | in sys_llseek()
633 (unsigned long long) (unsigned) tcp->u_arg[2]); in sys_llseek()
636 ((long long int) tcp->u_arg[1]) << 32 | in sys_llseek()
637 (unsigned long long) (unsigned) tcp->u_arg[2]); in sys_llseek()
641 if (syserror(tcp) || umove(tcp, tcp->u_arg[3], &off) < 0) in sys_llseek()
642 tprintf("%#lx, ", tcp->u_arg[3]); in sys_llseek()
645 printxval(whence, tcp->u_arg[4], "SEEK_???"); in sys_llseek()
651 sys_readahead(struct tcb *tcp) in sys_readahead() argument
653 if (entering(tcp)) { in sys_readahead()
655 printfd(tcp, tcp->u_arg[0]); in sys_readahead()
657 argn = printllval(tcp, "%lld", 1); in sys_readahead()
658 tprintf(", %ld", tcp->u_arg[argn]); in sys_readahead()
666 sys_lseek64(struct tcb *tcp) in sys_lseek64() argument
668 if (entering(tcp)) { in sys_lseek64()
670 printfd(tcp, tcp->u_arg[0]); in sys_lseek64()
672 if (tcp->u_arg[3] == SEEK_SET) in sys_lseek64()
673 argn = printllval(tcp, "%llu, ", 1); in sys_lseek64()
675 argn = printllval(tcp, "%lld, ", 1); in sys_lseek64()
676 printxval(whence, tcp->u_arg[argn], "SEEK_???"); in sys_lseek64()
684 sys_truncate(struct tcb *tcp) in sys_truncate() argument
686 if (entering(tcp)) { in sys_truncate()
687 printpath(tcp, tcp->u_arg[0]); in sys_truncate()
688 tprintf(", %lu", tcp->u_arg[1]); in sys_truncate()
696 sys_truncate64(struct tcb *tcp) in sys_truncate64() argument
698 if (entering(tcp)) { in sys_truncate64()
699 printpath(tcp, tcp->u_arg[0]); in sys_truncate64()
700 printllval(tcp, ", %llu", 1); in sys_truncate64()
708 sys_ftruncate(struct tcb *tcp) in sys_ftruncate() argument
710 if (entering(tcp)) { in sys_ftruncate()
711 printfd(tcp, tcp->u_arg[0]); in sys_ftruncate()
712 tprintf(", %lu", tcp->u_arg[1]); in sys_ftruncate()
720 sys_ftruncate64(struct tcb *tcp) in sys_ftruncate64() argument
722 if (entering(tcp)) { in sys_ftruncate64()
723 printfd(tcp, tcp->u_arg[0]); in sys_ftruncate64()
725 printllval(tcp, "%llu", 1); in sys_ftruncate64()
815 printstatsol(struct tcb *tcp, long addr) in printstatsol() argument
819 if (umove(tcp, addr, &statbuf) < 0) { in printstatsol()
823 if (!abbrev(tcp)) { in printstatsol()
848 if (!abbrev(tcp)) { in printstatsol()
859 printstat_sparc64(struct tcb *tcp, long addr) in printstat_sparc64() argument
863 if (umove(tcp, addr, &statbuf) < 0) { in printstat_sparc64()
868 if (!abbrev(tcp)) { in printstat_sparc64()
895 if (!abbrev(tcp)) { in printstat_sparc64()
930 printstat_powerpc32(struct tcb *tcp, long addr) in printstat_powerpc32() argument
934 if (umove(tcp, addr, &statbuf) < 0) { in printstat_powerpc32()
939 if (!abbrev(tcp)) { in printstat_powerpc32()
961 if (!abbrev(tcp)) { in printstat_powerpc32()
996 sys_chflags(struct tcb *tcp) in sys_chflags() argument
998 if (entering(tcp)) { in sys_chflags()
999 printpath(tcp, tcp->u_arg[0]); in sys_chflags()
1001 printflags(fileflags, tcp->u_arg[1], "UF_???"); in sys_chflags()
1007 sys_fchflags(struct tcb *tcp) in sys_fchflags() argument
1009 if (entering(tcp)) { in sys_fchflags()
1010 tprintf("%ld, ", tcp->u_arg[0]); in sys_fchflags()
1011 printflags(fileflags, tcp->u_arg[1], "UF_???"); in sys_fchflags()
1019 realprintstat(struct tcb *tcp, struct stat *statbuf) in realprintstat() argument
1021 if (!abbrev(tcp)) { in realprintstat()
1056 if (!abbrev(tcp)) { in realprintstat()
1085 printstat(struct tcb *tcp, long addr) in printstat() argument
1093 if (syserror(tcp) || !verbose(tcp)) { in printstat()
1100 printstatsol(tcp, addr); in printstat()
1105 printstat_sparc64(tcp, addr); in printstat()
1113 printstat_powerpc32(tcp, addr); in printstat()
1118 if (umove(tcp, addr, &statbuf) < 0) { in printstat()
1123 realprintstat(tcp, &statbuf); in printstat()
1161 printstat64(struct tcb *tcp, long addr) in printstat64() argument
1173 if (syserror(tcp) || !verbose(tcp)) { in printstat64()
1180 printstatsol(tcp, addr); in printstat64()
1185 printstat_sparc64(tcp, addr); in printstat64()
1193 printstat(tcp, addr); in printstat64()
1198 if (umove(tcp, addr, &statbuf) < 0) { in printstat64()
1203 if (!abbrev(tcp)) { in printstat64()
1251 if (!abbrev(tcp)) { in printstat64()
1300 printoldstat(struct tcb *tcp, long addr) in printoldstat() argument
1309 if (syserror(tcp) || !verbose(tcp)) { in printoldstat()
1316 printstatsol(tcp, addr); in printoldstat()
1321 if (umove(tcp, addr, &statbuf) < 0) { in printoldstat()
1327 realprintstat(tcp, &newstatbuf); in printoldstat()
1333 sys_stat(struct tcb *tcp) in sys_stat() argument
1335 if (entering(tcp)) { in sys_stat()
1336 printpath(tcp, tcp->u_arg[0]); in sys_stat()
1339 printstat(tcp, tcp->u_arg[1]); in sys_stat()
1346 sys_stat64(struct tcb *tcp) in sys_stat64() argument
1349 if (entering(tcp)) { in sys_stat64()
1350 printpath(tcp, tcp->u_arg[0]); in sys_stat64()
1353 printstat64(tcp, tcp->u_arg[1]); in sys_stat64()
1357 return printargs(tcp); in sys_stat64()
1372 sys_newfstatat(struct tcb *tcp) in sys_newfstatat() argument
1374 if (entering(tcp)) { in sys_newfstatat()
1375 print_dirfd(tcp, tcp->u_arg[0]); in sys_newfstatat()
1376 printpath(tcp, tcp->u_arg[1]); in sys_newfstatat()
1381 printstat(tcp, tcp->u_arg[2]); in sys_newfstatat()
1383 printstat64(tcp, tcp->u_arg[2]); in sys_newfstatat()
1385 printstat64(tcp, tcp->u_arg[2]); in sys_newfstatat()
1387 printstat(tcp, tcp->u_arg[2]); in sys_newfstatat()
1390 printflags(fstatatflags, tcp->u_arg[3], "AT_???"); in sys_newfstatat()
1398 sys_oldstat(struct tcb *tcp) in sys_oldstat() argument
1400 if (entering(tcp)) { in sys_oldstat()
1401 printpath(tcp, tcp->u_arg[0]); in sys_oldstat()
1404 printoldstat(tcp, tcp->u_arg[1]); in sys_oldstat()
1412 sys_fstat(struct tcb *tcp) in sys_fstat() argument
1414 if (entering(tcp)) { in sys_fstat()
1415 printfd(tcp, tcp->u_arg[0]); in sys_fstat()
1418 printstat(tcp, tcp->u_arg[1]); in sys_fstat()
1425 sys_fstat64(struct tcb *tcp) in sys_fstat64() argument
1428 if (entering(tcp)) { in sys_fstat64()
1429 printfd(tcp, tcp->u_arg[0]); in sys_fstat64()
1432 printstat64(tcp, tcp->u_arg[1]); in sys_fstat64()
1436 return printargs(tcp); in sys_fstat64()
1442 sys_oldfstat(struct tcb *tcp) in sys_oldfstat() argument
1444 if (entering(tcp)) { in sys_oldfstat()
1445 printfd(tcp, tcp->u_arg[0]); in sys_oldfstat()
1448 printoldstat(tcp, tcp->u_arg[1]); in sys_oldfstat()
1456 sys_lstat(struct tcb *tcp) in sys_lstat() argument
1458 if (entering(tcp)) { in sys_lstat()
1459 printpath(tcp, tcp->u_arg[0]); in sys_lstat()
1462 printstat(tcp, tcp->u_arg[1]); in sys_lstat()
1469 sys_lstat64(struct tcb *tcp) in sys_lstat64() argument
1472 if (entering(tcp)) { in sys_lstat64()
1473 printpath(tcp, tcp->u_arg[0]); in sys_lstat64()
1476 printstat64(tcp, tcp->u_arg[1]); in sys_lstat64()
1480 return printargs(tcp); in sys_lstat64()
1486 sys_oldlstat(struct tcb *tcp) in sys_oldlstat() argument
1488 if (entering(tcp)) { in sys_oldlstat()
1489 printpath(tcp, tcp->u_arg[0]); in sys_oldlstat()
1492 printoldstat(tcp, tcp->u_arg[1]); in sys_oldlstat()
1502 sys_xstat(struct tcb *tcp) in sys_xstat() argument
1504 if (entering(tcp)) { in sys_xstat()
1505 tprintf("%ld, ", tcp->u_arg[0]); in sys_xstat()
1506 printpath(tcp, tcp->u_arg[1]); in sys_xstat()
1510 if (tcp->u_arg[0] == _STAT64_VER) in sys_xstat()
1511 printstat64 (tcp, tcp->u_arg[2]); in sys_xstat()
1514 printstat(tcp, tcp->u_arg[2]); in sys_xstat()
1520 sys_fxstat(struct tcb *tcp) in sys_fxstat() argument
1522 if (entering(tcp)) in sys_fxstat()
1523 tprintf("%ld, %ld, ", tcp->u_arg[0], tcp->u_arg[1]); in sys_fxstat()
1526 if (tcp->u_arg[0] == _STAT64_VER) in sys_fxstat()
1527 printstat64 (tcp, tcp->u_arg[2]); in sys_fxstat()
1530 printstat(tcp, tcp->u_arg[2]); in sys_fxstat()
1536 sys_lxstat(struct tcb *tcp) in sys_lxstat() argument
1538 if (entering(tcp)) { in sys_lxstat()
1539 tprintf("%ld, ", tcp->u_arg[0]); in sys_lxstat()
1540 printpath(tcp, tcp->u_arg[1]); in sys_lxstat()
1544 if (tcp->u_arg[0] == _STAT64_VER) in sys_lxstat()
1545 printstat64 (tcp, tcp->u_arg[2]); in sys_lxstat()
1548 printstat(tcp, tcp->u_arg[2]); in sys_lxstat()
1554 sys_xmknod(struct tcb *tcp) in sys_xmknod() argument
1556 int mode = tcp->u_arg[2]; in sys_xmknod()
1558 if (entering(tcp)) { in sys_xmknod()
1559 tprintf("%ld, ", tcp->u_arg[0]); in sys_xmknod()
1560 printpath(tcp, tcp->u_arg[1]); in sys_xmknod()
1566 (unsigned long) ((tcp->u_arg[3] >> 18) & 0x3fff), in sys_xmknod()
1567 (unsigned long) (tcp->u_arg[3] & 0x3ffff)); in sys_xmknod()
1570 (unsigned long) major(tcp->u_arg[3]), in sys_xmknod()
1571 (unsigned long) minor(tcp->u_arg[3])); in sys_xmknod()
1608 sys_acl(struct tcb *tcp) in sys_acl() argument
1610 if (entering(tcp)) { in sys_acl()
1611 printpath(tcp, tcp->u_arg[0]); in sys_acl()
1613 printxval(aclcmds, tcp->u_arg[1], "???ACL???"); in sys_acl()
1614 tprintf(", %ld", tcp->u_arg[2]); in sys_acl()
1619 if (tcp->u_arg[3]) in sys_acl()
1620 tprintf(", %#lx", tcp->u_arg[3]); in sys_acl()
1629 sys_facl(struct tcb *tcp) in sys_facl() argument
1631 if (entering(tcp)) { in sys_facl()
1632 tprintf("%ld, ", tcp->u_arg[0]); in sys_facl()
1633 printxval(aclcmds, tcp->u_arg[1], "???ACL???"); in sys_facl()
1634 tprintf(", %ld", tcp->u_arg[2]); in sys_facl()
1639 if (tcp->u_arg[3]) in sys_facl()
1640 tprintf(", %#lx", tcp->u_arg[3]); in sys_facl()
1663 sys_aclipc(struct tcb *tcp) in sys_aclipc() argument
1665 if (entering(tcp)) { in sys_aclipc()
1666 printxval(aclipc, tcp->u_arg[0], "???IPC???"); in sys_aclipc()
1667 tprintf(", %#lx, ", tcp->u_arg[1]); in sys_aclipc()
1668 printxval(aclcmds, tcp->u_arg[2], "???ACL???"); in sys_aclipc()
1669 tprintf(", %ld", tcp->u_arg[3]); in sys_aclipc()
1674 if (tcp->u_arg[4]) in sys_aclipc()
1675 tprintf(", %#lx", tcp->u_arg[4]); in sys_aclipc()
1743 printstatfs(struct tcb *tcp, long addr) in printstatfs() argument
1747 if (syserror(tcp) || !verbose(tcp)) { in printstatfs()
1751 if (umove(tcp, addr, &statbuf) < 0) { in printstatfs()
1786 sys_statfs(struct tcb *tcp) in sys_statfs() argument
1788 if (entering(tcp)) { in sys_statfs()
1789 printpath(tcp, tcp->u_arg[0]); in sys_statfs()
1792 printstatfs(tcp, tcp->u_arg[1]); in sys_statfs()
1798 sys_fstatfs(struct tcb *tcp) in sys_fstatfs() argument
1800 if (entering(tcp)) { in sys_fstatfs()
1801 printfd(tcp, tcp->u_arg[0]); in sys_fstatfs()
1804 printstatfs(tcp, tcp->u_arg[1]); in sys_fstatfs()
1811 printstatfs64(struct tcb *tcp, long addr) in printstatfs64() argument
1815 if (syserror(tcp) || !verbose(tcp)) { in printstatfs64()
1819 if (umove(tcp, addr, &statbuf) < 0) { in printstatfs64()
1841 sys_statfs64(struct tcb *tcp) in sys_statfs64() argument
1843 if (entering(tcp)) { in sys_statfs64()
1844 printpath(tcp, tcp->u_arg[0]); in sys_statfs64()
1845 tprintf(", %lu, ", tcp->u_arg[1]); in sys_statfs64()
1847 if (tcp->u_arg[1] == sizeof (struct statfs64)) in sys_statfs64()
1848 printstatfs64(tcp, tcp->u_arg[2]); in sys_statfs64()
1856 sys_fstatfs64(struct tcb *tcp) in sys_fstatfs64() argument
1858 if (entering(tcp)) { in sys_fstatfs64()
1859 printfd(tcp, tcp->u_arg[0]); in sys_fstatfs64()
1860 tprintf(", %lu, ", tcp->u_arg[1]); in sys_fstatfs64()
1862 if (tcp->u_arg[1] == sizeof (struct statfs64)) in sys_fstatfs64()
1863 printstatfs64(tcp, tcp->u_arg[2]); in sys_fstatfs64()
1874 osf_statfs(struct tcb *tcp) in osf_statfs() argument
1876 if (entering(tcp)) { in osf_statfs()
1877 printpath(tcp, tcp->u_arg[0]); in osf_statfs()
1880 printstatfs(tcp, tcp->u_arg[1]); in osf_statfs()
1881 tprintf(", %lu", tcp->u_arg[2]); in osf_statfs()
1887 osf_fstatfs(struct tcb *tcp) in osf_fstatfs() argument
1889 if (entering(tcp)) { in osf_fstatfs()
1890 tprintf("%lu, ", tcp->u_arg[0]); in osf_fstatfs()
1892 printstatfs(tcp, tcp->u_arg[1]); in osf_fstatfs()
1893 tprintf(", %lu", tcp->u_arg[2]); in osf_fstatfs()
1903 sys_ustat(struct tcb *tcp) in sys_ustat() argument
1907 if (entering(tcp)) { in sys_ustat()
1909 (long) major(tcp->u_arg[0]), in sys_ustat()
1910 (long) minor(tcp->u_arg[0])); in sys_ustat()
1913 if (syserror(tcp) || !verbose(tcp)) in sys_ustat()
1914 tprintf("%#lx", tcp->u_arg[1]); in sys_ustat()
1915 else if (umove(tcp, tcp->u_arg[1], &statbuf) < 0) in sys_ustat()
1933 sys_pivotroot(struct tcb *tcp) in sys_pivotroot() argument
1935 if (entering(tcp)) { in sys_pivotroot()
1936 printpath(tcp, tcp->u_arg[0]); in sys_pivotroot()
1938 printpath(tcp, tcp->u_arg[1]); in sys_pivotroot()
1946 sys_chdir(struct tcb *tcp) in sys_chdir() argument
1948 if (entering(tcp)) { in sys_chdir()
1949 printpath(tcp, tcp->u_arg[0]); in sys_chdir()
1955 decode_mkdir(struct tcb *tcp, int offset) in decode_mkdir() argument
1957 if (entering(tcp)) { in decode_mkdir()
1958 printpath(tcp, tcp->u_arg[offset]); in decode_mkdir()
1959 tprintf(", %#lo", tcp->u_arg[offset + 1]); in decode_mkdir()
1965 sys_mkdir(struct tcb *tcp) in sys_mkdir() argument
1967 return decode_mkdir(tcp, 0); in sys_mkdir()
1972 sys_mkdirat(struct tcb *tcp) in sys_mkdirat() argument
1974 if (entering(tcp)) in sys_mkdirat()
1975 print_dirfd(tcp, tcp->u_arg[0]); in sys_mkdirat()
1976 return decode_mkdir(tcp, 1); in sys_mkdirat()
1981 sys_rmdir(struct tcb *tcp) in sys_rmdir() argument
1983 if (entering(tcp)) { in sys_rmdir()
1984 printpath(tcp, tcp->u_arg[0]); in sys_rmdir()
1990 sys_fchdir(struct tcb *tcp) in sys_fchdir() argument
1992 if (entering(tcp)) { in sys_fchdir()
1993 printfd(tcp, tcp->u_arg[0]); in sys_fchdir()
1999 sys_chroot(struct tcb *tcp) in sys_chroot() argument
2001 if (entering(tcp)) { in sys_chroot()
2002 printpath(tcp, tcp->u_arg[0]); in sys_chroot()
2009 sys_fchroot(struct tcb *tcp) in sys_fchroot() argument
2011 if (entering(tcp)) { in sys_fchroot()
2012 printfd(tcp, tcp->u_arg[0]); in sys_fchroot()
2019 sys_link(struct tcb *tcp) in sys_link() argument
2021 if (entering(tcp)) { in sys_link()
2022 printpath(tcp, tcp->u_arg[0]); in sys_link()
2024 printpath(tcp, tcp->u_arg[1]); in sys_link()
2031 sys_linkat(struct tcb *tcp) in sys_linkat() argument
2033 if (entering(tcp)) { in sys_linkat()
2034 print_dirfd(tcp, tcp->u_arg[0]); in sys_linkat()
2035 printpath(tcp, tcp->u_arg[1]); in sys_linkat()
2037 print_dirfd(tcp, tcp->u_arg[2]); in sys_linkat()
2038 printpath(tcp, tcp->u_arg[3]); in sys_linkat()
2040 printfd(tcp, tcp->u_arg[4]); in sys_linkat()
2047 sys_unlink(struct tcb *tcp) in sys_unlink() argument
2049 if (entering(tcp)) { in sys_unlink()
2050 printpath(tcp, tcp->u_arg[0]); in sys_unlink()
2065 sys_unlinkat(struct tcb *tcp) in sys_unlinkat() argument
2067 if (entering(tcp)) { in sys_unlinkat()
2068 print_dirfd(tcp, tcp->u_arg[0]); in sys_unlinkat()
2069 printpath(tcp, tcp->u_arg[1]); in sys_unlinkat()
2071 printflags(unlinkatflags, tcp->u_arg[2], "AT_???"); in sys_unlinkat()
2078 sys_symlink(struct tcb *tcp) in sys_symlink() argument
2080 if (entering(tcp)) { in sys_symlink()
2081 printpath(tcp, tcp->u_arg[0]); in sys_symlink()
2083 printpath(tcp, tcp->u_arg[1]); in sys_symlink()
2090 sys_symlinkat(struct tcb *tcp) in sys_symlinkat() argument
2092 if (entering(tcp)) { in sys_symlinkat()
2093 printpath(tcp, tcp->u_arg[0]); in sys_symlinkat()
2095 print_dirfd(tcp, tcp->u_arg[1]); in sys_symlinkat()
2096 printpath(tcp, tcp->u_arg[2]); in sys_symlinkat()
2103 decode_readlink(struct tcb *tcp, int offset) in decode_readlink() argument
2105 if (entering(tcp)) { in decode_readlink()
2106 printpath(tcp, tcp->u_arg[offset]); in decode_readlink()
2109 if (syserror(tcp)) in decode_readlink()
2110 tprintf("%#lx", tcp->u_arg[offset + 1]); in decode_readlink()
2112 printpathn(tcp, tcp->u_arg[offset + 1], tcp->u_rval); in decode_readlink()
2113 tprintf(", %lu", tcp->u_arg[offset + 2]); in decode_readlink()
2119 sys_readlink(struct tcb *tcp) in sys_readlink() argument
2121 return decode_readlink(tcp, 0); in sys_readlink()
2126 sys_readlinkat(struct tcb *tcp) in sys_readlinkat() argument
2128 if (entering(tcp)) in sys_readlinkat()
2129 print_dirfd(tcp, tcp->u_arg[0]); in sys_readlinkat()
2130 return decode_readlink(tcp, 1); in sys_readlinkat()
2135 sys_rename(struct tcb *tcp) in sys_rename() argument
2137 if (entering(tcp)) { in sys_rename()
2138 printpath(tcp, tcp->u_arg[0]); in sys_rename()
2140 printpath(tcp, tcp->u_arg[1]); in sys_rename()
2147 sys_renameat(struct tcb *tcp) in sys_renameat() argument
2149 if (entering(tcp)) { in sys_renameat()
2150 print_dirfd(tcp, tcp->u_arg[0]); in sys_renameat()
2151 printpath(tcp, tcp->u_arg[1]); in sys_renameat()
2153 print_dirfd(tcp, tcp->u_arg[2]); in sys_renameat()
2154 printpath(tcp, tcp->u_arg[3]); in sys_renameat()
2161 sys_chown(struct tcb *tcp) in sys_chown() argument
2163 if (entering(tcp)) { in sys_chown()
2164 printpath(tcp, tcp->u_arg[0]); in sys_chown()
2165 printuid(", ", tcp->u_arg[1]); in sys_chown()
2166 printuid(", ", tcp->u_arg[2]); in sys_chown()
2173 sys_fchownat(struct tcb *tcp) in sys_fchownat() argument
2175 if (entering(tcp)) { in sys_fchownat()
2176 print_dirfd(tcp, tcp->u_arg[0]); in sys_fchownat()
2177 printpath(tcp, tcp->u_arg[1]); in sys_fchownat()
2178 printuid(", ", tcp->u_arg[2]); in sys_fchownat()
2179 printuid(", ", tcp->u_arg[3]); in sys_fchownat()
2181 printflags(fstatatflags, tcp->u_arg[4], "AT_???"); in sys_fchownat()
2188 sys_fchown(struct tcb *tcp) in sys_fchown() argument
2190 if (entering(tcp)) { in sys_fchown()
2191 printfd(tcp, tcp->u_arg[0]); in sys_fchown()
2192 printuid(", ", tcp->u_arg[1]); in sys_fchown()
2193 printuid(", ", tcp->u_arg[2]); in sys_fchown()
2199 decode_chmod(struct tcb *tcp, int offset) in decode_chmod() argument
2201 if (entering(tcp)) { in decode_chmod()
2202 printpath(tcp, tcp->u_arg[offset]); in decode_chmod()
2203 tprintf(", %#lo", tcp->u_arg[offset + 1]); in decode_chmod()
2209 sys_chmod(struct tcb *tcp) in sys_chmod() argument
2211 return decode_chmod(tcp, 0); in sys_chmod()
2216 sys_fchmodat(struct tcb *tcp) in sys_fchmodat() argument
2218 if (entering(tcp)) in sys_fchmodat()
2219 print_dirfd(tcp, tcp->u_arg[0]); in sys_fchmodat()
2220 return decode_chmod(tcp, 1); in sys_fchmodat()
2225 sys_fchmod(struct tcb *tcp) in sys_fchmod() argument
2227 if (entering(tcp)) { in sys_fchmod()
2228 printfd(tcp, tcp->u_arg[0]); in sys_fchmod()
2229 tprintf(", %#lo", tcp->u_arg[1]); in sys_fchmod()
2236 sys_osf_utimes(struct tcb *tcp) in sys_osf_utimes() argument
2238 if (entering(tcp)) { in sys_osf_utimes()
2239 printpath(tcp, tcp->u_arg[0]); in sys_osf_utimes()
2241 printtv_bitness(tcp, tcp->u_arg[1], BITNESS_32, 0); in sys_osf_utimes()
2248 decode_utimes(struct tcb *tcp, int offset, int special) in decode_utimes() argument
2250 if (entering(tcp)) { in decode_utimes()
2251 printpath(tcp, tcp->u_arg[offset]); in decode_utimes()
2253 if (tcp->u_arg[offset + 1] == 0) in decode_utimes()
2257 printtv_bitness(tcp, tcp->u_arg[offset + 1], in decode_utimes()
2260 printtv_bitness(tcp, tcp->u_arg[offset + 1] in decode_utimes()
2270 sys_utimes(struct tcb *tcp) in sys_utimes() argument
2272 return decode_utimes(tcp, 0, 0); in sys_utimes()
2277 sys_futimesat(struct tcb *tcp) in sys_futimesat() argument
2279 if (entering(tcp)) in sys_futimesat()
2280 print_dirfd(tcp, tcp->u_arg[0]); in sys_futimesat()
2281 return decode_utimes(tcp, 1, 0); in sys_futimesat()
2285 sys_utimensat(struct tcb *tcp) in sys_utimensat() argument
2287 if (entering(tcp)) { in sys_utimensat()
2288 print_dirfd(tcp, tcp->u_arg[0]); in sys_utimensat()
2289 decode_utimes(tcp, 1, 1); in sys_utimensat()
2291 printflags(utimensatflags, tcp->u_arg[3], "AT_???"); in sys_utimensat()
2298 sys_utime(struct tcb *tcp) in sys_utime() argument
2305 if (entering(tcp)) { in sys_utime()
2306 printpath(tcp, tcp->u_arg[0]); in sys_utime()
2308 if (!tcp->u_arg[1]) in sys_utime()
2310 else if (!verbose(tcp)) in sys_utime()
2311 tprintf("%#lx", tcp->u_arg[1]); in sys_utime()
2312 else if (umoven(tcp, tcp->u_arg[1], in sys_utime()
2333 decode_mknod(struct tcb *tcp, int offset) in decode_mknod() argument
2335 int mode = tcp->u_arg[offset + 1]; in decode_mknod()
2337 if (entering(tcp)) { in decode_mknod()
2338 printpath(tcp, tcp->u_arg[offset]); in decode_mknod()
2345 (unsigned long) ((tcp->u_arg[offset + 2] >> 18) & 0x3fff), in decode_mknod()
2346 (unsigned long) (tcp->u_arg[offset + 2] & 0x3ffff)); in decode_mknod()
2350 (unsigned long) major(tcp->u_arg[offset + 2]), in decode_mknod()
2351 (unsigned long) minor(tcp->u_arg[offset + 2])); in decode_mknod()
2361 sys_mknod(struct tcb *tcp) in sys_mknod() argument
2363 return decode_mknod(tcp, 0); in sys_mknod()
2368 sys_mknodat(struct tcb *tcp) in sys_mknodat() argument
2370 if (entering(tcp)) in sys_mknodat()
2371 print_dirfd(tcp, tcp->u_arg[0]); in sys_mknodat()
2372 return decode_mknod(tcp, 1); in sys_mknodat()
2378 sys_mkfifo(struct tcb *tcp) in sys_mkfifo() argument
2380 if (entering(tcp)) { in sys_mkfifo()
2381 printpath(tcp, tcp->u_arg[0]); in sys_mkfifo()
2382 tprintf(", %#lo", tcp->u_arg[1]); in sys_mkfifo()
2389 sys_fsync(struct tcb *tcp) in sys_fsync() argument
2391 if (entering(tcp)) { in sys_fsync()
2392 printfd(tcp, tcp->u_arg[0]); in sys_fsync()
2400 printdir(struct tcb *tcp, long addr) in printdir() argument
2404 if (!verbose(tcp)) { in printdir()
2408 if (umove(tcp, addr, &d) < 0) { in printdir()
2414 printpathn(tcp, (long) ((struct dirent *) addr)->d_name, d.d_reclen); in printdir()
2419 sys_readdir(struct tcb *tcp) in sys_readdir() argument
2421 if (entering(tcp)) { in sys_readdir()
2422 printfd(tcp, tcp->u_arg[0]); in sys_readdir()
2425 if (syserror(tcp) || tcp->u_rval == 0 || !verbose(tcp)) in sys_readdir()
2426 tprintf("%#lx", tcp->u_arg[1]); in sys_readdir()
2428 printdir(tcp, tcp->u_arg[1]); in sys_readdir()
2430 if (tcp->u_arg[2] != 1) in sys_readdir()
2431 tprintf(", %lu", tcp->u_arg[2]); in sys_readdir()
2455 sys_getdents(struct tcb *tcp) in sys_getdents() argument
2460 if (entering(tcp)) { in sys_getdents()
2461 printfd(tcp, tcp->u_arg[0]); in sys_getdents()
2465 if (syserror(tcp) || !verbose(tcp)) { in sys_getdents()
2466 tprintf("%#lx, %lu", tcp->u_arg[1], tcp->u_arg[2]); in sys_getdents()
2469 len = tcp->u_rval; in sys_getdents()
2472 tprintf("%#lx, %lu", tcp->u_arg[1], tcp->u_arg[2]); in sys_getdents()
2476 if (umoven(tcp, tcp->u_arg[1], len, buf) < 0) { in sys_getdents()
2477 tprintf("%#lx, %lu", tcp->u_arg[1], tcp->u_arg[2]); in sys_getdents()
2481 if (!abbrev(tcp)) in sys_getdents()
2486 if (!abbrev(tcp)) { in sys_getdents()
2494 if (!abbrev(tcp)) { in sys_getdents()
2504 if (!abbrev(tcp)) { in sys_getdents()
2513 if (!abbrev(tcp)) { in sys_getdents()
2528 if (!abbrev(tcp)) in sys_getdents()
2532 tprintf(", %lu", tcp->u_arg[2]); in sys_getdents()
2540 sys_getdents64(struct tcb *tcp) in sys_getdents64() argument
2545 if (entering(tcp)) { in sys_getdents64()
2546 printfd(tcp, tcp->u_arg[0]); in sys_getdents64()
2550 if (syserror(tcp) || !verbose(tcp)) { in sys_getdents64()
2551 tprintf("%#lx, %lu", tcp->u_arg[1], tcp->u_arg[2]); in sys_getdents64()
2554 len = tcp->u_rval; in sys_getdents64()
2557 tprintf("%#lx, %lu", tcp->u_arg[1], tcp->u_arg[2]); in sys_getdents64()
2561 if (umoven(tcp, tcp->u_arg[1], len, buf) < 0) { in sys_getdents64()
2562 tprintf("%#lx, %lu", tcp->u_arg[1], tcp->u_arg[2]); in sys_getdents64()
2566 if (!abbrev(tcp)) in sys_getdents64()
2571 if (!abbrev(tcp)) { in sys_getdents64()
2586 if (!abbrev(tcp)) { in sys_getdents64()
2601 if (!abbrev(tcp)) in sys_getdents64()
2605 tprintf(", %lu", tcp->u_arg[2]); in sys_getdents64()
2613 sys_getdirentries(struct tcb *tcp) in sys_getdirentries() argument
2619 if (entering(tcp)) { in sys_getdirentries()
2620 printfd(tcp, tcp->u_arg[0]); in sys_getdirentries()
2624 if (syserror(tcp) || !verbose(tcp)) { in sys_getdirentries()
2625 tprintf("%#lx, %lu, %#lx", tcp->u_arg[1], tcp->u_arg[2], tcp->u_arg[3]); in sys_getdirentries()
2628 len = tcp->u_rval; in sys_getdirentries()
2630 tprintf("%#lx, %lu, %#lx", tcp->u_arg[1], tcp->u_arg[2], tcp->u_arg[3]); in sys_getdirentries()
2634 if (umoven(tcp, tcp->u_arg[1], len, buf) < 0) { in sys_getdirentries()
2635 tprintf("%#lx, %lu, %#lx", tcp->u_arg[1], tcp->u_arg[2], tcp->u_arg[3]); in sys_getdirentries()
2639 if (!abbrev(tcp)) in sys_getdirentries()
2643 if (!abbrev(tcp)) { in sys_getdirentries()
2657 if (!abbrev(tcp)) in sys_getdirentries()
2662 tprintf(", %lu", tcp->u_arg[2]); in sys_getdirentries()
2663 if (umove(tcp, tcp->u_arg[3], &basep) < 0) in sys_getdirentries()
2664 tprintf(", %#lx", tcp->u_arg[3]); in sys_getdirentries()
2673 sys_getcwd(struct tcb *tcp) in sys_getcwd() argument
2675 if (exiting(tcp)) { in sys_getcwd()
2676 if (syserror(tcp)) in sys_getcwd()
2677 tprintf("%#lx", tcp->u_arg[0]); in sys_getcwd()
2679 printpathn(tcp, tcp->u_arg[0], tcp->u_rval - 1); in sys_getcwd()
2680 tprintf(", %lu", tcp->u_arg[1]); in sys_getcwd()
2688 sys___getcwd(struct tcb *tcp) in sys___getcwd() argument
2690 if (exiting(tcp)) { in sys___getcwd()
2691 if (syserror(tcp)) in sys___getcwd()
2692 tprintf("%#lx", tcp->u_arg[0]); in sys___getcwd()
2694 printpathn(tcp, tcp->u_arg[0], tcp->u_arg[1]); in sys___getcwd()
2695 tprintf(", %lu", tcp->u_arg[1]); in sys___getcwd()
2704 sys_aioread(struct tcb *tcp) in sys_aioread() argument
2708 if (entering(tcp)) { in sys_aioread()
2709 tprintf("%lu, ", tcp->u_arg[0]); in sys_aioread()
2711 if (syserror(tcp)) in sys_aioread()
2712 tprintf("%#lx", tcp->u_arg[1]); in sys_aioread()
2714 printstr(tcp, tcp->u_arg[1], tcp->u_arg[2]); in sys_aioread()
2715 tprintf(", %lu, %lu, ", tcp->u_arg[2], tcp->u_arg[3]); in sys_aioread()
2716 printxval(whence, tcp->u_arg[4], "L_???"); in sys_aioread()
2717 if (syserror(tcp) || tcp->u_arg[5] == 0 in sys_aioread()
2718 || umove(tcp, tcp->u_arg[5], &res) < 0) in sys_aioread()
2719 tprintf(", %#lx", tcp->u_arg[5]); in sys_aioread()
2728 sys_aiowrite(struct tcb *tcp) in sys_aiowrite() argument
2732 if (entering(tcp)) { in sys_aiowrite()
2733 tprintf("%lu, ", tcp->u_arg[0]); in sys_aiowrite()
2734 printstr(tcp, tcp->u_arg[1], tcp->u_arg[2]); in sys_aiowrite()
2735 tprintf(", %lu, %lu, ", tcp->u_arg[2], tcp->u_arg[3]); in sys_aiowrite()
2736 printxval(whence, tcp->u_arg[4], "L_???"); in sys_aiowrite()
2739 if (tcp->u_arg[5] == 0) in sys_aiowrite()
2741 else if (syserror(tcp) in sys_aiowrite()
2742 || umove(tcp, tcp->u_arg[5], &res) < 0) in sys_aiowrite()
2743 tprintf(", %#lx", tcp->u_arg[5]); in sys_aiowrite()
2752 sys_aiowait(struct tcb *tcp) in sys_aiowait() argument
2754 if (entering(tcp)) in sys_aiowait()
2755 printtv(tcp, tcp->u_arg[0]); in sys_aiowait()
2760 sys_aiocancel(struct tcb *tcp) in sys_aiocancel() argument
2764 if (exiting(tcp)) { in sys_aiocancel()
2765 if (tcp->u_arg[0] == 0) in sys_aiocancel()
2767 else if (syserror(tcp) in sys_aiocancel()
2768 || umove(tcp, tcp->u_arg[0], &res) < 0) in sys_aiocancel()
2769 tprintf("%#lx", tcp->u_arg[0]); in sys_aiocancel()
2788 print_xattr_val(struct tcb *tcp, int failed, in print_xattr_val() argument
2797 umoven(tcp, arg, size, (char *) &buf[3 * size]) < 0) { in print_xattr_val()
2828 sys_setxattr(struct tcb *tcp) in sys_setxattr() argument
2830 if (entering(tcp)) { in sys_setxattr()
2831 printpath(tcp, tcp->u_arg[0]); in sys_setxattr()
2833 printstr(tcp, tcp->u_arg[1], -1); in sys_setxattr()
2834 print_xattr_val(tcp, 0, tcp->u_arg[2], tcp->u_arg[3], tcp->u_arg[3]); in sys_setxattr()
2836 printflags(xattrflags, tcp->u_arg[4], "XATTR_???"); in sys_setxattr()
2842 sys_fsetxattr(struct tcb *tcp) in sys_fsetxattr() argument
2844 if (entering(tcp)) { in sys_fsetxattr()
2845 printfd(tcp, tcp->u_arg[0]); in sys_fsetxattr()
2847 printstr(tcp, tcp->u_arg[1], -1); in sys_fsetxattr()
2848 print_xattr_val(tcp, 0, tcp->u_arg[2], tcp->u_arg[3], tcp->u_arg[3]); in sys_fsetxattr()
2850 printflags(xattrflags, tcp->u_arg[4], "XATTR_???"); in sys_fsetxattr()
2856 sys_getxattr(struct tcb *tcp) in sys_getxattr() argument
2858 if (entering(tcp)) { in sys_getxattr()
2859 printpath(tcp, tcp->u_arg[0]); in sys_getxattr()
2861 printstr(tcp, tcp->u_arg[1], -1); in sys_getxattr()
2863 print_xattr_val(tcp, syserror(tcp), tcp->u_arg[2], tcp->u_arg[3], in sys_getxattr()
2864 tcp->u_rval); in sys_getxattr()
2870 sys_fgetxattr(struct tcb *tcp) in sys_fgetxattr() argument
2872 if (entering(tcp)) { in sys_fgetxattr()
2873 printfd(tcp, tcp->u_arg[0]); in sys_fgetxattr()
2875 printstr(tcp, tcp->u_arg[1], -1); in sys_fgetxattr()
2877 print_xattr_val(tcp, syserror(tcp), tcp->u_arg[2], tcp->u_arg[3], in sys_fgetxattr()
2878 tcp->u_rval); in sys_fgetxattr()
2884 sys_listxattr(struct tcb *tcp) in sys_listxattr() argument
2886 if (entering(tcp)) { in sys_listxattr()
2887 printpath(tcp, tcp->u_arg[0]); in sys_listxattr()
2890 tprintf(", %p, %lu", (void *) tcp->u_arg[1], tcp->u_arg[2]); in sys_listxattr()
2896 sys_flistxattr(struct tcb *tcp) in sys_flistxattr() argument
2898 if (entering(tcp)) { in sys_flistxattr()
2899 printfd(tcp, tcp->u_arg[0]); in sys_flistxattr()
2902 tprintf(", %p, %lu", (void *) tcp->u_arg[1], tcp->u_arg[2]); in sys_flistxattr()
2908 sys_removexattr(struct tcb *tcp) in sys_removexattr() argument
2910 if (entering(tcp)) { in sys_removexattr()
2911 printpath(tcp, tcp->u_arg[0]); in sys_removexattr()
2913 printstr(tcp, tcp->u_arg[1], -1); in sys_removexattr()
2919 sys_fremovexattr(struct tcb *tcp) in sys_fremovexattr() argument
2921 if (entering(tcp)) { in sys_fremovexattr()
2922 printfd(tcp, tcp->u_arg[0]); in sys_fremovexattr()
2924 printstr(tcp, tcp->u_arg[1], -1); in sys_fremovexattr()
2943 sys_fadvise64(struct tcb *tcp) in sys_fadvise64() argument
2945 if (entering(tcp)) { in sys_fadvise64()
2947 printfd(tcp, tcp->u_arg[0]); in sys_fadvise64()
2949 argn = printllval(tcp, "%lld", 1); in sys_fadvise64()
2950 tprintf(", %ld, ", tcp->u_arg[argn++]); in sys_fadvise64()
2951 printxval(advise, tcp->u_arg[argn], "POSIX_FADV_???"); in sys_fadvise64()
2959 sys_fadvise64_64(struct tcb *tcp) in sys_fadvise64_64() argument
2961 if (entering(tcp)) { in sys_fadvise64_64()
2963 printfd(tcp, tcp->u_arg[0]); in sys_fadvise64_64()
2966 argn = printllval(tcp, "%lld, ", 2); in sys_fadvise64_64()
2968 argn = printllval(tcp, "%lld, ", 1); in sys_fadvise64_64()
2970 argn = printllval(tcp, "%lld, ", argn); in sys_fadvise64_64()
2972 printxval(advise, tcp->u_arg[1], "POSIX_FADV_???"); in sys_fadvise64_64()
2974 printxval(advise, tcp->u_arg[argn], "POSIX_FADV_???"); in sys_fadvise64_64()
3012 sys_inotify_add_watch(struct tcb *tcp) in sys_inotify_add_watch() argument
3014 if (entering(tcp)) { in sys_inotify_add_watch()
3015 printfd(tcp, tcp->u_arg[0]); in sys_inotify_add_watch()
3017 printpath(tcp, tcp->u_arg[1]); in sys_inotify_add_watch()
3019 printflags(inotify_modes, tcp->u_arg[2], "IN_???"); in sys_inotify_add_watch()
3025 sys_inotify_rm_watch(struct tcb *tcp) in sys_inotify_rm_watch() argument
3027 if (entering(tcp)) { in sys_inotify_rm_watch()
3028 printfd(tcp, tcp->u_arg[0]); in sys_inotify_rm_watch()
3029 tprintf(", %ld", tcp->u_arg[1]); in sys_inotify_rm_watch()
3035 sys_inotify_init1(struct tcb *tcp) in sys_inotify_init1() argument
3037 if (entering(tcp)) in sys_inotify_init1()
3038 printflags(inotify_init_flags, tcp->u_arg[0], "IN_???"); in sys_inotify_init1()
3043 sys_fallocate(struct tcb *tcp) in sys_fallocate() argument
3045 if (entering(tcp)) { in sys_fallocate()
3047 printfd(tcp, tcp->u_arg[0]); /* fd */ in sys_fallocate()
3049 tprintf("%#lo, ", tcp->u_arg[1]); /* mode */ in sys_fallocate()
3050 argn = printllval(tcp, "%llu, ", 2); /* offset */ in sys_fallocate()
3051 printllval(tcp, "%llu", argn); /* len */ in sys_fallocate()