Lines Matching refs:tcp
128 sys_mount(struct tcb *tcp) in sys_mount() argument
130 if (entering(tcp)) { in sys_mount()
132 unsigned long flags = tcp->u_arg[3]; in sys_mount()
143 printpath(tcp, tcp->u_arg[0]); in sys_mount()
146 printpath(tcp, tcp->u_arg[1]); in sys_mount()
149 if (ignore_type && tcp->u_arg[2]) in sys_mount()
150 tprintf("%#lx", tcp->u_arg[2]); in sys_mount()
152 printstr(tcp, tcp->u_arg[2], -1); in sys_mount()
155 printflags(mount_flags, tcp->u_arg[3], "MS_???"); in sys_mount()
158 if (ignore_data && tcp->u_arg[4]) in sys_mount()
159 tprintf("%#lx", tcp->u_arg[4]); in sys_mount()
161 printstr(tcp, tcp->u_arg[4], -1); in sys_mount()
178 sys_umount2(struct tcb *tcp) in sys_umount2() argument
180 if (entering(tcp)) { in sys_umount2()
181 printstr(tcp, tcp->u_arg[0], -1); in sys_umount2()
183 printflags(umount_flags, tcp->u_arg[1], "MNT_???"); in sys_umount2()
216 sys_personality(tcp) in sys_personality() argument
217 struct tcb *tcp; in sys_personality()
219 if (entering(tcp))
220 printxval(personality_options, tcp->u_arg[0], "PER_???");
248 sys_reboot(tcp) in sys_reboot() argument
249 struct tcb *tcp; in sys_reboot()
251 if (entering(tcp)) {
252 printflags(bootflags1, tcp->u_arg[0], "LINUX_REBOOT_MAGIC_???");
254 printflags(bootflags2, tcp->u_arg[1], "LINUX_REBOOT_MAGIC_???");
256 printflags(bootflags3, tcp->u_arg[2], "LINUX_REBOOT_CMD_???");
257 if (tcp->u_arg[2] == LINUX_REBOOT_CMD_RESTART2) {
259 printstr(tcp, tcp->u_arg[3], -1);
293 sys_cacheflush(tcp) in sys_cacheflush() argument
294 struct tcb *tcp; in sys_cacheflush()
296 if (entering(tcp)) {
298 tprintf("%#lx, ", tcp->u_arg[0]);
300 printxval(cacheflush_scope, tcp->u_arg[1], "FLUSH_SCOPE_???");
303 printflags(cacheflush_flags, tcp->u_arg[2], "FLUSH_CACHE_???");
305 tprintf(", %lu", tcp->u_arg[3]);
325 sys_sram_alloc(struct tcb *tcp) in sys_sram_alloc() argument
327 if (entering(tcp)) { in sys_sram_alloc()
329 tprintf("%lu, ", tcp->u_arg[0]); in sys_sram_alloc()
331 printxval(sram_alloc_flags, tcp->u_arg[1], "???_SRAM"); in sys_sram_alloc()
346 sys_cacheflush(struct tcb *tcp) in sys_cacheflush() argument
348 if (entering(tcp)) { in sys_cacheflush()
350 tprintf("%#lx, ", tcp->u_arg[0]); in sys_cacheflush()
352 tprintf("%ld, ", tcp->u_arg[1]); in sys_cacheflush()
354 printxval(cacheflush_flags, tcp->u_arg[1], "?CACHE"); in sys_cacheflush()
379 sys_cacheflush(struct tcb *tcp) in sys_cacheflush() argument
381 if (entering(tcp)) { in sys_cacheflush()
383 tprintf("%#lx, ", tcp->u_arg[0]); in sys_cacheflush()
385 tprintf("%lu, ", tcp->u_arg[1]); in sys_cacheflush()
387 printflags(cacheflush_flags, tcp->u_arg[2], "CACHEFLUSH_???"); in sys_cacheflush()
410 sys_sync(tcp) in sys_sync() argument
411 struct tcb *tcp; in sys_sync()
432 sys_reboot(tcp) in sys_reboot() argument
433 struct tcb *tcp; in sys_reboot()
435 if (entering(tcp)) {
436 printflags(bootflags, tcp->u_arg[0], "RB_???");
437 if (tcp->u_arg[0] & RB_STRING) {
438 printstr(tcp, tcp->u_arg[1], -1);
445 sys_sysacct(tcp) in sys_sysacct() argument
446 struct tcb *tcp; in sys_sysacct()
448 if (entering(tcp)) {
449 printstr(tcp, tcp->u_arg[0], -1);
455 sys_swapon(tcp) in sys_swapon() argument
456 struct tcb *tcp; in sys_swapon()
458 if (entering(tcp)) {
459 printstr(tcp, tcp->u_arg[0], -1);
465 sys_nfs_svc(tcp) in sys_nfs_svc() argument
466 struct tcb *tcp; in sys_nfs_svc()
468 if (entering(tcp)) {
469 printsock(tcp, tcp->u_arg[0]);
520 sys_mount(tcp) in sys_mount() argument
521 struct tcb *tcp; in sys_mount()
525 if (entering(tcp)) {
526 if (!(tcp->u_arg[2] & M_NEWTYPE) || umovestr(tcp,
527 tcp->u_arg[0], sizeof type, type) < 0) {
528 tprintf("OLDTYPE:#%lx", tcp->u_arg[0]);
532 printstr(tcp, tcp->u_arg[1], -1);
534 printflags(mountflags, tcp->u_arg[2] & ~M_NEWTYPE, "M_???");
539 if (umove(tcp, tcp->u_arg[3], &a) < 0)
541 printstr(tcp, (int)a.fspec, -1);
544 if (umove(tcp, tcp->u_arg[3], &a) < 0)
546 printstr(tcp, (int)a.fsdir, -1);
549 if (umove(tcp, tcp->u_arg[3], &a) < 0)
552 printsock(tcp, (int) a.addr);
558 printstr(tcp, (int)a.hostname, -1);
564 printstr(tcp, (int) a.netname, -1);
571 if (umove(tcp, tcp->u_arg[3], &a) < 0)
574 printstr(tcp, (int)a.rmtfs, -1);
575 if (umove(tcp, (int)a.token, &t) < 0)
580 if (umove(tcp, tcp->u_arg[3], &a) < 0)
582 printstr(tcp, (int)a.fspec, -1);
589 sys_unmount(tcp) in sys_unmount() argument
590 struct tcb *tcp; in sys_unmount()
592 if (entering(tcp)) {
593 printstr(tcp, tcp->u_arg[0], -1);
599 sys_umount(tcp) in sys_umount() argument
600 struct tcb *tcp; in sys_umount()
602 return sys_unmount(tcp);
606 sys_auditsys(tcp) in sys_auditsys() argument
607 struct tcb *tcp; in sys_auditsys()
610 return printargs(tcp);
620 sys_exportfs(tcp) in sys_exportfs() argument
621 struct tcb *tcp; in sys_exportfs()
626 if (entering(tcp)) {
627 printstr(tcp, tcp->u_arg[0], -1);
628 if (umove(tcp, tcp->u_arg[1], &e) < 0) {
629 tprintf("%#lx", tcp->u_arg[1]);
637 printsock(tcp,
642 printsock(tcp,
648 printsock(tcp,
688 sys_sysconf(tcp) in sys_sysconf() argument
689 struct tcb *tcp; in sys_sysconf()
691 if (entering(tcp)) {
692 printxval(sysconflimits, tcp->u_arg[0], "_SC_???");
733 sys_pathconf(tcp) in sys_pathconf() argument
734 struct tcb *tcp; in sys_pathconf()
736 if (entering(tcp)) {
737 printstr(tcp, tcp->u_arg[0], -1);
739 printxval(pathconflimits, tcp->u_arg[1], "_PC_???");
745 sys_fpathconf(tcp) in sys_fpathconf() argument
746 struct tcb *tcp; in sys_fpathconf()
748 if (entering(tcp)) {
749 tprintf("%lu, ", tcp->u_arg[0]);
750 printxval(pathconflimits, tcp->u_arg[1], "_PC_???");
847 sys_sysconfig(tcp) in sys_sysconfig() argument
848 struct tcb *tcp; in sys_sysconfig()
850 if (entering(tcp))
851 printxval(sysconfig_options, tcp->u_arg[0], "_CONFIG_???");
881 sys_sysinfo(tcp) in sys_sysinfo() argument
882 struct tcb *tcp; in sys_sysinfo()
884 if (entering(tcp)) {
885 printxval(sysinfo_options, tcp->u_arg[0], "SI_???");
890 if (syserror(tcp))
891 tprintf("%#lx", tcp->u_arg[1]);
893 printpath(tcp, tcp->u_arg[1]);
894 tprintf(", %lu", tcp->u_arg[2]);
1266 sys_syssgi(tcp) in sys_syssgi() argument
1267 struct tcb *tcp; in sys_syssgi()
1271 if (entering(tcp)) {
1272 printxval(syssgi_options, tcp->u_arg[0], "SGI_???");
1273 switch (tcp->u_arg[0]) {
1275 for (i = 1; i < tcp->u_nargs; i++)
1276 tprintf(", %#lx", tcp->u_arg[i]);
1339 sys_mount(tcp) in sys_mount() argument
1340 struct tcb *tcp; in sys_mount()
1342 if (entering(tcp)) {
1343 printpath(tcp, tcp->u_arg[0]);
1345 printpath(tcp, tcp->u_arg[1]);
1347 printflags(mount_flags, tcp->u_arg[2], "MS_???");
1348 if (tcp->u_arg[2] & (MS_FSS | MS_DATA)) {
1350 tprintf("%ld", tcp->u_arg[3]);
1352 if (tcp->u_arg[2] & MS_DATA) {
1356 if (tcp->u_arg[3] == nfs_type) {
1358 if (umove(tcp, tcp->u_arg[4], &args) < 0)
1359 tprintf("%#lx", tcp->u_arg[4]);
1362 printsock(tcp, (int) args.addr);
1366 printstr(tcp, (int) args.hostname, -1);
1371 tprintf("%#lx", tcp->u_arg[4]);
1372 tprintf(", %ld", tcp->u_arg[5]);
1450 sys_mount(tcp) in sys_mount() argument
1451 struct tcb *tcp; in sys_mount()
1453 if (entering(tcp)) {
1455 printpath(tcp, tcp->u_arg[0]);
1457 printpath(tcp, tcp->u_arg[1]);
1459 printflags(mount_flags, tcp->u_arg[2], "MS_???");
1464 if (tcp->u_arg[2] & (MS_FSS | MS_DATA)) {
1465 if (umovestr(tcp, tcp->u_arg[3], FSTYPSZ, fstyp) < 0) {
1467 tprintf(", %ld", tcp->u_arg[3]);
1472 if (tcp->u_arg[2] & MS_DATA) {
1479 if (umove(tcp, tcp->u_arg[4], &args) < 0)
1480 tprintf("%#lx", tcp->u_arg[4]);
1486 printstr (tcp,
1499 printstr (tcp, tcp->u_arg[4], -1);
1504 if (umove(tcp, tcp->u_arg[4], &args) < 0)
1505 tprintf("%#lx", tcp->u_arg[4]);
1509 if (umove (tcp, (int) args.addr, &addr) < 0) {
1513 printsock(tcp, (int) addr.buf, addr.len);
1518 printstr(tcp, (int) args.hostname, -1);
1523 tprintf("%#lx", tcp->u_arg[4]);
1524 tprintf(", %ld", tcp->u_arg[5]);
1533 sys_mount(tcp) in sys_mount() argument
1534 struct tcb *tcp; in sys_mount()
1536 if (entering(tcp)) {
1537 printpath(tcp, tcp->u_arg[0]);
1539 printpath(tcp, tcp->u_arg[1]);
1600 sys_capget(tcp) in sys_capget() argument
1601 struct tcb *tcp; in sys_capget()
1606 if(!entering(tcp)) {
1610 tprintf("%#lx, %#lx", tcp->u_arg[0], tcp->u_arg[1]);
1617 tprintf("%#lx, %#lx", tcp->u_arg[0], tcp->u_arg[1]);
1622 if (!tcp->u_arg[0])
1624 else if (!verbose(tcp))
1625 tprintf("%#lx", tcp->u_arg[0]);
1626 else if (umoven(tcp, tcp->u_arg[0], sizeof(*arg0), (char *) arg0) < 0)
1632 if (!tcp->u_arg[1])
1634 else if (!verbose(tcp))
1635 tprintf("%#lx", tcp->u_arg[1]);
1636 else if (umoven(tcp, tcp->u_arg[1], sizeof(*arg1), (char *) arg1) < 0)
1652 sys_capset(tcp) in sys_capset() argument
1653 struct tcb *tcp; in sys_capset()
1658 if(entering(tcp)) {
1662 tprintf("%#lx, %#lx", tcp->u_arg[0], tcp->u_arg[1]);
1669 tprintf("%#lx, %#lx", tcp->u_arg[0], tcp->u_arg[1]);
1674 if (!tcp->u_arg[0])
1676 else if (!verbose(tcp))
1677 tprintf("%#lx", tcp->u_arg[0]);
1678 else if (umoven(tcp, tcp->u_arg[0], sizeof(*arg0), (char *) arg0) < 0)
1684 if (!tcp->u_arg[1])
1686 else if (!verbose(tcp))
1687 tprintf("%#lx", tcp->u_arg[1]);
1688 else if (umoven(tcp, tcp->u_arg[1], sizeof(*arg1), (char *) arg1) < 0)
1705 int sys_capget(tcp) in sys_capget() argument
1706 struct tcb *tcp; in sys_capget()
1708 return printargs(tcp);
1711 int sys_capset(tcp) in sys_capset() argument
1712 struct tcb *tcp; in sys_capset()
1714 return printargs(tcp);
1966 sys_sysctl(tcp) in sys_sysctl() argument
1967 struct tcb *tcp; in sys_sysctl()
1973 if (umove (tcp, tcp->u_arg[0], &info) < 0)
1974 return printargs(tcp);
1979 umoven(tcp, (unsigned long) info.name, size, (char *) name) < 0) {
1981 if (entering(tcp))
1988 if (entering(tcp)) {
2080 if (abbrev(tcp) && max_cnt > max_strlen)
2089 if (umove(tcp, (size_t)info.oldlenp, &oldlen) >= 0
2101 printpath(tcp, (size_t)info.oldval);
2105 else if (syserror(tcp))
2108 printpath(tcp, (size_t)info.newval);
2121 int sys_sysctl(tcp) in sys_sysctl() argument
2122 struct tcb *tcp; in sys_sysctl()
2124 return printargs(tcp);
2131 int sys___sysctl(tcp) in sys___sysctl() argument
2132 struct tcb *tcp; in sys___sysctl()
2139 if (entering(tcp)) {
2140 if (tcp->u_arg[1] < 0 || tcp->u_arg[1] > CTL_MAXNAME ||
2141 (umoven(tcp, tcp->u_arg[0], tcp->u_arg[1] * sizeof(int),
2153 if (sysctl(qoid, tcp->u_arg[1] + 2, ctl, &i, 0, 0) >= 0) {
2154 numeric = !abbrev(tcp);
2159 for (i = 0; i < tcp->u_arg[1]; i++)
2163 tprintf("%lu, ", tcp->u_arg[1]);
2166 if (!syserror(tcp) && (umove(tcp, tcp->u_arg[3], &len) >= 0)) {
2167 printstr(tcp, tcp->u_arg[2], len);
2170 tprintf("%#lx, %#lx, ", tcp->u_arg[2], tcp->u_arg[3]);
2171 printstr(tcp, tcp->u_arg[4], tcp->u_arg[5]);
2172 tprintf(", %lu", tcp->u_arg[5]);
2191 sys_getksym(tcp) in sys_getksym() argument
2192 struct tcb *tcp; in sys_getksym()
2194 if (entering (tcp)) {
2195 printstr(tcp, tcp->u_arg[0], -1);
2199 if (syserror(tcp)) {
2201 tcp->u_arg[1], tcp->u_arg[2]);
2205 printnum (tcp, tcp->u_arg[1], "%#lx");
2207 if (umove(tcp, tcp->u_arg[2], &val) < 0) {
2208 tprintf("%#lx", tcp->u_arg[2]);
2273 int sys_ssisys (tcp) in sys_ssisys() argument
2274 struct tcb *tcp; in sys_ssisys()
2280 if (entering (tcp)) {
2282 if (tcp->u_arg[1] != sizeof iov ||
2283 umove (tcp, tcp->u_arg[0], &iov) < 0)
2285 tprintf ("%#lx, %ld", tcp->u_arg[0], tcp->u_arg[1]);
2294 umove (tcp, (long) iov.tio_udatain, &trc) < 0)
2301 umove (tcp, (long) iov.tio_udatain, &cni) < 0)
2315 if (tcp->u_arg[1] != sizeof iov ||
2316 umove (tcp, tcp->u_arg[0], &iov) < 0)
2321 umove (tcp, (long) iov.tio_udatain, &cni) < 0)
2325 umove (tcp, (long) iov.tio_udataout, &info) < 0)
2340 tprintf ("}, %ld", tcp->u_arg[1]);
2364 int sys_sysmips(tcp) in sys_sysmips() argument
2365 struct tcb *tcp; in sys_sysmips()
2367 if (entering(tcp)) {
2368 printxval(sysmips_operations, tcp->u_arg[0], "???");
2369 if (!verbose(tcp)) {
2370 tprintf("%ld, %ld, %ld", tcp->u_arg[1], tcp->u_arg[2], tcp->u_arg[3]);
2371 } else if (tcp->u_arg[0]==SETNAME) {
2373 if (umovestr(tcp, tcp->u_arg[1], (__NEW_UTS_LEN + 1), nodename) < 0)
2374 tprintf(", %#lx", tcp->u_arg[1]);
2377 } else if (tcp->u_arg[0] == MIPS_ATOMIC_SET) {
2378 tprintf(", %#lx, 0x%lx", tcp->u_arg[1], tcp->u_arg[2]);
2379 } else if (tcp->u_arg[0] == MIPS_FIXADE) {
2380 tprintf(", 0x%lx", tcp->u_arg[1]);
2382 tprintf("%ld, %ld, %ld", tcp->u_arg[1], tcp->u_arg[2], tcp->u_arg[3]);