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

Functions

def usage
 
def progress
 
def analyse
 

Variables

int quiet 0
 
int test 0
 
int comments 0
 
string sysfsprefix "/sys/devices/system/rttest/rttest"
 
string statusfile "/status"
 
string commandfile "/command"
 
dictionary cmd_opcodes
 
dictionary test_opcodes
 
tuple fd open(arguments[0])
 
int linenr 0
 
tuple line fd.readline()
 
tuple parts line.split(":")
 
list cmd parts[0]
 
list opc parts[1]
 
list tid parts[2]
 
list dat parts[3]
 
list testop test_opcodes[opc]
 
string fname "%s%s%s"
 
int query 1
 
tuple fsta open(fname, 'r')
 
tuple status fsta.readline()
 
tuple stat status.split(",")
 
tuple s s.strip()
 
list val s[2:]
 
list cmdnr cmd_opcodes[opc]
 
string cmdstr "%s:%s"
 
tuple fcmd open(fname, 'w')
 

Function Documentation

def rt-tester.analyse (   val,
  top,
  arg 
)

Definition at line 78 of file rt-tester.py.

def rt-tester.progress (   str)

Definition at line 73 of file rt-tester.py.

def rt-tester.usage ( void  )

Definition at line 62 of file rt-tester.py.

Variable Documentation

Definition at line 159 of file rt-tester.py.

dictionary cmd_opcodes
Initial value:
1 {
2  "schedother" : "1",
3  "schedfifo" : "2",
4  "lock" : "3",
5  "locknowait" : "4",
6  "lockint" : "5",
7  "lockintnowait" : "6",
8  "lockcont" : "7",
9  "unlock" : "8",
10  "signal" : "11",
11  "resetevent" : "98",
12  "reset" : "99",
13  }

Definition at line 27 of file rt-tester.py.

Definition at line 198 of file rt-tester.py.

string cmdstr "%s:%s"

Definition at line 200 of file rt-tester.py.

string commandfile "/command"

Definition at line 24 of file rt-tester.py.

int comments 0

Definition at line 20 of file rt-tester.py.

list dat parts[3]

Definition at line 162 of file rt-tester.py.

tuple fcmd open(fname, 'w')

Definition at line 205 of file rt-tester.py.

fd open(arguments[0])

Definition at line 123 of file rt-tester.py.

string fname "%s%s%s"

Definition at line 169 of file rt-tester.py.

tuple fsta open(fname, 'r')

Definition at line 176 of file rt-tester.py.

tuple line fd.readline()

Definition at line 136 of file rt-tester.py.

int linenr 0

Definition at line 130 of file rt-tester.py.

list opc parts[1]

Definition at line 160 of file rt-tester.py.

tuple parts line.split(":")

Definition at line 141 of file rt-tester.py.

tuple query 1

Definition at line 175 of file rt-tester.py.

int quiet 0

Definition at line 18 of file rt-tester.py.

tuple s s.strip()

Definition at line 181 of file rt-tester.py.

tuple stat status.split(",")

Definition at line 179 of file rt-tester.py.

Definition at line 177 of file rt-tester.py.

string statusfile "/status"

Definition at line 23 of file rt-tester.py.

string sysfsprefix "/sys/devices/system/rttest/rttest"

Definition at line 22 of file rt-tester.py.

int test 0

Definition at line 19 of file rt-tester.py.

Initial value:
1 {
2  "prioeq" : ["P" , "eq" , None],
3  "priolt" : ["P" , "lt" , None],
4  "priogt" : ["P" , "gt" , None],
5  "nprioeq" : ["N" , "eq" , None],
6  "npriolt" : ["N" , "lt" , None],
7  "npriogt" : ["N" , "gt" , None],
8  "unlocked" : ["M" , "eq" , 0],
9  "trylock" : ["M" , "eq" , 1],
10  "blocked" : ["M" , "eq" , 2],
11  "blockedwake" : ["M" , "eq" , 3],
12  "locked" : ["M" , "eq" , 4],
13  "opcodeeq" : ["O" , "eq" , None],
14  "opcodelt" : ["O" , "lt" , None],
15  "opcodegt" : ["O" , "gt" , None],
16  "eventeq" : ["E" , "eq" , None],
17  "eventlt" : ["E" , "lt" , None],
18  "eventgt" : ["E" , "gt" , None],
19  }

Definition at line 41 of file rt-tester.py.

Definition at line 167 of file rt-tester.py.

list tid parts[2]

Definition at line 161 of file rt-tester.py.

list val s[2:]

Definition at line 184 of file rt-tester.py.