Lines Matching refs:tcp

57 upathmatch(struct tcb *tcp, unsigned long upath)  in upathmatch()  argument
61 return umovestr(tcp, upath, sizeof path, path) > 0 && in upathmatch()
69 fdmatch(struct tcb *tcp, int fd) in fdmatch() argument
72 int n = getfdpath(tcp, fd, path, sizeof(path)); in fdmatch()
99 getfdpath(struct tcb *tcp, int fd, char *buf, unsigned bufsize) in getfdpath() argument
107 sprintf(linkpath, "/proc/%u/fd/%u", tcp->pid, fd); in getfdpath()
149 pathtrace_match(struct tcb *tcp) in pathtrace_match() argument
153 s = tcp->s_ent; in pathtrace_match()
171 return fdmatch(tcp, tcp->u_arg[0]) || in pathtrace_match()
172 fdmatch(tcp, tcp->u_arg[1]); in pathtrace_match()
189 return fdmatch(tcp, tcp->u_arg[0]) || in pathtrace_match()
190 upathmatch(tcp, tcp->u_arg[1]); in pathtrace_match()
196 return upathmatch(tcp, tcp->u_arg[0]) || in pathtrace_match()
197 upathmatch(tcp, tcp->u_arg[1]); in pathtrace_match()
201 return upathmatch(tcp, tcp->u_arg[1]); in pathtrace_match()
207 return fdmatch(tcp, tcp->u_arg[0]) || in pathtrace_match()
208 fdmatch(tcp, tcp->u_arg[2]) || in pathtrace_match()
209 upathmatch(tcp, tcp->u_arg[1]) || in pathtrace_match()
210 upathmatch(tcp, tcp->u_arg[3]); in pathtrace_match()
221 return fdmatch(tcp, tcp->u_arg[4]); in pathtrace_match()
225 return fdmatch(tcp, tcp->u_arg[1]) || in pathtrace_match()
226 upathmatch(tcp, tcp->u_arg[0]) || in pathtrace_match()
227 upathmatch(tcp, tcp->u_arg[2]); in pathtrace_match()
231 return fdmatch(tcp, tcp->u_arg[0]) || in pathtrace_match()
232 fdmatch(tcp, tcp->u_arg[2]); in pathtrace_match()
236 return fdmatch(tcp, tcp->u_arg[2]); in pathtrace_match()
241 return fdmatch(tcp, tcp->u_arg[3]) || in pathtrace_match()
242 upathmatch(tcp, tcp->u_arg[4]); in pathtrace_match()
254 args = tcp->u_arg; in pathtrace_match()
256 if (umoven(tcp, tcp->u_arg[0], sizeof oldargs, in pathtrace_match()
279 if (umoven(tcp, args[i], fdsize, fds) < 0) { in pathtrace_match()
287 if (fdmatch(tcp, j)) { in pathtrace_match()
304 start = tcp->u_arg[0]; in pathtrace_match()
305 nfds = tcp->u_arg[1]; in pathtrace_match()
313 if ((umoven(tcp, cur, sizeof fds, &fds) == 0) in pathtrace_match()
314 && fdmatch(tcp, fds.fd)) in pathtrace_match()
350 return upathmatch(tcp, tcp->u_arg[0]); in pathtrace_match()
353 return fdmatch(tcp, tcp->u_arg[0]); in pathtrace_match()