Linux Perf
export-to-sqlite Namespace Reference

Functions

def usage ()
 
def do_query (q, s)
 
def do_query_ (q)
 
def emit_to_hex (x)
 
def trace_begin ()
 
def trace_end ()
 
def trace_unhandled (event_name, context, event_fields_dict)
 
def sched__sched_switch (x)
 
def bind_exec (q, n, x)
 
def evsel_table (x)
 
def machine_table (x)
 
def thread_table (x)
 
def comm_table (x)
 
def comm_thread_table (x)
 
def dso_table (x)
 
def symbol_table (x)
 
def branch_type_table (x)
 
def sample_table (x)
 
def call_path_table (x)
 
def call_return_table (x)
 

Variables

bool perf_db_export_mode = True
 
bool perf_db_export_calls = False
 
bool perf_db_export_callchains = False
 
 dbname = sys.argv[1]
 
 columns = sys.argv[2]
 
tuple branches = (columns == "branches")
 
bool db_exists = False
 
 f = open(dbname)
 
 db = QSqlDatabase.addDatabase('QSQLITE')
 
 query = QSqlQuery(db)
 
bool sqlite_has_printf = False
 
 evsel_query = QSqlQuery(db)
 
 machine_query = QSqlQuery(db)
 
 thread_query = QSqlQuery(db)
 
 comm_query = QSqlQuery(db)
 
 comm_thread_query = QSqlQuery(db)
 
 dso_query = QSqlQuery(db)
 
 symbol_query = QSqlQuery(db)
 
 branch_type_query = QSqlQuery(db)
 
 sample_query = QSqlQuery(db)
 
 call_path_query = QSqlQuery(db)
 
 call_query = QSqlQuery(db)
 
int unhandled_count = 0
 

Function Documentation

◆ bind_exec()

def export-to-sqlite.bind_exec (   q,
  n,
  x 
)

Definition at line 412 of file export-to-sqlite.py.

◆ branch_type_table()

def export-to-sqlite.branch_type_table (   x)

Definition at line 438 of file export-to-sqlite.py.

Here is the call graph for this function:

◆ call_path_table()

def export-to-sqlite.call_path_table (   x)

Definition at line 447 of file export-to-sqlite.py.

Here is the call graph for this function:

◆ call_return_table()

def export-to-sqlite.call_return_table (   x)

Definition at line 450 of file export-to-sqlite.py.

Here is the call graph for this function:

◆ comm_table()

def export-to-sqlite.comm_table (   x)

Definition at line 426 of file export-to-sqlite.py.

Here is the call graph for this function:

◆ comm_thread_table()

def export-to-sqlite.comm_thread_table (   x)

Definition at line 429 of file export-to-sqlite.py.

Here is the call graph for this function:

◆ do_query()

def export-to-sqlite.do_query (   q,
  s 
)

Definition at line 93 of file export-to-sqlite.py.

◆ do_query_()

def export-to-sqlite.do_query_ (   q)

Definition at line 98 of file export-to-sqlite.py.

◆ dso_table()

def export-to-sqlite.dso_table (   x)

Definition at line 432 of file export-to-sqlite.py.

Here is the call graph for this function:

◆ emit_to_hex()

def export-to-sqlite.emit_to_hex (   x)

Definition at line 235 of file export-to-sqlite.py.

Here is the call graph for this function:

◆ evsel_table()

def export-to-sqlite.evsel_table (   x)

Definition at line 417 of file export-to-sqlite.py.

Here is the call graph for this function:

◆ machine_table()

def export-to-sqlite.machine_table (   x)

Definition at line 420 of file export-to-sqlite.py.

Here is the call graph for this function:

◆ sample_table()

def export-to-sqlite.sample_table (   x)

Definition at line 441 of file export-to-sqlite.py.

Here is the call graph for this function:

◆ sched__sched_switch()

def export-to-sqlite.sched__sched_switch (   x)

Definition at line 409 of file export-to-sqlite.py.

◆ symbol_table()

def export-to-sqlite.symbol_table (   x)

