]> sourceware.org Git - systemtap.git/commitdiff
Fix traceaio with IO_CMD_{PREAD,PWRITE}
authorNir Soffer <nsoffer@redhat.com>
Wed, 29 Sep 2021 10:14:31 +0000 (06:14 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Wed, 29 Sep 2021 10:14:31 +0000 (06:14 -0400)
IOCB_CMD_PREADV was used twice, skipping logging of iovecs for
IOCB_CMD_PWRITEV.

Signed-off-by: Nir Soffer <nsoffer@redhat.com>
testsuite/systemtap.examples/io/traceaio.stp

index b1d220773964716440fa3bd61108ed05963a906f..7904646a639e5b94952ea145dca5521eecea0764 100755 (executable)
@@ -30,7 +30,7 @@ probe syscall.io_submit
             printf("    iocb[%4d]=%p, fd=%d, opcode=%d, offset=%d, nbytes=%d, buf=%p\n",
                    i, iocbp, fd, opcode, offset, nbytes, buf)
 
-            if (opcode == @IOCB_CMD_PREADV || opcode == @IOCB_CMD_PREADV) {
+            if (opcode == @IOCB_CMD_PREADV || opcode == @IOCB_CMD_PWRITEV) {
                 for (j = 0; j < nbytes; j++) {
                     iovecp = &@cast(buf, "iovec", "kernel<linux/uio.h>")[j]
                     base = user_uint64(&@cast(iovecp, "iovec", "kernel<linux/uio.h>")->iov_base)
This page took 0.027847 seconds and 5 git commands to generate.