| print_affinitylist(struct tcb *tcp, const unsigned long addr, const unsigned int len) |
| const unsigned int size = len * sizeof(w); |
| const unsigned long end = addr + size; |
| unsigned long cur, abbrev_end; |
| if (!verbose(tcp) || (exiting(tcp) && syserror(tcp)) || |
| !addr || !len || size / sizeof(w) != len || end < addr) { |
| abbrev_end = addr + max_strlen * sizeof(w); |
| for (cur = addr; cur < end; cur += sizeof(w)) { |
| if (umove_or_printaddr(tcp, cur, &w)) |
| SYS_FUNC(sched_setaffinity) |
| tprintf("%ld, %lu, ", tcp->u_arg[0], tcp->u_arg[1]); |
| print_affinitylist(tcp, tcp->u_arg[2], tcp->u_arg[1]); |
| SYS_FUNC(sched_getaffinity) |
| tprintf("%ld, %lu, ", tcp->u_arg[0], tcp->u_arg[1]); |
| print_affinitylist(tcp, tcp->u_arg[2], tcp->u_rval); |