~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/task_io_accounting.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/linux/task_io_accounting.h (Architecture sparc) and /include/linux/task_io_accounting.h (Architecture ppc)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 /* SPDX-License-Identifier: GPL-2.0 */
  2 /*                                                  2 /*
  3  * task_io_accounting: a structure which is us      3  * task_io_accounting: a structure which is used for recording a single task's
  4  * IO statistics.                                   4  * IO statistics.
  5  *                                                  5  *
  6  * Don't include this header file directly - i      6  * Don't include this header file directly - it is designed to be dragged in via
  7  * sched.h.                                         7  * sched.h.
  8  *                                                  8  *
  9  * Blame Andrew Morton for all this.                9  * Blame Andrew Morton for all this.
 10  */                                                10  */
 11                                                    11 
 12 struct task_io_accounting {                        12 struct task_io_accounting {
 13 #ifdef CONFIG_TASK_XACCT                           13 #ifdef CONFIG_TASK_XACCT
 14         /* bytes read */                           14         /* bytes read */
 15         u64 rchar;                                 15         u64 rchar;
 16         /*  bytes written */                       16         /*  bytes written */
 17         u64 wchar;                                 17         u64 wchar;
 18         /* # of read syscalls */                   18         /* # of read syscalls */
 19         u64 syscr;                                 19         u64 syscr;
 20         /* # of write syscalls */                  20         /* # of write syscalls */
 21         u64 syscw;                                 21         u64 syscw;
 22 #endif /* CONFIG_TASK_XACCT */                     22 #endif /* CONFIG_TASK_XACCT */
 23                                                    23 
 24 #ifdef CONFIG_TASK_IO_ACCOUNTING                   24 #ifdef CONFIG_TASK_IO_ACCOUNTING
 25         /*                                         25         /*
 26          * The number of bytes which this task     26          * The number of bytes which this task has caused to be read from
 27          * storage.                                27          * storage.
 28          */                                        28          */
 29         u64 read_bytes;                            29         u64 read_bytes;
 30                                                    30 
 31         /*                                         31         /*
 32          * The number of bytes which this task     32          * The number of bytes which this task has caused, or shall cause to be
 33          * written to disk.                        33          * written to disk.
 34          */                                        34          */
 35         u64 write_bytes;                           35         u64 write_bytes;
 36                                                    36 
 37         /*                                         37         /*
 38          * A task can cause "negative" IO too.     38          * A task can cause "negative" IO too.  If this task truncates some
 39          * dirty pagecache, some IO which anot     39          * dirty pagecache, some IO which another task has been accounted for
 40          * (in its write_bytes) will not be ha     40          * (in its write_bytes) will not be happening.  We _could_ just
 41          * subtract that from the truncating t     41          * subtract that from the truncating task's write_bytes, but there is
 42          * information loss in doing that.         42          * information loss in doing that.
 43          */                                        43          */
 44         u64 cancelled_write_bytes;                 44         u64 cancelled_write_bytes;
 45 #endif /* CONFIG_TASK_IO_ACCOUNTING */             45 #endif /* CONFIG_TASK_IO_ACCOUNTING */
 46 };                                                 46 };
 47                                                    47 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php