Lines Matching refs:tcp

58 upathmatch(struct tcb *const tcp, const kernel_ulong_t upath,  in upathmatch()  argument
63 return umovestr(tcp, upath, sizeof(path), path) > 0 && in upathmatch()
71 fdmatch(struct tcb *tcp, int fd, struct path_set *set) in fdmatch() argument
74 int n = getfdpath(tcp, fd, path, sizeof(path)); in fdmatch()
101 getfdpath(struct tcb *tcp, int fd, char *buf, unsigned bufsize) in getfdpath() argument
109 xsprintf(linkpath, "/proc/%u/fd/%u", tcp->pid, fd); in getfdpath()
147 match_xselect_args(struct tcb *tcp, const kernel_ulong_t *args, in match_xselect_args() argument
164 if (umoven(tcp, args[i], fdsize, fds) < 0) in match_xselect_args()
170 if (fdmatch(tcp, j, set)) { in match_xselect_args()
186 pathtrace_match_set(struct tcb *tcp, struct path_set *set) in pathtrace_match_set() argument
190 s = tcp->s_ent; in pathtrace_match_set()
208 return fdmatch(tcp, tcp->u_arg[0], set) || in pathtrace_match_set()
209 fdmatch(tcp, tcp->u_arg[1], set); in pathtrace_match_set()
228 return fdmatch(tcp, tcp->u_arg[0], set) || in pathtrace_match_set()
229 upathmatch(tcp, tcp->u_arg[1], set); in pathtrace_match_set()
235 return upathmatch(tcp, tcp->u_arg[0], set) || in pathtrace_match_set()
236 upathmatch(tcp, tcp->u_arg[1], set); in pathtrace_match_set()
241 return upathmatch(tcp, tcp->u_arg[1], set); in pathtrace_match_set()
247 return fdmatch(tcp, tcp->u_arg[0], set) || in pathtrace_match_set()
248 fdmatch(tcp, tcp->u_arg[2], set) || in pathtrace_match_set()
249 upathmatch(tcp, tcp->u_arg[1], set) || in pathtrace_match_set()
250 upathmatch(tcp, tcp->u_arg[3], set); in pathtrace_match_set()
259 fetch_indirect_syscall_args(tcp, tcp->u_arg[0], 6); in pathtrace_match_set()
261 return args && fdmatch(tcp, args[4], set); in pathtrace_match_set()
270 return fdmatch(tcp, tcp->u_arg[4], set); in pathtrace_match_set()
274 return fdmatch(tcp, tcp->u_arg[1], set) || in pathtrace_match_set()
275 upathmatch(tcp, tcp->u_arg[2], set); in pathtrace_match_set()
280 return fdmatch(tcp, tcp->u_arg[0], set) || in pathtrace_match_set()
281 fdmatch(tcp, tcp->u_arg[2], set); in pathtrace_match_set()
285 return fdmatch(tcp, tcp->u_arg[2], set); in pathtrace_match_set()
292 int argn = getllval(tcp, &mask, 2); in pathtrace_match_set()
293 return fdmatch(tcp, tcp->u_arg[argn], set) || in pathtrace_match_set()
294 upathmatch(tcp, tcp->u_arg[argn + 1], set); in pathtrace_match_set()
300 fetch_indirect_syscall_args(tcp, tcp->u_arg[0], 5); in pathtrace_match_set()
302 return args && match_xselect_args(tcp, args, set); in pathtrace_match_set()
307 return match_xselect_args(tcp, tcp->u_arg, set); in pathtrace_match_set()
315 start = tcp->u_arg[0]; in pathtrace_match_set()
316 nfds = tcp->u_arg[1]; in pathtrace_match_set()
326 if (umove(tcp, cur, &fds)) in pathtrace_match_set()
328 if (fdmatch(tcp, fds.fd, set)) in pathtrace_match_set()
376 return upathmatch(tcp, tcp->u_arg[0], set); in pathtrace_match_set()
379 return fdmatch(tcp, tcp->u_arg[0], set); in pathtrace_match_set()