1 /* taskdelays.h - for delay accounting
3 * Copyright (C) Hubertus Franke, IBM Corp. 2003, 2004
5 * Has the data structure for delay counting.
7 * Latest version, more details at http://ckrm.sf.net
9 * This program is free software; you can redistribute it and/or modify it
10 * under the terms of version 2.1 of the GNU Lesser General Public License
11 * as published by the Free Software Foundation.
13 * This program is distributed in the hope that it would be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
26 #ifndef _LINUX_TASKDELAYS_H
27 #define _LINUX_TASKDELAYS_H
29 #include <linux/config.h>
30 #include <linux/types.h>
32 struct task_delay_info {
33 #if defined CONFIG_DELAY_ACCT
34 /* delay statistics in usecs */
35 uint64_t waitcpu_total;
36 uint64_t runcpu_total;
37 uint64_t iowait_total;
38 uint64_t mem_iowait_total;
41 uint32_t num_memwaits;
45 #endif // _LINUX_TASKDELAYS_H