Lines Matching refs:tcp

66 print_prctl_args(struct tcb *tcp, const unsigned int first)  in print_prctl_args()  argument
70 for (i = first; i < tcp->s_ent->nargs; ++i) in print_prctl_args()
71 tprintf(", %#lx", tcp->u_arg[i]); in print_prctl_args()
78 if (entering(tcp)) in SYS_FUNC()
79 printxval(prctl_options, tcp->u_arg[0], "PR_???"); in SYS_FUNC()
81 switch (tcp->u_arg[0]) { in SYS_FUNC()
93 if (entering(tcp)) in SYS_FUNC()
96 printnum_int(tcp, tcp->u_arg[1], "%u"); in SYS_FUNC()
100 if (entering(tcp)) in SYS_FUNC()
103 if (syserror(tcp)) in SYS_FUNC()
104 printaddr(tcp->u_arg[1]); in SYS_FUNC()
106 printstr(tcp, tcp->u_arg[1], -1); in SYS_FUNC()
111 if (entering(tcp)) in SYS_FUNC()
113 else if (!umove_or_printaddr(tcp, tcp->u_arg[1], &i)) { in SYS_FUNC()
121 if (entering(tcp)) in SYS_FUNC()
123 if (syserror(tcp) || tcp->u_rval == 0) in SYS_FUNC()
125 tcp->auxstr = sprintflags("", secbits, tcp->u_rval); in SYS_FUNC()
129 if (entering(tcp)) in SYS_FUNC()
132 printnum_ptr(tcp, tcp->u_arg[1]); in SYS_FUNC()
136 if (entering(tcp)) in SYS_FUNC()
138 else if (!umove_or_printaddr(tcp, tcp->u_arg[1], &i)) { in SYS_FUNC()
146 if (entering(tcp)) in SYS_FUNC()
148 else if (!umove_or_printaddr(tcp, tcp->u_arg[1], &i)) { in SYS_FUNC()
167 tprintf(", %lu", tcp->u_arg[1]); in SYS_FUNC()
173 printxval(cap, tcp->u_arg[1], "CAP_???"); in SYS_FUNC()
178 printxval(pr_cap_ambient, tcp->u_arg[1], "PR_CAP_AMBIENT_???"); in SYS_FUNC()
179 switch (tcp->u_arg[1]) { in SYS_FUNC()
184 printxval(cap, tcp->u_arg[2], "CAP_???"); in SYS_FUNC()
185 print_prctl_args(tcp, 3); in SYS_FUNC()
188 print_prctl_args(tcp, 2); in SYS_FUNC()
195 printxval(pr_mce_kill, tcp->u_arg[1], "PR_MCE_KILL_???"); in SYS_FUNC()
197 if (PR_MCE_KILL_SET == tcp->u_arg[1]) in SYS_FUNC()
198 printxval(pr_mce_kill_policy, tcp->u_arg[2], in SYS_FUNC()
201 tprintf("%#lx", tcp->u_arg[2]); in SYS_FUNC()
202 print_prctl_args(tcp, 3); in SYS_FUNC()
207 printstr(tcp, tcp->u_arg[1], TASK_COMM_LEN); in SYS_FUNC()
218 if (tcp->u_arg[1] == PR_SET_VMA_ANON_NAME) { in SYS_FUNC()
219 tprintf(", %lu", tcp->u_arg[1]); in SYS_FUNC()
220 tprintf(", %#lx", tcp->u_arg[2]); in SYS_FUNC()
221 tprintf(", %lu, ", tcp->u_arg[3]); in SYS_FUNC()
222 printstr(tcp, tcp->u_arg[4], -1); in SYS_FUNC()
226 print_prctl_args(tcp, 1); in SYS_FUNC()
233 printxval(pr_set_mm, tcp->u_arg[1], "PR_SET_MM_???"); in SYS_FUNC()
234 print_prctl_args(tcp, 2); in SYS_FUNC()
239 if ((unsigned long) tcp->u_arg[1] > 128) in SYS_FUNC()
240 tprintf("%lu", tcp->u_arg[1]); in SYS_FUNC()
242 tprints(signame(tcp->u_arg[1])); in SYS_FUNC()
247 if (tcp->u_arg[1] == -1) in SYS_FUNC()
250 tprintf("%lu", tcp->u_arg[1]); in SYS_FUNC()
255 printxval(seccomp_mode, tcp->u_arg[1], in SYS_FUNC()
257 if (SECCOMP_MODE_STRICT == tcp->u_arg[1]) in SYS_FUNC()
259 if (SECCOMP_MODE_FILTER == tcp->u_arg[1]) { in SYS_FUNC()
261 print_seccomp_filter(tcp, tcp->u_arg[2]); in SYS_FUNC()
264 print_prctl_args(tcp, 2); in SYS_FUNC()
269 printflags(secbits, tcp->u_arg[1], "SECBIT_???"); in SYS_FUNC()
273 tprintf(", %ld", tcp->u_arg[1]); in SYS_FUNC()
278 printxval(pr_tsc, tcp->u_arg[1], "PR_TSC_???"); in SYS_FUNC()
283 printflags(pr_unalign_flags, tcp->u_arg[1], "PR_UNALIGN_???"); in SYS_FUNC()
288 tprintf(", %lu", tcp->u_arg[1]); in SYS_FUNC()
289 print_prctl_args(tcp, 2); in SYS_FUNC()
293 if (entering(tcp)) { in SYS_FUNC()
294 print_prctl_args(tcp, 1); in SYS_FUNC()
297 if (syserror(tcp)) in SYS_FUNC()
299 tcp->auxstr = xlookup(pr_mce_kill_policy, tcp->u_rval); in SYS_FUNC()
300 return tcp->auxstr ? RVAL_STR : RVAL_UDECIMAL; in SYS_FUNC()
307 print_prctl_args(tcp, 1); in SYS_FUNC()
319 if (entering(tcp)) in SYS_FUNC()
320 printxval(archvals, tcp->u_arg[0], "ARCH_???"); in SYS_FUNC()
322 switch (tcp->u_arg[0]) { in SYS_FUNC()
325 if (entering(tcp)) in SYS_FUNC()
328 printnum_ptr(tcp, tcp->u_arg[1]); in SYS_FUNC()
332 tprintf(", %#lx", tcp->u_arg[1]); in SYS_FUNC()