Lines Matching refs:tcp

49 	printaddr(tcp->u_arg[0]);  in SYS_FUNC()
58 print_mmap(struct tcb *tcp, long *u_arg, unsigned long long offset) in print_mmap() argument
76 printfd(tcp, u_arg[4]); in print_mmap()
100 if (umoven(tcp, tcp->u_arg[0], sizeof(narrow_arg), narrow_arg) == -1) in SYS_FUNC()
108 if (umoven(tcp, tcp->u_arg[0], sizeof(narrow_arg), narrow_arg) == -1) in SYS_FUNC()
113 if (umoven(tcp, tcp->u_arg[0], sizeof(u_arg), u_arg) == -1) in SYS_FUNC()
116 print_mmap(tcp, u_arg, (unsigned long) u_arg[5]); in SYS_FUNC()
129 if (umoven(tcp, tcp->u_arg[0], sizeof(narrow_arg), narrow_arg) == -1) in SYS_FUNC()
135 print_mmap(tcp, u_arg, offset); in SYS_FUNC()
144 unsigned long long offset = (unsigned long) tcp->u_arg[5]; in SYS_FUNC()
147 offset = tcp->ext_arg[5]; in SYS_FUNC()
154 print_mmap(tcp, tcp->u_arg, offset); in SYS_FUNC()
164 offset = (unsigned long) tcp->u_arg[5]; in SYS_FUNC()
166 print_mmap(tcp, tcp->u_arg, offset); in SYS_FUNC()
175 offset = (unsigned long) tcp->u_arg[5]; in SYS_FUNC()
177 print_mmap(tcp, tcp->u_arg, offset); in SYS_FUNC()
184 printaddr(tcp->u_arg[0]); in SYS_FUNC()
185 tprintf(", %lu", tcp->u_arg[1]); in SYS_FUNC()
192 printaddr(tcp->u_arg[0]); in SYS_FUNC()
193 tprintf(", %lu, ", tcp->u_arg[1]); in SYS_FUNC()
194 printflags(mmap_prot, tcp->u_arg[2], "PROT_???"); in SYS_FUNC()
203 printaddr(tcp->u_arg[0]); in SYS_FUNC()
204 tprintf(", %lu, %lu, ", tcp->u_arg[1], tcp->u_arg[2]); in SYS_FUNC()
205 printflags(mremap_flags, tcp->u_arg[3], "MREMAP_???"); in SYS_FUNC()
207 if ((tcp->u_arg[3] & (MREMAP_MAYMOVE | MREMAP_FIXED)) == in SYS_FUNC()
210 printaddr(tcp->u_arg[4]); in SYS_FUNC()
220 printaddr(tcp->u_arg[0]); in SYS_FUNC()
221 tprintf(", %lu, ", tcp->u_arg[1]); in SYS_FUNC()
222 printxval(madvise_cmds, tcp->u_arg[2], "MADV_???"); in SYS_FUNC()
231 printflags(mlockall_flags, tcp->u_arg[0], "MCL_???"); in SYS_FUNC()
241 printaddr(tcp->u_arg[0]); in SYS_FUNC()
243 tprintf(", %lu, ", tcp->u_arg[1]); in SYS_FUNC()
245 printflags(mctl_sync, tcp->u_arg[2], "MS_???"); in SYS_FUNC()
254 printaddr(tcp->u_arg[0]); in SYS_FUNC()
255 tprintf(", %lu, ", tcp->u_arg[1]); in SYS_FUNC()
256 printflags(mlock_flags, tcp->u_arg[2], "MLOCK_???"); in SYS_FUNC()
263 if (entering(tcp)) { in SYS_FUNC()
264 printaddr(tcp->u_arg[0]); in SYS_FUNC()
265 tprintf(", %lu, ", tcp->u_arg[1]); in SYS_FUNC()
270 len = tcp->u_arg[1]; in SYS_FUNC()
271 if (syserror(tcp) || !verbose(tcp) || in SYS_FUNC()
272 !tcp->u_arg[2] || !(vec = malloc(len)) || in SYS_FUNC()
273 umoven(tcp, tcp->u_arg[2], len, vec) < 0) in SYS_FUNC()
274 printaddr(tcp->u_arg[2]); in SYS_FUNC()
278 if (abbrev(tcp) && i >= max_strlen) { in SYS_FUNC()
295 if (exiting(tcp)) in SYS_FUNC()
303 printaddr(tcp->u_arg[0]); in SYS_FUNC()
304 tprintf(", %lu, ", tcp->u_arg[1]); in SYS_FUNC()
305 printflags(mmap_prot, tcp->u_arg[2], "PROT_???"); in SYS_FUNC()
306 tprintf(", %lu, ", tcp->u_arg[3]); in SYS_FUNC()
308 printxval(mmap_flags, tcp->u_arg[4] & MAP_TYPE, "MAP_???"); in SYS_FUNC()
309 addflags(mmap_flags, tcp->u_arg[4] & ~MAP_TYPE); in SYS_FUNC()
311 printflags(mmap_flags, tcp->u_arg[4], "MAP_???"); in SYS_FUNC()
335 get_nodes(struct tcb *tcp, unsigned long ptr, unsigned long maxnodes, int err) in get_nodes() argument
342 if (nlongs == 0 || ((err || verbose(tcp)) && (size * 8 == maxnodes) in get_nodes()
347 if (abbrev(tcp)) { in get_nodes()
362 if (umoven(tcp, cur, sizeof(n), &n) < 0) { in get_nodes()
383 printaddr(tcp->u_arg[0]); in SYS_FUNC()
384 tprintf(", %lu, ", tcp->u_arg[1]); in SYS_FUNC()
385 printxval(policies, tcp->u_arg[2], "MPOL_???"); in SYS_FUNC()
386 get_nodes(tcp, tcp->u_arg[3], tcp->u_arg[4], 0); in SYS_FUNC()
388 printflags(mbindflags, tcp->u_arg[5], "MPOL_???"); in SYS_FUNC()
395 printxval(policies, tcp->u_arg[0], "MPOL_???"); in SYS_FUNC()
396 get_nodes(tcp, tcp->u_arg[1], tcp->u_arg[2], 0); in SYS_FUNC()
403 if (exiting(tcp)) { in SYS_FUNC()
405 if (!umove_or_printaddr(tcp, tcp->u_arg[0], &pol)) in SYS_FUNC()
407 get_nodes(tcp, tcp->u_arg[1], tcp->u_arg[2], syserror(tcp)); in SYS_FUNC()
409 printaddr(tcp->u_arg[3]); in SYS_FUNC()
411 printflags(mempolicyflags, tcp->u_arg[4], "MPOL_???"); in SYS_FUNC()
418 tprintf("%ld, ", (long) (pid_t) tcp->u_arg[0]); in SYS_FUNC()
419 get_nodes(tcp, tcp->u_arg[2], tcp->u_arg[1], 0); in SYS_FUNC()
421 get_nodes(tcp, tcp->u_arg[3], tcp->u_arg[1], 0); in SYS_FUNC()
428 if (entering(tcp)) { in SYS_FUNC()
429 unsigned long npages = tcp->u_arg[1]; in SYS_FUNC()
430 tprintf("%ld, %lu, ", tcp->u_arg[0], npages); in SYS_FUNC()
431 if (tcp->u_arg[2] == 0) in SYS_FUNC()
435 long puser = tcp->u_arg[2]; in SYS_FUNC()
441 if (umove(tcp, puser, &p) < 0) { in SYS_FUNC()
450 if (tcp->u_arg[3] == 0) in SYS_FUNC()
454 long nodeuser = tcp->u_arg[3]; in SYS_FUNC()
460 if (umove(tcp, nodeuser, &node) < 0) { in SYS_FUNC()
470 unsigned long npages = tcp->u_arg[1]; in SYS_FUNC()
471 if (tcp->u_arg[4] == 0) in SYS_FUNC()
475 long statususer = tcp->u_arg[4]; in SYS_FUNC()
481 if (umove(tcp, statususer, &status) < 0) { in SYS_FUNC()
490 printflags(move_pages_flags, tcp->u_arg[5], "MPOL_???"); in SYS_FUNC()
501 printaddr(tcp->u_arg[0]); in SYS_FUNC()
503 printaddr(tcp->u_arg[1]); in SYS_FUNC()
505 entries = tcp->u_arg[1] >> 16; in SYS_FUNC()
506 if (!entries || !tcp->u_arg[2]) { in SYS_FUNC()
510 cur = tcp->u_arg[2]; in SYS_FUNC()
512 if (!verbose(tcp) || end < (unsigned long) tcp->u_arg[2]) { in SYS_FUNC()
513 printaddr(tcp->u_arg[2]); in SYS_FUNC()
516 if (abbrev(tcp)) { in SYS_FUNC()
525 if (cur > (unsigned long) tcp->u_arg[2]) in SYS_FUNC()
531 if (umove(tcp, cur, &entry) < 0) { in SYS_FUNC()