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,
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 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])