OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uC-libc/] [include/] [linux/] [kernel_stat.h] - Blame information for rev 1778

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
#ifndef _LINUX_KERNEL_STAT_H
2
#define _LINUX_KERNEL_STAT_H
3
 
4
#include <asm/irq.h>
5
 
6
/*
7
 * 'kernel_stat.h' contains the definitions needed for doing
8
 * some kernel statistics (cpu usage, context switches ...),
9
 * used by rstatd/perfmeter
10
 */
11
 
12
#define DK_NDRIVE 4
13
 
14
struct kernel_stat {
15
        unsigned int cpu_user, cpu_nice, cpu_system;
16
        unsigned int dk_drive[DK_NDRIVE];
17
        unsigned int dk_drive_rio[DK_NDRIVE];
18
        unsigned int dk_drive_wio[DK_NDRIVE];
19
        unsigned int dk_drive_rblk[DK_NDRIVE];
20
        unsigned int dk_drive_wblk[DK_NDRIVE];
21
        unsigned int pgpgin, pgpgout;
22
        unsigned int pswpin, pswpout;
23
        unsigned int interrupts[NR_IRQS];
24
        unsigned int ipackets, opackets;
25
        unsigned int ierrors, oerrors;
26
        unsigned int collisions;
27
        unsigned int context_swtch;
28
};
29
 
30
extern struct kernel_stat kstat;
31
 
32
#endif /* _LINUX_KERNEL_STAT_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.