Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
Util Namespace Reference

Functions

def avg
 
def nsecs
 
def nsecs_secs
 
def nsecs_nsecs
 
def nsecs_str
 
def add_stats
 
def clear_term
 
def syscall_name
 
def strerror
 

Variables

int FUTEX_WAIT 0
 
int FUTEX_WAKE 1
 
int FUTEX_PRIVATE_FLAG 128
 
int FUTEX_CLOCK_REALTIME 256
 
tuple FUTEX_CMD_MASK ~(FUTEX_PRIVATE_FLAG | FUTEX_CLOCK_REALTIME)
 
int NSECS_PER_SEC 1000000000
 
 audit_package_warned False
 
dictionary machine_to_id
 
list machine_id machine_to_id[os.uname()[4]]
 

Function Documentation

def Util.add_stats (   dict,
  key,
  value 
)

Definition at line 35 of file Util.py.

def Util.avg (   total,
  n 
)

Definition at line 19 of file Util.py.

def Util.clear_term ( )

Definition at line 47 of file Util.py.

def Util.nsecs (   secs,
  nsecs 
)

Definition at line 22 of file Util.py.

def Util.nsecs_nsecs (   nsecs)

Definition at line 28 of file Util.py.

def Util.nsecs_secs (   nsecs)

Definition at line 25 of file Util.py.

def Util.nsecs_str (   nsecs)

Definition at line 31 of file Util.py.

def Util.strerror (   nr)

Definition at line 82 of file Util.py.

def Util.syscall_name (   id)

Definition at line 76 of file Util.py.

Variable Documentation

audit_package_warned False

Definition at line 50 of file Util.py.

int FUTEX_CLOCK_REALTIME 256

Definition at line 14 of file Util.py.

tuple FUTEX_CMD_MASK ~(FUTEX_PRIVATE_FLAG | FUTEX_CLOCK_REALTIME)

Definition at line 15 of file Util.py.

int FUTEX_PRIVATE_FLAG 128

Definition at line 13 of file Util.py.

int FUTEX_WAIT 0

Definition at line 11 of file Util.py.

int FUTEX_WAKE 1

Definition at line 12 of file Util.py.

list machine_id machine_to_id[os.uname()[4]]

Definition at line 70 of file Util.py.

dictionary machine_to_id
Initial value:
1 {
2  'x86_64': audit.MACH_86_64,
3  'alpha' : audit.MACH_ALPHA,
4  'ia64' : audit.MACH_IA64,
5  'ppc' : audit.MACH_PPC,
6  'ppc64' : audit.MACH_PPC64,
7  's390' : audit.MACH_S390,
8  's390x' : audit.MACH_S390X,
9  'i386' : audit.MACH_X86,
10  'i586' : audit.MACH_X86,
11  'i686' : audit.MACH_X86,
12  }

Definition at line 54 of file Util.py.

int NSECS_PER_SEC 1000000000

Definition at line 17 of file Util.py.