/external/strace/ |
D | io.c | 50 sys_read(struct tcb *tcp) in sys_read() argument 52 if (entering(tcp)) { in sys_read() 53 printfd(tcp, tcp->u_arg[0]); in sys_read() 56 if (syserror(tcp)) in sys_read() 57 tprintf("%#lx", tcp->u_arg[1]); in sys_read() 59 printstr(tcp, tcp->u_arg[1], tcp->u_rval); in sys_read() 60 tprintf(", %lu", tcp->u_arg[2]); in sys_read() 66 sys_write(struct tcb *tcp) in sys_write() argument 68 if (entering(tcp)) { in sys_write() 69 printfd(tcp, tcp->u_arg[0]); in sys_write() [all …]
|
D | file.c | 388 print_dirfd(struct tcb *tcp, int fd) in print_dirfd() argument 394 printfd(tcp, fd); in print_dirfd() 459 decode_open(struct tcb *tcp, int offset) in decode_open() argument 461 if (entering(tcp)) { in decode_open() 462 printpath(tcp, tcp->u_arg[offset]); in decode_open() 465 tprint_open_modes(tcp->u_arg[offset + 1]); in decode_open() 466 if (tcp->u_arg[offset + 1] & O_CREAT) { in decode_open() 468 tprintf(", %#lo", tcp->u_arg[offset + 2]); in decode_open() 475 sys_open(struct tcb *tcp) in sys_open() argument 477 return decode_open(tcp, 0); in sys_open() [all …]
|
D | ipc.c | 76 extern void printsigevent(struct tcb *tcp, long arg); 167 int sys_msgget(tcp) in sys_msgget() argument 168 struct tcb *tcp; in sys_msgget() 170 if (entering(tcp)) { 171 if (tcp->u_arg[0]) 172 tprintf("%#lx", tcp->u_arg[0]); 176 if (printflags(resource_flags, tcp->u_arg[1] & ~0777, NULL) != 0) 178 tprintf("%#lo", tcp->u_arg[1] & 0777); 192 indirect_ipccall(tcp) in indirect_ipccall() argument 193 struct tcb *tcp; in indirect_ipccall() [all …]
|
D | time.c | 58 tprint_timeval32(struct tcb *tcp, const struct timeval32 *tv) in tprint_timeval32() argument 64 tprint_timeval(struct tcb *tcp, const struct timeval *tv) in tprint_timeval() argument 71 printtv_bitness(struct tcb *tcp, long addr, enum bitness_t bitness, int special) in printtv_bitness() argument 75 else if (!verbose(tcp)) in printtv_bitness() 88 if ((rc = umove(tcp, addr, &tv)) >= 0) { in printtv_bitness() 96 tprint_timeval32(tcp, &tv); in printtv_bitness() 101 if ((rc = umove(tcp, addr, &tv)) >= 0) { in printtv_bitness() 109 tprint_timeval(tcp, &tv); in printtv_bitness() 118 sprinttv(struct tcb *tcp, long addr, enum bitness_t bitness, char *buf) in sprinttv() argument 122 else if (!verbose(tcp)) in sprinttv() [all …]
|
D | syscall.c | 474 dumpio(struct tcb *tcp) in dumpio() argument 476 if (syserror(tcp)) in dumpio() 478 if (tcp->u_arg[0] < 0 || tcp->u_arg[0] >= MAX_QUALS) in dumpio() 480 if (tcp->scno < 0 || tcp->scno >= nsyscalls) in dumpio() 482 if (sysent[tcp->scno].sys_func == printargs) in dumpio() 484 if (qual_flags[tcp->u_arg[0]] & QUAL_READ) { in dumpio() 485 if (sysent[tcp->scno].sys_func == sys_read || in dumpio() 486 sysent[tcp->scno].sys_func == sys_pread || in dumpio() 487 sysent[tcp->scno].sys_func == sys_pread64 || in dumpio() 488 sysent[tcp->scno].sys_func == sys_recv || in dumpio() [all …]
|
D | mem.c | 60 sys_brk(tcp) in sys_brk() argument 61 struct tcb *tcp; in sys_brk() 63 if (entering(tcp)) { 64 tprintf("%#lx", tcp->u_arg[0]); 75 sys_sbrk(tcp) in sys_sbrk() argument 76 struct tcb *tcp; in sys_sbrk() 78 if (entering(tcp)) { 79 tprintf("%lu", tcp->u_arg[0]); 236 print_mmap(struct tcb *tcp, long *u_arg, long long offset) in print_mmap() argument 238 if (entering(tcp)) { in print_mmap() [all …]
|
D | process.c | 284 sys_prctl(tcp) in sys_prctl() argument 285 struct tcb *tcp; in sys_prctl() 289 if (entering(tcp)) { 290 printxval(prctl_options, tcp->u_arg[0], "PR_???"); 291 switch (tcp->u_arg[0]) { 298 tprintf(", %lu", tcp->u_arg[1]); 307 tprintf(", %lu", tcp->u_arg[1]); 316 tprintf(", %s", unalignctl_string(tcp->u_arg[1])); 321 tprintf(", %#lx", tcp->u_arg[1]); 326 tprintf(", %lu", tcp->u_arg[1]); [all …]
|
D | signal.c | 299 copy_sigset_len(tcp, addr, s, len) in copy_sigset_len() argument 300 struct tcb *tcp; in copy_sigset_len() 308 if (umoven(tcp, addr, len, (char *)s) < 0) 315 #define copy_sigset(tcp, addr, s) copy_sigset_len(tcp, addr, s, sizeof(long)) argument 317 #define copy_sigset(tcp, addr, s) copy_sigset_len(tcp, addr, s, sizeof(sigset_t)) argument 402 print_sigset(struct tcb *tcp, long addr, int rt) in print_sigset() argument 408 else if (copy_sigset(tcp, addr, &ss) < 0) in print_sigset() 861 sigishandled(tcp, sig) in sigishandled() argument 862 struct tcb *tcp; in sigishandled() 904 sprintf(sname, "/proc/%d/status", tcp->pid); [all …]
|
D | system.c | 128 sys_mount(struct tcb *tcp) in sys_mount() argument 130 if (entering(tcp)) { in sys_mount() 132 unsigned long flags = tcp->u_arg[3]; in sys_mount() 143 printpath(tcp, tcp->u_arg[0]); in sys_mount() 146 printpath(tcp, tcp->u_arg[1]); in sys_mount() 149 if (ignore_type && tcp->u_arg[2]) in sys_mount() 150 tprintf("%#lx", tcp->u_arg[2]); in sys_mount() 152 printstr(tcp, tcp->u_arg[2], -1); in sys_mount() 155 printflags(mount_flags, tcp->u_arg[3], "MS_???"); in sys_mount() 158 if (ignore_data && tcp->u_arg[4]) in sys_mount() [all …]
|
D | desc.c | 235 printflock(struct tcb *tcp, long addr, int getlk) in printflock() argument 250 if (umove(tcp, addr, &fl32) < 0) { in printflock() 268 if (umove(tcp, addr, &fl) < 0) { in printflock() 288 printflock64(struct tcb *tcp, long addr, int getlk) in printflock64() argument 292 if (umove(tcp, addr, &fl) < 0) { in printflock64() 309 sys_fcntl(struct tcb *tcp) in sys_fcntl() argument 311 if (entering(tcp)) { in sys_fcntl() 312 printfd(tcp, tcp->u_arg[0]); in sys_fcntl() 314 printxval(fcntlcmds, tcp->u_arg[1], "F_???"); in sys_fcntl() 315 switch (tcp->u_arg[1]) { in sys_fcntl() [all …]
|
D | net.c | 1200 printsock(struct tcb *tcp, long addr, int addrlen) in printsock() argument 1226 if (!verbose(tcp)) { in printsock() 1235 if (umoven(tcp, addr, addrlen, addrbuf.pad) < 0) { in printsock() 1251 printpathn(tcp, addr + 2, strlen(addrbuf.sau.sun_path)); in printsock() 1254 printpathn(tcp, addr + 3, strlen(addrbuf.sau.sun_path + 1)); in printsock() 1335 printstr(tcp, (long) &((struct sockaddr *) addr)->sa_data, in printsock() 1354 printcmsghdr(struct tcb *tcp, unsigned long addr, unsigned long len) in printcmsghdr() argument 1358 if (cmsg == NULL || umoven(tcp, addr, len, (char *) cmsg) < 0) { in printcmsghdr() 1405 do_msghdr(struct tcb *tcp, struct msghdr *msg) in do_msghdr() argument 1408 printsock(tcp, (long)msg->msg_name, msg->msg_namelen); in do_msghdr() [all …]
|
D | resource.c | 127 print_rlimit32(struct tcb *tcp) in print_rlimit32() argument 134 if (umove(tcp, tcp->u_arg[1], &rlim) < 0) in print_rlimit32() 148 sys_getrlimit(struct tcb *tcp) in sys_getrlimit() argument 152 if (entering(tcp)) { in sys_getrlimit() 153 printxval(resources, tcp->u_arg[0], "RLIMIT_???"); in sys_getrlimit() 157 if (syserror(tcp) || !verbose(tcp)) in sys_getrlimit() 158 tprintf("%#lx", tcp->u_arg[1]); in sys_getrlimit() 161 print_rlimit32(tcp); in sys_getrlimit() 163 else if (umove(tcp, tcp->u_arg[1], &rlim) < 0) in sys_getrlimit() 174 sys_setrlimit(struct tcb *tcp) in sys_setrlimit() argument [all …]
|
D | bjm.c | 103 sys_query_module(struct tcb *tcp) in sys_query_module() argument 105 if (entering(tcp)) { in sys_query_module() 106 printstr(tcp, tcp->u_arg[0], -1); in sys_query_module() 108 printxval(which, tcp->u_arg[1], "QM_???"); in sys_query_module() 113 if (!verbose(tcp) || syserror(tcp) || in sys_query_module() 114 umove(tcp, tcp->u_arg[4], &ret) < 0) { in sys_query_module() 115 tprintf("%#lx, %lu, %#lx", tcp->u_arg[2], in sys_query_module() 116 tcp->u_arg[3], tcp->u_arg[4]); in sys_query_module() 117 } else if (tcp->u_arg[1]==QM_INFO) { in sys_query_module() 119 if (umove(tcp, tcp->u_arg[2], &mi) < 0) { in sys_query_module() [all …]
|
D | strace.c | 124 static int detach(struct tcb *tcp, int sig); 359 newoutf(struct tcb *tcp) in newoutf() argument 365 sprintf(name, "%.512s.%u", outfname, tcp->pid); in newoutf() 368 tcp->outf = fp; in newoutf() 377 struct tcb *tcp; in startup_attach() local 406 tcp = tcbtab[tcbi]; in startup_attach() 407 if (!(tcp->flags & TCB_INUSE) || !(tcp->flags & TCB_ATTACHED)) in startup_attach() 410 if (tcp->flags & TCB_CLONE_THREAD) in startup_attach() 414 tcp->outf = outf; in startup_attach() 415 if (newoutf(tcp) < 0) in startup_attach() [all …]
|
D | stream.c | 80 printstrbuf(tcp, sbp, getting) in printstrbuf() argument 81 struct tcb *tcp; in printstrbuf() 92 printstr(tcp, (unsigned long) sbp->buf, sbp->len); 98 printstrbufarg(tcp, arg, getting) in printstrbufarg() argument 99 struct tcb *tcp; in printstrbufarg() 107 else if (umove(tcp, arg, &buf) < 0) 110 printstrbuf(tcp, &buf, getting); 115 sys_putmsg(tcp) in sys_putmsg() argument 116 struct tcb *tcp; in sys_putmsg() 120 if (entering(tcp)) { [all …]
|
D | util.c | 190 do_ptrace(int request, struct tcb *tcp, void *addr, void *data) in do_ptrace() argument 195 l = ptrace(request, tcp->pid, addr, (long) data); in do_ptrace() 199 tcp->ptrace_errno = ESRCH; in do_ptrace() 211 ptrace_restart(int op, struct tcb *tcp, int sig) in ptrace_restart() argument 217 ptrace(op, tcp->pid, (void *) 1, (long) sig); in ptrace_restart() 222 tcp->ptrace_errno = err; in ptrace_restart() 253 printllval(struct tcb *tcp, const char *format, int llarg) in printllval() argument 263 tprintf(format, tcp->u_arg[llarg]); in printllval() 270 tprintf(format, LONG_LONG(tcp->u_arg[llarg], tcp->u_arg[llarg + 1])); in printllval() 274 tprintf(format, tcp->u_arg[llarg]); in printllval() [all …]
|
D | block.c | 92 print_blkpg_req(struct tcb *tcp, struct blkpg_ioctl_arg *blkpg) in print_blkpg_req() argument 102 if (umove(tcp, (long) blkpg->data, &p) < 0) in print_blkpg_req() 113 block_ioctl(struct tcb *tcp, long code, long arg) in block_ioctl() argument 119 if (entering(tcp)) in block_ioctl() 126 if (entering(tcp)) { in block_ioctl() 128 if (umove(tcp, arg, &val) < 0) in block_ioctl() 137 if (exiting(tcp)) { in block_ioctl() 139 if (syserror(tcp) || umove(tcp, arg, &val) < 0) in block_ioctl() 151 if (exiting(tcp)) { in block_ioctl() 153 if (syserror(tcp) || umove(tcp, arg, &val) < 0) in block_ioctl() [all …]
|
D | scsi.c | 16 print_sg_io_buffer(struct tcb *tcp, unsigned char *addr, int len) in print_sg_io_buffer() argument 26 umoven(tcp, (unsigned long) addr, allocated, (char *) buf) < 0) { in print_sg_io_buffer() 40 print_sg_io_req(struct tcb *tcp, struct sg_io_hdr *sg_io) in print_sg_io_req() argument 46 print_sg_io_buffer(tcp, sg_io->cmdp, sg_io->cmd_len); in print_sg_io_req() 56 printstr(tcp, (unsigned long) sg_io->dxferp, in print_sg_io_req() 63 print_sg_io_res(struct tcb *tcp, struct sg_io_hdr *sg_io) in print_sg_io_res() argument 68 printstr(tcp, (unsigned long) sg_io->dxferp, in print_sg_io_res() 75 print_sg_io_buffer(tcp, sg_io->sbp, sg_io->sb_len_wr); in print_sg_io_res() 84 scsi_ioctl(struct tcb *tcp, long code, long arg) in scsi_ioctl() argument 88 if (entering(tcp)) { in scsi_ioctl() [all …]
|
D | quota.c | 331 decode_cmd_data(struct tcb *tcp, u_int32_t cmd, unsigned long data) in decode_cmd_data() argument 340 if (cmd == Q_GETQUOTA && syserror(tcp)) in decode_cmd_data() 345 if (umove(tcp, data, &dq) < 0) in decode_cmd_data() 356 if (!abbrev(tcp)) in decode_cmd_data() 373 if (cmd == Q_V1_GETQUOTA && syserror(tcp)) in decode_cmd_data() 378 if (umove(tcp, data, &dq) < 0) in decode_cmd_data() 398 if (cmd == Q_V2_GETQUOTA && syserror(tcp)) in decode_cmd_data() 403 if (umove(tcp, data, &dq) < 0) in decode_cmd_data() 423 if (cmd == Q_XGETQUOTA && syserror(tcp)) in decode_cmd_data() 428 if (umove(tcp, data, &dq) < 0) in decode_cmd_data() [all …]
|
D | sock.c | 71 print_addr(tcp, addr, ifr) in print_addr() argument 72 struct tcb *tcp; in print_addr() 81 printstr(tcp, addr, sizeof(ifr->ifr_addr.sa_data)); 85 sock_ioctl(struct tcb *tcp, long code, long arg) in sock_ioctl() argument 92 if (entering(tcp)) { in sock_ioctl() 94 if (umove(tcp, tcp->u_arg[2], &ifc) >= 0 in sock_ioctl() 131 printnum(tcp, arg, ", %#d"); in sock_ioctl() 159 if (umove(tcp, tcp->u_arg[2], &ifr) < 0) in sock_ioctl() 160 tprintf(", %#lx", tcp->u_arg[2]); in sock_ioctl() 161 else if (syserror(tcp)) { in sock_ioctl() [all …]
|
D | proc.c | 90 proc_ioctl(tcp, code, arg) in proc_ioctl() argument 91 struct tcb *tcp; in proc_ioctl() 98 if (entering(tcp)) 107 else if (syserror(tcp)) 109 else if (umove(tcp, arg, &status) < 0) 140 else if (umove(tcp, arg, &run) < 0) 151 if (umove(tcp, arg, &val) < 0) 163 if (umove(tcp, arg, &val) < 0) 206 proc_ioctl(tcp, code, arg) in proc_ioctl() argument 207 struct tcb *tcp; in proc_ioctl() [all …]
|
D | term.c | 181 int term_ioctl(struct tcb *tcp, long code, long arg) in term_ioctl() argument 198 if (entering(tcp)) in term_ioctl() 207 if (syserror(tcp)) in term_ioctl() 212 if (!verbose(tcp) || umove(tcp, arg, &tios) < 0) in term_ioctl() 214 if (abbrev(tcp)) { in term_ioctl() 252 if (syserror(tcp)) in term_ioctl() 257 if (!verbose(tcp) || umove(tcp, arg, &tio) < 0) in term_ioctl() 259 if (abbrev(tcp)) { in term_ioctl() 294 if (syserror(tcp)) in term_ioctl() 297 if (!verbose(tcp) || umove(tcp, arg, &ws) < 0) in term_ioctl() [all …]
|
/external/android-clat/ |
D | dump.c | 162 void dump_tcp_generic(const struct tcphdr *tcp, const char *options, size_t options_size, uint32_t … in dump_tcp_generic() argument 165 temp_checksum = ip_checksum_add(temp_checksum, tcp, sizeof(struct tcphdr)); in dump_tcp_generic() 173 printf("source = %x\n",ntohs(tcp->source)); in dump_tcp_generic() 174 printf("dest = %x\n",ntohs(tcp->dest)); in dump_tcp_generic() 175 printf("seq = %x\n",ntohl(tcp->seq)); in dump_tcp_generic() 176 printf("ack = %x\n",ntohl(tcp->ack_seq)); in dump_tcp_generic() 177 printf("d_off = %x\n",tcp->doff); in dump_tcp_generic() 178 printf("res1 = %x\n",tcp->res1); in dump_tcp_generic() 180 printf("CWR = %x\n",tcp->cwr); in dump_tcp_generic() 181 printf("ECE = %x\n",tcp->ece); in dump_tcp_generic() [all …]
|
/external/iptables/tests/ |
D | options-ipv4.rules | 16 -A FORWARD -p tcp -j ECN --ecn-tcp-remove 17 -A FORWARD -j LOG --log-prefix "hi" --log-tcp-sequence --log-tcp-options --log-ip-options --log-uid… 32 -A PREROUTING -i dummy0 -p tcp -j REDIRECT --to-ports 1-2 --random 33 -A POSTROUTING -o dummy0 -p tcp -j MASQUERADE --to-ports 1-2 --random 34 -A POSTROUTING -o dummy0 -p tcp -j NETMAP --to 1.0.0.0/8 35 -A POSTROUTING -o dummy0 -p tcp -j SNAT --to-source 1.2.3.4-1.2.3.5 --random --persistent 44 -A INPUT -p tcp -m ecn --ecn-tcp-ece --ecn-tcp-cwr --ecn-ip-ect 0 45 -A INPUT -p tcp -m ecn --ecn-tcp-ece --ecn-tcp-cwr --ecn-ip-ect 1 50 -A FORWARD -p tcp -j REJECT --reject-with tcp-reset
|
D | options-most.rules | 13 -A INPUT -p tcp -m cluster --cluster-local-nodemask 0x00000001 --cluster-total-nodes 2 --cluster-ha… 15 -A INPUT -p tcp -m cluster --cluster-local-nodemask 0x00000001 --cluster-total-nodes 2 --cluster-ha… 16 -A INPUT -p tcp -m cluster --cluster-local-nodemask 0x00000001 --cluster-total-nodes 2 --cluster-ha… 17 -A INPUT -p tcp -m comment --comment foo 18 -A INPUT -p tcp -m connbytes --connbytes 1:2 --connbytes-mode packets --connbytes-dir both 19 -A INPUT -p tcp -m connlimit --connlimit-upto 1 --connlimit-mask 8 --connlimit-saddr 20 -A INPUT -p tcp -m connlimit --connlimit-above 1 --connlimit-mask 9 --connlimit-daddr 21 -A INPUT -p tcp -m connmark --mark 0x99 22 -A INPUT -p tcp -m conntrack --ctstate INVALID --ctproto 6 --ctorigsrc fe80::/64 --ctorigdst fe80::… 23 -A INPUT -p tcp -m cpu --cpu 2 [all …]
|