Definition at line 435 of file export-to-sqlite.py.

Here is the call graph for this function:

◆ thread_table()

def export-to-sqlite.thread_table (   x)

Definition at line 423 of file export-to-sqlite.py.

Here is the call graph for this function:

◆ trace_begin()

def export-to-sqlite.trace_begin ( )

Definition at line 378 of file export-to-sqlite.py.

Here is the call graph for this function:

◆ trace_end()

def export-to-sqlite.trace_end ( )

Definition at line 394 of file export-to-sqlite.py.

Here is the call graph for this function:

◆ trace_unhandled()

def export-to-sqlite.trace_unhandled (   event_name,
  context,
  event_fields_dict 
)

Definition at line 405 of file export-to-sqlite.py.

◆ usage()

def export-to-sqlite.usage ( )

Definition at line 63 of file export-to-sqlite.py.

Variable Documentation

◆ branch_type_query

export-to-sqlite.branch_type_query = QSqlQuery(db)

Definition at line 364 of file export-to-sqlite.py.

◆ branches

tuple export-to-sqlite.branches = (columns == "branches")

Definition at line 83 of file export-to-sqlite.py.

◆ call_path_query

export-to-sqlite.call_path_query = QSqlQuery(db)

Definition at line 372 of file export-to-sqlite.py.

◆ call_query

export-to-sqlite.call_query = QSqlQuery(db)

Definition at line 375 of file export-to-sqlite.py.

◆ columns

string export-to-sqlite.columns = sys.argv[2]

Definition at line 76 of file export-to-sqlite.py.

◆ comm_query

export-to-sqlite.comm_query = QSqlQuery(db)

Definition at line 356 of file export-to-sqlite.py.

◆ comm_thread_query

export-to-sqlite.comm_thread_query = QSqlQuery(db)

Definition at line 358 of file export-to-sqlite.py.

◆ db

export-to-sqlite.db = QSqlDatabase.addDatabase('QSQLITE')

Definition at line 116 of file export-to-sqlite.py.

◆ db_exists

bool export-to-sqlite.db_exists = False

Definition at line 105 of file export-to-sqlite.py.

◆ dbname

export-to-sqlite.dbname = sys.argv[1]

Definition at line 73 of file export-to-sqlite.py.

◆ dso_query

export-to-sqlite.dso_query = QSqlQuery(db)

Definition at line 360 of file export-to-sqlite.py.

◆ evsel_query

export-to-sqlite.evsel_query = QSqlQuery(db)

Definition at line 350 of file export-to-sqlite.py.

◆ f

export-to-sqlite.f = open(dbname)

Definition at line 107 of file export-to-sqlite.py.

◆ machine_query

export-to-sqlite.machine_query = QSqlQuery(db)

Definition at line 352 of file export-to-sqlite.py.

◆ perf_db_export_callchains

bool export-to-sqlite.perf_db_export_callchains = False

Definition at line 61 of file export-to-sqlite.py.

◆ perf_db_export_calls

bool export-to-sqlite.perf_db_export_calls = False

Definition at line 60 of file export-to-sqlite.py.

◆ perf_db_export_mode

bool export-to-sqlite.perf_db_export_mode = True

Definition at line 59 of file export-to-sqlite.py.

◆ query

export-to-sqlite.query = QSqlQuery(db)

Definition at line 120 of file export-to-sqlite.py.

◆ sample_query

export-to-sqlite.sample_query = QSqlQuery(db)

Definition at line 366 of file export-to-sqlite.py.

◆ sqlite_has_printf

bool export-to-sqlite.sqlite_has_printf = False

Definition at line 228 of file export-to-sqlite.py.

◆ symbol_query

export-to-sqlite.symbol_query = QSqlQuery(db)

Definition at line 362 of file export-to-sqlite.py.

◆ thread_query

export-to-sqlite.thread_query = QSqlQuery(db)

Definition at line 354 of file export-to-sqlite.py.

◆ unhandled_count

int export-to-sqlite.unhandled_count = 0

Definition at line 392 of file export-to-sqlite.py.