From: Nir Soffer Date: Wed, 29 Sep 2021 10:14:31 +0000 (-0400) Subject: Fix traceaio with IO_CMD_{PREAD,PWRITE} X-Git-Tag: release-4.6~56 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=357968f8b57333ac423d2b589a7fbc30523d0836;p=systemtap.git Fix traceaio with IO_CMD_{PREAD,PWRITE} IOCB_CMD_PREADV was used twice, skipping logging of iovecs for IOCB_CMD_PWRITEV. Signed-off-by: Nir Soffer --- diff --git a/testsuite/systemtap.examples/io/traceaio.stp b/testsuite/systemtap.examples/io/traceaio.stp index b1d220773..7904646a6 100755 --- a/testsuite/systemtap.examples/io/traceaio.stp +++ b/testsuite/systemtap.examples/io/traceaio.stp @@ -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")[j] base = user_uint64(&@cast(iovecp, "iovec", "kernel")->iov_base)