public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Fix iovec logging for PWRITEV
@ 2021-09-29  9:51 Nir Soffer
  0 siblings, 0 replies; only message in thread
From: Nir Soffer @ 2021-09-29  9:51 UTC (permalink / raw)
  To: systemtap; +Cc: fche, Nir Soffer

In commit 9c1f3884e43c7939c069995774e4db1163def429

    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 <nsoffer@redhat.com>
---
 testsuite/systemtap.examples/io/traceaio.stp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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<linux/uio.h>")[j]
                     base = user_uint64(&@cast(iovecp, "iovec", "kernel<linux/uio.h>")->iov_base)
-- 
2.31.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-29  9:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-29  9:51 [PATCH] Fix iovec logging for PWRITEV Nir Soffer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).