Linux Perf
Util Namespace Reference

Functions

def avg (total, n)
 
def nsecs (secs, nsecs)
 
def nsecs_secs (nsecs)
 
def nsecs_nsecs (nsecs)
 
def nsecs_str (nsecs)
 
def add_stats (dict, key, value)
 
def clear_term ()
 
def syscall_name (id)
 
def strerror (nr)
 

Variables

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

Function Documentation

◆ add_stats()

def Util.add_stats (   dict,
  key,
  value 
)

Definition at line 35 of file Util.py.

◆ avg()

def Util.avg (   total,
  n 
)

Definition at line 19 of file Util.py.

◆ clear_term()

def Util.clear_term ( )

Definition at line 47 of file Util.py.

◆ nsecs()

def Util.nsecs (   secs,
  nsecs 
)

Definition at line 22 of file Util.py.

◆ nsecs_nsecs()

def Util.nsecs_nsecs (   nsecs)

Definition at line 28 of file Util.py.

◆ nsecs_secs()

def Util.nsecs_secs (   nsecs)

Definition at line 25 of file Util.py.

◆ nsecs_str()

def Util.nsecs_str (   nsecs)

Definition at line 31 of file Util.py.

Here is the call graph for this function:

◆ strerror()

def Util.strerror (   nr)

Definition at line 86 of file Util.py.

◆ syscall_name()

def Util.syscall_name (   id)

Definition at line 80 of file Util.py.

Here is the call graph for this function:

Variable Documentation

◆ audit_package_warned

bool Util.audit_package_warned = False

Definition at line 50 of file Util.py.

◆ FUTEX_CLOCK_REALTIME

int Util.FUTEX_CLOCK_REALTIME = 256

Definition at line 14 of file Util.py.

◆ FUTEX_CMD_MASK

Util.FUTEX_CMD_MASK = ~(FUTEX_PRIVATE_FLAG | FUTEX_CLOCK_REALTIME)

Definition at line 15 of file Util.py.

◆ FUTEX_PRIVATE_FLAG

int Util.FUTEX_PRIVATE_FLAG = 128

Definition at line 13 of file Util.py.

◆ FUTEX_WAIT

int Util.FUTEX_WAIT = 0

Definition at line 11 of file Util.py.

◆ FUTEX_WAKE

int Util.FUTEX_WAKE = 1

Definition at line 12 of file Util.py.

◆ machine_id

dictionary Util.machine_id = machine_to_id[os.uname()[4]]

Definition at line 71 of file Util.py.

◆ machine_to_id

dictionary Util.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  'ppc64le' : audit.MACH_PPC64LE,
8  's390' : audit.MACH_S390,
9  's390x' : audit.MACH_S390X,
10  'i386' : audit.MACH_X86,
11  'i586' : audit.MACH_X86,
12  'i686' : audit.MACH_X86,
13  }

Definition at line 54 of file Util.py.

◆ NSECS_PER_SEC

int Util.NSECS_PER_SEC = 1000000000

Definition at line 17 of file Util.py.