b4e46189b690fb7e2cd1c132c5ca9876499d6536
[linux-2.6.git] / include / linux / taskdelays.h
1 /* taskdelays.h - for delay accounting
2  *
3  * Copyright (C) Hubertus Franke, IBM Corp. 2003, 2004
4  * 
5  * Has the data structure for delay counting.
6  *
7  * Latest version, more details at http://ckrm.sf.net
8  * 
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.
12  *
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.
16  * 
17  *
18  */
19
20 /* Changes
21  *
22  * 24 Aug 2003
23  *    Created.
24  */
25
26 #ifndef _LINUX_TASKDELAYS_H
27 #define _LINUX_TASKDELAYS_H
28
29 #include <linux/config.h>
30 #include <linux/types.h>
31
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;
39         uint32_t runs;
40         uint32_t num_iowaits;
41         uint32_t num_memwaits;
42 #endif                          
43 };
44
45 #endif                          // _LINUX_TASKDELAYS_H