Linux Perf
compaction-times Namespace Reference

Classes

class  chead
 
class  cnode
 
class  comm_filter
 
class  pair
 
class  pid_filter
 
class  popt
 
class  topt
 

Functions

def set_type (t)
 
def ns (sec, nsec)
 
def time (ns)
 
def trace_end ()
 
def compaction__mm_compaction_migratepages (event_name, context, common_cpu, common_secs, common_nsecs, common_pid, common_comm, common_callchain, nr_migrated, nr_failed)
 
def compaction__mm_compaction_isolate_freepages (event_name, context, common_cpu, common_secs, common_nsecs, common_pid, common_comm, common_callchain, start_pfn, end_pfn, nr_scanned, nr_taken)
 
def compaction__mm_compaction_isolate_migratepages (event_name, context, common_cpu, common_secs, common_nsecs, common_pid, common_comm, common_callchain, start_pfn, end_pfn, nr_scanned, nr_taken)
 
def compaction__mm_compaction_end (event_name, context, common_cpu, common_secs, common_nsecs, common_pid, common_comm, common_callchain, zone_start, migrate_start, free_start, zone_end, sync, status)
 
def compaction__mm_compaction_begin (event_name, context, common_cpu, common_secs, common_nsecs, common_pid, common_comm, common_callchain, zone_start, migrate_start, free_start, zone_end, sync)
 
def pr_help ()
 

Variables

string usage = "usage: perf script report compaction-times.py -- [-h] [-u] [-p|-pv] [-t | [-m] [-fs] [-ms]] [pid|pid-range|comm-regex]\n"
 
 comm_re = None
 
 pid_re = None
 
string pid_regex = "^(\d*)-(\d*)$|^(\d*)$"
 
 opt_proc = popt.DISP_DFL
 
 opt_disp = topt.DISP_ALL
 
bool opt_ns = True
 
int argc = len(sys.argv) - 1
 
 m = pid_re.search(opt)
 
 f = pid_filter(m.group(3), m.group(3))
 

Function Documentation

◆ compaction__mm_compaction_begin()

def compaction-times.compaction__mm_compaction_begin (   event_name,
  context,
  common_cpu,
  common_secs,
  common_nsecs,
  common_pid,
  common_comm,
  common_callchain,
  zone_start,
  migrate_start,
  free_start,
  zone_end,
  sync 
)

Definition at line 242 of file compaction-times.py.

◆ compaction__mm_compaction_end()

def compaction-times.compaction__mm_compaction_end (   event_name,
  context,
  common_cpu,
  common_secs,
  common_nsecs,
  common_pid,
  common_comm,
  common_callchain,
  zone_start,
  migrate_start,
  free_start,
  zone_end,
  sync,
  status 
)

Definition at line 235 of file compaction-times.py.

Here is the call graph for this function:

◆ compaction__mm_compaction_isolate_freepages()

def compaction-times.compaction__mm_compaction_isolate_freepages (   event_name,
  context,
  common_cpu,
  common_secs,
  common_nsecs,
  common_pid,
  common_comm,
  common_callchain,
  start_pfn,
  end_pfn,
  nr_scanned,
  nr_taken 
)

Definition at line 220 of file compaction-times.py.

Here is the call graph for this function:

◆ compaction__mm_compaction_isolate_migratepages()

def compaction-times.compaction__mm_compaction_isolate_migratepages (   event_name,
  context,
  common_cpu,
  common_secs,
  common_nsecs,
  common_pid,
  common_comm,
  common_callchain,
  start_pfn,
  end_pfn,
  nr_scanned,
  nr_taken 
)

Definition at line 227 of file compaction-times.py.

Here is the call graph for this function:

◆ compaction__mm_compaction_migratepages()

def compaction-times.compaction__mm_compaction_migratepages (   event_name,
  context,
  common_cpu,
  common_secs,
  common_nsecs,
  common_pid,
  common_comm,
  common_callchain,
  nr_migrated,
  nr_failed 
)

Definition at line 213 of file compaction-times.py.

Here is the call graph for this function:

◆ ns()

def compaction-times.ns (   sec,
  nsec 
)

Definition at line 48 of file compaction-times.py.

◆ pr_help()

def compaction-times.pr_help ( )

Definition at line 246 of file compaction-times.py.

◆ set_type()

def compaction-times.set_type (   t)

Definition at line 44 of file compaction-times.py.

◆ time()

def compaction-times.time (   ns)

Definition at line 51 of file compaction-times.py.

◆ trace_end()

def compaction-times.trace_end ( )

Definition at line 205 of file compaction-times.py.

Here is the call graph for this function:

Variable Documentation

◆ argc

int compaction-times.argc = len(sys.argv) - 1

Definition at line 270 of file compaction-times.py.

◆ comm_re

compaction-times.comm_re = None

Definition at line 261 of file compaction-times.py.

◆ f

compaction-times.f = pid_filter(m.group(3), m.group(3))

Definition at line 300 of file compaction-times.py.

◆ m

compaction-times.m = pid_re.search(opt)

Definition at line 297 of file compaction-times.py.

◆ opt_disp

compaction-times.opt_disp = topt.DISP_ALL

Definition at line 266 of file compaction-times.py.

◆ opt_ns

bool compaction-times.opt_ns = True

Definition at line 268 of file compaction-times.py.

◆ opt_proc

compaction-times.opt_proc = popt.DISP_DFL

Definition at line 265 of file compaction-times.py.

◆ pid_re

compaction-times.pid_re = None

Definition at line 262 of file compaction-times.py.

◆ pid_regex

string compaction-times.pid_regex = "^(\d*)-(\d*)$|^(\d*)$"

Definition at line 263 of file compaction-times.py.

◆ usage

string compaction-times.usage = "usage: perf script report compaction-times.py -- [-h] [-u] [-p|-pv] [-t | [-m] [-fs] [-ms]] [pid|pid-range|comm-regex]\n"

Definition at line 14 of file compaction-times.py.