Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
appldata_os.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/errno.h>
#include <linux/kernel_stat.h>
#include <linux/netdevice.h>
#include <linux/sched.h>
#include <asm/appldata.h>
#include <asm/smp.h>
#include "appldata.h"

Go to the source code of this file.

Data Structures

struct  appldata_os_per_cpu
 
struct  appldata_os_data
 

Macros

#define KMSG_COMPONENT   "appldata"
 
#define pr_fmt(fmt)   KMSG_COMPONENT ": " fmt
 
#define LOAD_INT(x)   ((x) >> FSHIFT)
 
#define LOAD_FRAC(x)   LOAD_INT(((x) & (FIXED_1-1)) * 100)
 

Functions

struct appldata_os_per_cpu __attribute__ ((packed))
 
 module_init (appldata_os_init)
 
 module_exit (appldata_os_exit)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Gerald Schaefer")
 
 MODULE_DESCRIPTION ("Linux-VM Monitor Stream, OS statistics")
 

Variables

u32 per_cpu_user
 
u32 per_cpu_nice
 
u32 per_cpu_system
 
u32 per_cpu_idle
 
u32 per_cpu_irq
 
u32 per_cpu_softirq
 
u32 per_cpu_iowait
 
u32 per_cpu_steal
 
u32 cpu_id
 
u64 timestamp
 
u32 sync_count_1
 
u32 sync_count_2
 
u32 nr_cpus
 
u32 per_cpu_size
 
u32 cpu_offset
 
u32 nr_running
 
u32 nr_threads
 
u32 avenrun [3]
 
u32 nr_iowait
 
struct appldata_os_per_cpu os_cpu [0]
 

Macro Definition Documentation

#define KMSG_COMPONENT   "appldata"

Definition at line 10 of file appldata_os.c.

#define LOAD_FRAC (   x)    LOAD_INT(((x) & (FIXED_1-1)) * 100)

Definition at line 27 of file appldata_os.c.

#define LOAD_INT (   x)    ((x) >> FSHIFT)

Definition at line 26 of file appldata_os.c.

#define pr_fmt (   fmt)    KMSG_COMPONENT ": " fmt

Definition at line 11 of file appldata_os.c.

Function Documentation

Definition at line 171 of file esd_usb2.c.

MODULE_AUTHOR ( "Gerald Schaefer"  )
MODULE_DESCRIPTION ( "Linux-VM Monitor  Stream,
OS statistics"   
)
module_exit ( appldata_os_exit  )
module_init ( appldata_os_init  )
MODULE_LICENSE ( "GPL"  )

Variable Documentation

u32 avenrun[3]

Definition at line 94 of file appldata_os.c.

Definition at line 68 of file appldata_os.c.

u32 cpu_offset

Definition at line 90 of file appldata_os.c.

u32 nr_cpus

Definition at line 88 of file appldata_os.c.

u32 nr_iowait

Definition at line 98 of file appldata_os.c.

u32 nr_running

Definition at line 92 of file appldata_os.c.

u32 nr_threads

Definition at line 93 of file appldata_os.c.

Definition at line 102 of file appldata_os.c.

u32 per_cpu_idle

Definition at line 59 of file appldata_os.c.

u32 per_cpu_iowait

Definition at line 64 of file appldata_os.c.

u32 per_cpu_irq

Definition at line 62 of file appldata_os.c.

u32 per_cpu_nice

Definition at line 57 of file appldata_os.c.

u32 per_cpu_size

Definition at line 89 of file appldata_os.c.

u32 per_cpu_softirq

Definition at line 63 of file appldata_os.c.

u32 per_cpu_steal

Definition at line 67 of file appldata_os.c.

u32 per_cpu_system

Definition at line 58 of file appldata_os.c.

u32 per_cpu_user

Definition at line 56 of file appldata_os.c.

u32 sync_count_1

Definition at line 82 of file appldata_os.c.

u32 sync_count_2

Definition at line 83 of file appldata_os.c.

Definition at line 81 of file appldata_os.c.