13 sys.path.append(os.environ[
'PERF_EXEC_PATH'] + \
14 '/scripts/python/Perf-Trace-Util/lib/Perf/Trace')
17 from perf_trace_context
import *
29 common_secs, common_nsecs, common_pid, common_comm,
30 common_callchain, vec):
31 print_header(event_name, common_cpu, common_secs, common_nsecs,
32 common_pid, common_comm)
37 (
symbol_str(
"irq__softirq_entry",
"vec", vec)),
40 common_secs, common_nsecs, common_pid, common_comm,
41 common_callchain, call_site, ptr, bytes_req, bytes_alloc,
43 print_header(event_name, common_cpu, common_secs, common_nsecs,
44 common_pid, common_comm)
48 print "call_site=%u, ptr=%u, bytes_req=%u, " \
49 "bytes_alloc=%u, gfp_flags=%s\n" % \
50 (call_site, ptr, bytes_req, bytes_alloc,
52 flag_str(
"kmem__kmalloc",
"gfp_flags", gfp_flags)),
56 unhandled[event_name] += 1
58 unhandled[event_name] = 1
61 print "%-20s %5u %05u.%09u %8u %-20s " % \
62 (event_name, cpu, secs, nsecs, pid, comm),
66 print "common_preempt_count=%d, common_flags=%s, common_lock_depth=%d, " \
71 keys = unhandled.keys()
75 print "\nunhandled events:\n\n",
77 print "%-40s %10s\n" % (
"event",
"count"),
78 print "%-40s %10s\n" % (
"----------------------------------------", \
81 for event_name
in keys:
82 print "%-40s %10d\n" % (event_name, unhandled[event_name])
int common_flags(struct scripting_context *context)
int common_pc(struct scripting_context *context)
def print_header(event_name, cpu, secs, nsecs, pid, comm)
def flag_str(event_name, field_name, value)
def trace_flag_str(value)
def trace_unhandled(event_name, context, event_fields_dict)
int common_lock_depth(struct scripting_context *context)
def print_uncommon(context)
def symbol_str(event_name, field_name, value)
def kmem__kmalloc(event_name, context, common_cpu, common_secs, common_nsecs, common_pid, common_comm, common_callchain, call_site, ptr, bytes_req, bytes_alloc, gfp_flags)
def irq__softirq_entry(event_name, context, common_cpu, common_secs, common_nsecs, common_pid, common_comm, common_callchain, vec)