Lines Matching refs:tcp
87 sys_mount(struct tcb *tcp)
89 if (entering(tcp)) {
91 unsigned long flags = tcp->u_arg[3];
102 printpath(tcp, tcp->u_arg[0]);
105 printpath(tcp, tcp->u_arg[1]);
108 if (ignore_type && tcp->u_arg[2])
109 tprintf("%#lx", tcp->u_arg[2]);
111 printstr(tcp, tcp->u_arg[2], -1);
114 printflags(mount_flags, tcp->u_arg[3], "MS_???");
117 if (ignore_data && tcp->u_arg[4])
118 tprintf("%#lx", tcp->u_arg[4]);
120 printstr(tcp, tcp->u_arg[4], -1);
132 sys_umount2(struct tcb *tcp)
134 if (entering(tcp)) {
135 printstr(tcp, tcp->u_arg[0], -1);
137 printflags(umount_flags, tcp->u_arg[1], "MNT_???");
147 sys_personality(struct tcb *tcp)
149 if (entering(tcp))
150 printxval(personality_options, tcp->u_arg[0], "PER_???");
171 sys_syslog(struct tcb *tcp)
173 int type = tcp->u_arg[0];
175 if (entering(tcp)) {
185 if (entering(tcp))
189 if (entering(tcp)) {
191 tcp->u_arg[1], tcp->u_arg[2]);
197 if (syserror(tcp))
198 tprintf("%#lx", tcp->u_arg[1]);
200 printstr(tcp, tcp->u_arg[1], tcp->u_rval);
202 tprintf(", %d", (int) tcp->u_arg[2]);
224 sys_cacheflush(struct tcb *tcp)
226 if (entering(tcp)) {
228 tprintf("%#lx, ", tcp->u_arg[0]);
230 printxval(cacheflush_scope, tcp->u_arg[1], "FLUSH_SCOPE_???");
233 printflags(cacheflush_flags, tcp->u_arg[2], "FLUSH_CACHE_???");
235 tprintf(", %lu", tcp->u_arg[3]);
248 sys_sram_alloc(struct tcb *tcp)
250 if (entering(tcp)) {
252 tprintf("%lu, ", tcp->u_arg[0]);
254 printflags(sram_alloc_flags, tcp->u_arg[1], "???_SRAM");
269 sys_cacheflush(struct tcb *tcp)
271 if (entering(tcp)) {
273 tprintf("%#lx, ", tcp->u_arg[0]);
275 tprintf("%ld, ", tcp->u_arg[1]);
277 printxval(cacheflush_flags, tcp->u_arg[1], "?CACHE");
302 sys_cacheflush(struct tcb *tcp)
304 if (entering(tcp)) {
306 tprintf("%#lx, ", tcp->u_arg[0]);
308 tprintf("%lu, ", tcp->u_arg[1]);
310 printflags(cacheflush_flags, tcp->u_arg[2], "CACHEFLUSH_???");
333 print_cap_header(struct tcb *tcp, unsigned long addr)
341 else if (!verbose(tcp) ||
342 umoven(tcp, addr, sizeof(*arg.p), arg.c) < 0)
353 print_cap_data(struct tcb *tcp, unsigned long addr)
361 else if (!verbose(tcp) ||
362 (exiting(tcp) && syserror(tcp)) ||
363 umoven(tcp, addr, sizeof(*arg.p), arg.c) < 0)
377 sys_capget(struct tcb *tcp)
379 if (entering(tcp)) {
380 print_cap_header(tcp, tcp->u_arg[0]);
383 print_cap_data(tcp, tcp->u_arg[1]);
389 sys_capset(struct tcb *tcp)
391 if (entering(tcp)) {
392 print_cap_header(tcp, tcp->u_arg[0]);
394 print_cap_data(tcp, tcp->u_arg[1]);
401 int sys_capget(struct tcb *tcp)
403 return printargs(tcp);
406 int sys_capset(struct tcb *tcp)
408 return printargs(tcp);
426 sys_sysctl(struct tcb *tcp)
432 if (umove(tcp, tcp->u_arg[0], &info) < 0)
433 return printargs(tcp);
438 umoven(tcp, (unsigned long) info.name, size, (char *) name) < 0) {
440 if (entering(tcp))
447 if (entering(tcp)) {
539 if (abbrev(tcp) && max_cnt > max_strlen)
550 } else if (umove(tcp, (long)info.oldlenp, &oldlen) >= 0
562 printpath(tcp, (size_t)info.oldval);
569 else if (syserror(tcp))
572 printpath(tcp, (size_t)info.newval);
588 int sys_sysmips(struct tcb *tcp)
590 if (entering(tcp)) {
591 printxval(sysmips_operations, tcp->u_arg[0], "???");
592 if (!verbose(tcp)) {
593 tprintf("%ld, %ld, %ld", tcp->u_arg[1], tcp->u_arg[2], tcp->u_arg[3]);
594 } else if (tcp->u_arg[0] == SETNAME) {
596 if (umovestr(tcp, tcp->u_arg[1], (__NEW_UTS_LEN + 1), nodename) < 0)
597 tprintf(", %#lx", tcp->u_arg[1]);
600 } else if (tcp->u_arg[0] == MIPS_ATOMIC_SET) {
601 tprintf(", %#lx, 0x%lx", tcp->u_arg[1], tcp->u_arg[2]);
602 } else if (tcp->u_arg[0] == MIPS_FIXADE) {
603 tprintf(", 0x%lx", tcp->u_arg[1]);
605 tprintf("%ld, %ld, %ld", tcp->u_arg[1], tcp->u_arg[2], tcp->u_arg[3]);
627 int sys_or1k_atomic(struct tcb *tcp)
629 if (entering(tcp)) {
630 printxval(atomic_ops, tcp->u_arg[0], "???");
631 switch(tcp->u_arg[0]) {
633 tprintf(", 0x%lx, 0x%lx", tcp->u_arg[1], tcp->u_arg[2]);
636 tprintf(", 0x%lx, %#lx, %#lx", tcp->u_arg[1], tcp->u_arg[2],
637 tcp->u_arg[3]);
646 tprintf(", 0x%lx, %#lx", tcp->u_arg[1], tcp->u_arg[2]);
650 tprintf(", 0x%lx", tcp->u_arg[1]);