Home
last modified time | relevance | path

Searched refs:tcp (Results 1 – 25 of 536) sorted by relevance

12345678910>>...22

/external/strace/
Dtime.c36 print_timezone(struct tcb *tcp, const long addr) in print_timezone() argument
40 if (umove_or_printaddr(tcp, addr, &tz)) in print_timezone()
49 if (exiting(tcp)) { in SYS_FUNC()
50 print_timeval(tcp, tcp->u_arg[0]); in SYS_FUNC()
52 print_timezone(tcp, tcp->u_arg[1]); in SYS_FUNC()
60 if (exiting(tcp)) { in SYS_FUNC()
61 print_timeval32(tcp, tcp->u_arg[0]); in SYS_FUNC()
63 print_timezone(tcp, tcp->u_arg[1]); in SYS_FUNC()
71 print_timeval(tcp, tcp->u_arg[0]); in SYS_FUNC()
73 print_timezone(tcp, tcp->u_arg[1]); in SYS_FUNC()
[all …]
Dio.c37 if (entering(tcp)) { in SYS_FUNC()
38 printfd(tcp, tcp->u_arg[0]); in SYS_FUNC()
41 if (syserror(tcp)) in SYS_FUNC()
42 printaddr(tcp->u_arg[1]); in SYS_FUNC()
44 printstr(tcp, tcp->u_arg[1], tcp->u_rval); in SYS_FUNC()
45 tprintf(", %lu", tcp->u_arg[2]); in SYS_FUNC()
52 printfd(tcp, tcp->u_arg[0]); in SYS_FUNC()
54 printstr(tcp, tcp->u_arg[1], tcp->u_arg[2]); in SYS_FUNC()
55 tprintf(", %lu", tcp->u_arg[2]); in SYS_FUNC()
65 tprint_iov_upto(struct tcb *tcp, unsigned long len, unsigned long addr, int decode_iov, unsigned lo… in tprint_iov_upto() argument
[all …]
Dkeyctl.c48 printstr(tcp, tcp->u_arg[0], -1); in SYS_FUNC()
51 printstr(tcp, tcp->u_arg[1], -1); in SYS_FUNC()
54 printstr(tcp, tcp->u_arg[2], tcp->u_arg[3]); in SYS_FUNC()
56 tprintf(", %lu, ", tcp->u_arg[3]); in SYS_FUNC()
58 print_keyring_serial_number(tcp->u_arg[4]); in SYS_FUNC()
66 printstr(tcp, tcp->u_arg[0], -1); in SYS_FUNC()
69 printstr(tcp, tcp->u_arg[1], -1); in SYS_FUNC()
72 printstr(tcp, tcp->u_arg[2], -1); in SYS_FUNC()
75 print_keyring_serial_number(tcp->u_arg[3]); in SYS_FUNC()
81 keyctl_get_keyring_id(struct tcb *tcp, key_serial_t id, int create) in keyctl_get_keyring_id() argument
[all …]
Dprctl.c66 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()
[all …]
Dxattr.c39 print_xattr_val(struct tcb *tcp, in print_xattr_val() argument
61 if (!verbose(tcp) || (exiting(tcp) && syserror(tcp))) in print_xattr_val()
68 if (umoven(tcp, addr, len, buf) < 0) { in print_xattr_val()
90 printpath(tcp, tcp->u_arg[0]); in SYS_FUNC()
92 printstr(tcp, tcp->u_arg[1], -1); in SYS_FUNC()
93 print_xattr_val(tcp, tcp->u_arg[2], tcp->u_arg[3], tcp->u_arg[3]); in SYS_FUNC()
95 printflags(xattrflags, tcp->u_arg[4], "XATTR_???"); in SYS_FUNC()
101 printfd(tcp, tcp->u_arg[0]); in SYS_FUNC()
103 printstr(tcp, tcp->u_arg[1], -1); in SYS_FUNC()
104 print_xattr_val(tcp, tcp->u_arg[2], tcp->u_arg[3], tcp->u_arg[3]); in SYS_FUNC()
[all …]
Dfcntl.c57 printflock64(struct tcb *tcp, const long addr, const int getlk) in printflock64() argument
61 if (fetch_struct_flock64(tcp, addr, &fl)) in printflock64()
66 printflock(struct tcb *tcp, const long addr, const int getlk) in printflock() argument
70 if (fetch_struct_flock(tcp, addr, &fl)) in printflock()
75 print_f_owner_ex(struct tcb *tcp, const long addr) in print_f_owner_ex() argument
79 if (umove_or_printaddr(tcp, addr, &owner)) in print_f_owner_ex()
88 print_fcntl(struct tcb *tcp) in print_fcntl() argument
90 switch (tcp->u_arg[1]) { in print_fcntl()
93 printflags(fdflags, tcp->u_arg[2], "FD_???"); in print_fcntl()
97 tprintf(", %ld", tcp->u_arg[2]); in print_fcntl()
[all …]
Dmem.c49 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()
[all …]
Dnet.c161 print_sockaddr(struct tcb *tcp, const sockaddr_buf_t *addr, const int addrlen) in print_sockaddr() argument
284 printsock(struct tcb *tcp, long addr, int addrlen) in printsock() argument
297 if (umoven_or_printaddr(tcp, addr, addrlen, addrbuf.pad)) in printsock()
301 print_sockaddr(tcp, &addrbuf, addrlen); in printsock()
324 print_scm_rights(struct tcb *tcp, const void *cmsg_data, in print_scm_rights() argument
340 printfd(tcp, *fds++); in print_scm_rights()
346 print_scm_creds(struct tcb *tcp, const void *cmsg_data, in print_scm_creds() argument
359 print_scm_security(struct tcb *tcp, const void *cmsg_data, in print_scm_security() argument
370 print_cmsg_ip_pktinfo(struct tcb *tcp, const void *cmsg_data, in print_cmsg_ip_pktinfo() argument
385 print_cmsg_ip_ttl(struct tcb *tcp, const void *cmsg_data, in print_cmsg_ip_ttl() argument
[all …]
Dsignal.c227 print_sigset_addr_len(struct tcb *tcp, long addr, long len) in print_sigset_addr_len() argument
243 if (umoven_or_printaddr(tcp, addr, len, mask)) in print_sigset_addr_len()
250 if (entering(tcp)) { in SYS_FUNC()
251 tprintsigmask_val("", tcp->u_arg[0]); in SYS_FUNC()
253 else if (!syserror(tcp)) { in SYS_FUNC()
254 tcp->auxstr = sprintsigmask_val("old mask ", tcp->u_rval); in SYS_FUNC()
290 decode_old_sigaction(struct tcb *tcp, long addr) in decode_old_sigaction() argument
298 if (umove_or_printaddr(tcp, addr, &sa32)) in decode_old_sigaction()
310 if (umove_or_printaddr(tcp, addr, &sa)) in decode_old_sigaction()
347 if (entering(tcp)) { in SYS_FUNC()
[all …]
Dsyscall.c329 update_personality(struct tcb *tcp, unsigned int personality) in update_personality() argument
335 if (personality == tcp->currpers) in update_personality()
337 tcp->currpers = personality; in update_personality()
355 tcp->pid, names[personality]); in update_personality()
567 decode_socket_subcall(struct tcb *tcp) in decode_socket_subcall() argument
572 if (tcp->u_arg[0] < 0 || tcp->u_arg[0] >= SYS_socket_nsubcalls) in decode_socket_subcall()
575 tcp->scno = SYS_socket_subcall + tcp->u_arg[0]; in decode_socket_subcall()
576 tcp->qual_flg = qual_flags[tcp->scno]; in decode_socket_subcall()
577 tcp->s_ent = &sysent[tcp->scno]; in decode_socket_subcall()
578 addr = tcp->u_arg[1]; in decode_socket_subcall()
[all …]
Dmq.c34 printpath(tcp, tcp->u_arg[0]); in SYS_FUNC()
37 tprint_open_modes(tcp->u_arg[1]); in SYS_FUNC()
38 if (tcp->u_arg[1] & O_CREAT) { in SYS_FUNC()
40 tprintf(", %#lo, ", tcp->u_arg[2]); in SYS_FUNC()
41 printmqattr(tcp, tcp->u_arg[3]); in SYS_FUNC()
48 tprintf("%ld, ", tcp->u_arg[0]); in SYS_FUNC()
49 printstr(tcp, tcp->u_arg[1], tcp->u_arg[2]); in SYS_FUNC()
50 tprintf(", %lu, %ld, ", tcp->u_arg[2], tcp->u_arg[3]); in SYS_FUNC()
51 print_timespec(tcp, tcp->u_arg[4]); in SYS_FUNC()
57 if (entering(tcp)) in SYS_FUNC()
[all …]
Dpathtrace.c57 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()
[all …]
Dipc_msg.c47 if (tcp->u_arg[0]) in SYS_FUNC()
48 tprintf("%#lx, ", tcp->u_arg[0]); in SYS_FUNC()
51 if (printflags(resource_flags, tcp->u_arg[1] & ~0777, NULL) != 0) in SYS_FUNC()
53 tprintf("%#lo", tcp->u_arg[1] & 0777); in SYS_FUNC()
58 tprint_msgsnd(struct tcb *tcp, const long addr, const unsigned long count, in tprint_msgsnd() argument
61 tprint_msgbuf(tcp, addr, count); in tprint_msgsnd()
67 tprintf("%d, ", (int) tcp->u_arg[0]); in SYS_FUNC()
68 if (indirect_ipccall(tcp)) { in SYS_FUNC()
69 tprint_msgsnd(tcp, tcp->u_arg[3], tcp->u_arg[1], in SYS_FUNC()
70 tcp->u_arg[2]); in SYS_FUNC()
[all …]
Dfile.c220 printstat(struct tcb *tcp, long addr) in printstat() argument
228 if (!umove_or_printaddr(tcp, addr, &statbuf)) in printstat()
229 do_printstat32(tcp, &statbuf); in printstat()
238 if (!umove_or_printaddr(tcp, addr, &statbuf)) in printstat()
239 do_printstat_sol(tcp, &statbuf); in printstat()
244 if (!umove_or_printaddr(tcp, addr, &statbuf)) in printstat()
245 do_printstat(tcp, &statbuf); in printstat()
250 if (entering(tcp)) { in SYS_FUNC()
251 printpath(tcp, tcp->u_arg[0]); in SYS_FUNC()
254 printstat(tcp, tcp->u_arg[1]); in SYS_FUNC()
[all …]
Dipc_sem.c56 tprint_sembuf_array(struct tcb *tcp, const long addr, const unsigned long count) in tprint_sembuf_array() argument
62 if (abbrev(tcp)) in tprint_sembuf_array()
69 else if (!umove_or_printaddr(tcp, addr, &sb)) { in tprint_sembuf_array()
77 if (umove_or_printaddr(tcp, addr + i * sizeof(sb), &sb)) in tprint_sembuf_array()
96 tprintf("%lu, ", tcp->u_arg[0]); in SYS_FUNC()
97 if (indirect_ipccall(tcp)) { in SYS_FUNC()
98 tprint_sembuf_array(tcp, tcp->u_arg[3], tcp->u_arg[1]); in SYS_FUNC()
100 tprint_sembuf_array(tcp, tcp->u_arg[1], tcp->u_arg[2]); in SYS_FUNC()
107 tprintf("%lu, ", tcp->u_arg[0]); in SYS_FUNC()
108 if (indirect_ipccall(tcp)) { in SYS_FUNC()
[all …]
Dsched.c39 if (entering(tcp)) { in SYS_FUNC()
40 tprintf("%d", (int) tcp->u_arg[0]); in SYS_FUNC()
41 } else if (!syserror(tcp)) { in SYS_FUNC()
42 tcp->auxstr = xlookup(schedulers, tcp->u_rval); in SYS_FUNC()
43 if (tcp->auxstr != NULL) in SYS_FUNC()
51 tprintf("%d, ", (int) tcp->u_arg[0]); in SYS_FUNC()
52 printxval(schedulers, tcp->u_arg[1], "SCHED_???"); in SYS_FUNC()
54 printnum_int(tcp, tcp->u_arg[2], "%d"); in SYS_FUNC()
61 if (entering(tcp)) in SYS_FUNC()
62 tprintf("%d, ", (int) tcp->u_arg[0]); in SYS_FUNC()
[all …]
Dsendfile.c32 if (entering(tcp)) { in SYS_FUNC()
33 printfd(tcp, tcp->u_arg[0]); in SYS_FUNC()
35 printfd(tcp, tcp->u_arg[1]); in SYS_FUNC()
37 if (!printnum_int64(tcp, tcp->u_arg[2], "%" PRIu64)) { in SYS_FUNC()
38 tprintf(", %lu", tcp->u_arg[3]); in SYS_FUNC()
42 if (!syserror(tcp) && tcp->u_rval) { in SYS_FUNC()
44 printnum_int64(tcp, tcp->u_arg[2], "%" PRIu64); in SYS_FUNC()
46 tprintf(", %lu", tcp->u_arg[3]); in SYS_FUNC()
54 if (entering(tcp)) { in SYS_FUNC()
55 printfd(tcp, tcp->u_arg[0]); in SYS_FUNC()
[all …]
Dexecve.c37 printargv(struct tcb *tcp, long addr) in printargv() argument
49 for (sep = ""; !abbrev(tcp) || n < max_strlen / 2; sep = ", ", ++n) { in printargv()
50 if (umoven_or_printaddr(tcp, addr, wordsize, cp.data)) in printargv()
57 printstr(tcp, cp.p64, -1); in printargv()
65 printargc(const char *fmt, struct tcb *tcp, long addr) in printargc() argument
70 for (count = 0; !umoven(tcp, addr, current_wordsize, &cp) && cp; count++) { in printargc()
77 decode_execve(struct tcb *tcp, const unsigned int index) in decode_execve() argument
79 printpath(tcp, tcp->u_arg[index + 0]); in decode_execve()
82 if (!tcp->u_arg[index + 1] || !verbose(tcp)) in decode_execve()
83 printaddr(tcp->u_arg[index + 1]); in decode_execve()
[all …]
Dstatfs.c56 printstatfs(struct tcb *tcp, const long addr) in printstatfs() argument
60 if (umove_or_printaddr(tcp, addr, &statbuf)) in printstatfs()
84 if (entering(tcp)) { in SYS_FUNC()
85 printpath(tcp, tcp->u_arg[0]); in SYS_FUNC()
88 printstatfs(tcp, tcp->u_arg[1]); in SYS_FUNC()
95 if (entering(tcp)) { in SYS_FUNC()
96 printfd(tcp, tcp->u_arg[0]); in SYS_FUNC()
99 printstatfs(tcp, tcp->u_arg[1]); in SYS_FUNC()
106 printstatfs64(struct tcb *tcp, long addr) in printstatfs64() argument
110 if (umove_or_printaddr(tcp, addr, &statbuf)) in printstatfs64()
[all …]
Dunwind.c89 static void delete_mmap_cache(struct tcb *tcp, const char *caller);
104 unwind_tcb_init(struct tcb *tcp) in unwind_tcb_init() argument
106 tcp->libunwind_ui = _UPT_create(tcp->pid); in unwind_tcb_init()
107 if (!tcp->libunwind_ui) in unwind_tcb_init()
110 tcp->queue = xmalloc(sizeof(*tcp->queue)); in unwind_tcb_init()
111 tcp->queue->head = NULL; in unwind_tcb_init()
112 tcp->queue->tail = NULL; in unwind_tcb_init()
116 unwind_tcb_fin(struct tcb *tcp) in unwind_tcb_fin() argument
118 queue_print(tcp->queue); in unwind_tcb_fin()
119 free(tcp->queue); in unwind_tcb_fin()
[all …]
Devdev.c65 ff_effect_ioctl(struct tcb *tcp, long arg) in ff_effect_ioctl() argument
69 if (!verbose(tcp) || umove(tcp, arg, &ffe) < 0) in ff_effect_ioctl()
77 if (!abbrev(tcp)) { in ff_effect_ioctl()
136 abs_ioctl(struct tcb *tcp, long arg) in abs_ioctl() argument
140 if (!verbose(tcp) || umove(tcp, arg, &absinfo) < 0) in abs_ioctl()
145 if (!abbrev(tcp)) { in abs_ioctl()
160 keycode_ioctl(struct tcb *tcp, long arg) in keycode_ioctl() argument
169 if (!verbose(tcp) || umove(tcp, arg, &keycode) < 0) in keycode_ioctl()
180 keycode_V2_ioctl(struct tcb *tcp, long arg) in keycode_V2_ioctl() argument
189 if (!verbose(tcp) || umove(tcp, arg, &ike) < 0) in keycode_V2_ioctl()
[all …]
Dprocess_vm.c33 if (entering(tcp)) { in SYS_FUNC()
35 tprintf("%ld, ", tcp->u_arg[0]); in SYS_FUNC()
38 if (syserror(tcp)) { in SYS_FUNC()
39 printaddr(tcp->u_arg[1]); in SYS_FUNC()
41 tprint_iov(tcp, tcp->u_arg[2], tcp->u_arg[1], 1); in SYS_FUNC()
44 tprintf(", %lu, ", tcp->u_arg[2]); in SYS_FUNC()
46 if (syserror(tcp)) { in SYS_FUNC()
47 printaddr(tcp->u_arg[3]); in SYS_FUNC()
49 tprint_iov(tcp, tcp->u_arg[4], tcp->u_arg[3], 0); in SYS_FUNC()
53 tprintf(", %lu, %lu", tcp->u_arg[4], tcp->u_arg[5]); in SYS_FUNC()
[all …]
Dresource.c52 print_rlimit64(struct tcb *tcp, unsigned long addr) in print_rlimit64() argument
59 if (!umove_or_printaddr(tcp, addr, &rlim)) { in print_rlimit64()
83 print_rlimit32(struct tcb *tcp, unsigned long addr) in print_rlimit32() argument
90 if (!umove_or_printaddr(tcp, addr, &rlim)) { in print_rlimit32()
97 decode_rlimit(struct tcb *tcp, unsigned long addr) in decode_rlimit() argument
110 print_rlimit32(tcp, addr); in decode_rlimit()
112 print_rlimit64(tcp, addr); in decode_rlimit()
123 if (entering(tcp)) { in SYS_FUNC()
124 printxval(resources, tcp->u_arg[0], "RLIMIT_???"); in SYS_FUNC()
128 decode_rlimit(tcp, tcp->u_arg[1]); in SYS_FUNC()
[all …]
Depoll.c38 tprintf("%d", (int) tcp->u_arg[0]); in SYS_FUNC()
47 printflags(epollflags, tcp->u_arg[0], "EPOLL_???"); in SYS_FUNC()
73 printfd(tcp, tcp->u_arg[0]); in SYS_FUNC()
75 printxval(epollctls, tcp->u_arg[1], "EPOLL_CTL_???"); in SYS_FUNC()
77 printfd(tcp, tcp->u_arg[2]); in SYS_FUNC()
80 if (EPOLL_CTL_DEL == tcp->u_arg[1]) in SYS_FUNC()
81 printaddr(tcp->u_arg[3]); in SYS_FUNC()
82 else if (!umove_or_printaddr(tcp, tcp->u_arg[3], &ev)) in SYS_FUNC()
85 printaddr(tcp->u_arg[3]); in SYS_FUNC()
92 print_epoll_event_array(struct tcb *tcp, const long addr, const long len) in print_epoll_event_array() argument
[all …]
/external/strace/linux/mips/
Dget_syscall_args.c3 get_syscall_args(struct tcb *tcp) in get_syscall_args() argument
6 tcp->u_arg[0] = mips_REG_A0; in get_syscall_args()
7 tcp->u_arg[1] = mips_REG_A1; in get_syscall_args()
8 tcp->u_arg[2] = mips_REG_A2; in get_syscall_args()
9 tcp->u_arg[3] = mips_REG_A3; in get_syscall_args()
10 tcp->u_arg[4] = mips_REG_A4; in get_syscall_args()
11 tcp->u_arg[5] = mips_REG_A5; in get_syscall_args()
13 tcp->u_arg[0] = tcp->ext_arg[0] = mips_REG_A0; in get_syscall_args()
14 tcp->u_arg[1] = tcp->ext_arg[1] = mips_REG_A1; in get_syscall_args()
15 tcp->u_arg[2] = tcp->ext_arg[2] = mips_REG_A2; in get_syscall_args()
[all …]

12345678910>>...22