]> granicus.if.org Git - procps-ng/commitdiff
library: correct sources for IO accounting, <pids> api
authorJim Warner <james.warner@comcast.net>
Sun, 20 Jun 2021 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@dropbear.xyz>
Wed, 23 Jun 2021 08:23:49 +0000 (18:23 +1000)
This patch just brings 'PIDS_IO' source into alignment
with the names being used in that /proc/<pid>/io file.

[ i had my chance to fix them in a whitespace change ]
[ made in the patch referenced below, but i blew it! ]

Reference(s):
commit 2dcbe71f3b8e3586acab0221b2e4c55d10cf8f76

Signed-off-by: Jim Warner <james.warner@comcast.net>
proc/pids.h

index 10ba9f5186b47f8dbe0423c299efcc91fc235e66..c626b080665f3066afc46d36359b21b1d9128f4e 100644 (file)
@@ -78,13 +78,13 @@ enum pids_item {
     PIDS_ID_TGID,           //    s_int        status: Tgid
     PIDS_ID_TID,            //    s_int        from /proc/<pid>/task/<tid>
     PIDS_ID_TPGID,          //    s_int        stat: tty_pgrp
-    PIDS_IO_READ_BYTES,     //   ul_int        io: bytes read
-    PIDS_IO_READ_CHARS,     //   ul_int        io: characters read
-    PIDS_IO_READ_OPS,       //   ul_int        io: read operations
-    PIDS_IO_WRITE_BYTES,    //   ul_int        io: bytes written
-    PIDS_IO_WRITE_CBYTES,   //   ul_int        io: cancelled write bytes
-    PIDS_IO_WRITE_CHARS,    //   ul_int        io: characters written
-    PIDS_IO_WRITE_OPS,      //   ul_int        io: write operations
+    PIDS_IO_READ_BYTES,     //   ul_int        io: read_bytes
+    PIDS_IO_READ_CHARS,     //   ul_int        io: rchar
+    PIDS_IO_READ_OPS,       //   ul_int        io: syscr
+    PIDS_IO_WRITE_BYTES,    //   ul_int        io: write_bytes
+    PIDS_IO_WRITE_CBYTES,   //   ul_int        io: cancelled_write_bytes
+    PIDS_IO_WRITE_CHARS,    //   ul_int        io: wchar
+    PIDS_IO_WRITE_OPS,      //   ul_int        io: syscw
     PIDS_LXCNAME,           //      str        derived from CGROUP 'lxc.payload'
     PIDS_MEM_CODE,          //   ul_int        derived from MEM_CODE_PGS, as KiB
     PIDS_MEM_CODE_PGS,      //   ul_int        statm: trs