Home | History | Annotate | Download | only in strace

Lines Matching full:sg_io

40 print_sg_io_req(struct tcb *tcp, struct sg_io_hdr *sg_io)
42 tprintf("{'%c', ", sg_io->interface_id);
43 printxval(sg_io_dxfer_direction, sg_io->dxfer_direction,
45 tprintf(", cmd[%u]=[", sg_io->cmd_len);
46 print_sg_io_buffer(tcp, sg_io->cmdp, sg_io->cmd_len);
47 tprintf("], mx_sb_len=%d, ", sg_io->mx_sb_len);
48 tprintf("iovec_count=%d, ", sg_io->iovec_count);
49 tprintf("dxfer_len=%u, ", sg_io->dxfer_len);
50 tprintf("timeout=%u, ", sg_io->timeout);
51 tprintf("flags=%#x", sg_io->flags);
53 if (sg_io->dxfer_direction == SG_DXFER_TO_DEV ||
54 sg_io->dxfer_direction == SG_DXFER_TO_FROM_DEV) {
55 tprintf(", data[%u]=[", sg_io->dxfer_len);
56 printstr(tcp, (unsigned long) sg_io->dxferp,
57 sg_io->dxfer_len);
63 print_sg_io_res(struct tcb *tcp, struct sg_io_hdr *sg_io)
65 if (sg_io->dxfer_direction == SG_DXFER_FROM_DEV ||
66 sg_io->dxfer_direction == SG_DXFER_TO_FROM_DEV) {
67 tprintf(", data[%u]=[", sg_io->dxfer_len);
68 printstr(tcp, (unsigned long) sg_io->dxferp,
69 sg_io->dxfer_len);
72 tprintf(", status=%02x, ", sg_io->status);
73 tprintf("masked_status=%02x, ", sg_io->masked_status);
74 tprintf("sb[%u]=[", sg_io->sb_len_wr);
75 print_sg_io_buffer(tcp, sg_io->sbp, sg_io->sb_len_wr);
76 tprintf("], host_status=%#x, ", sg_io->host_status);
77 tprintf("driver_status=%#x, ", sg_io->driver_status);
78 tprintf("resid=%d, ", sg_io->resid);
79 tprintf("duration=%d, ", sg_io->duration);
80 tprintf("info=%#x}", sg_io->info);
87 case SG_IO:
89 struct sg_io_hdr sg_io;
91 if (umove(tcp, arg, &sg_io) < 0)
95 print_sg_io_req(tcp, &sg_io);
99 struct sg_io_hdr sg_io;
101 if (!syserror(tcp) && umove(tcp, arg, &sg_io) >= 0)
102 print_sg_io_res(tcp, &sg_io);