Lines Matching +full:os +full:- +full:code +full:- +full:offset
1 # SPDX-License-Identifier: GPL-2.0
2 # intel-pt-events.py: Print Intel PT Events including Power Events and PTWRITE
3 # Copyright (c) 2017-2021, Intel Corporation.
17 import os
26 sys.path.append(os.environ['PERF_EXEC_PATH'] + \
27 '/scripts/python/Perf-Trace-Util/lib/Perf/Trace')
47 glb_cpu = -1
77 ap.add_argument("--insn-trace", action='store_true')
78 ap.add_argument("--src-trace", action='store_true')
79 ap.add_argument("--all-switch-events", action='store_true')
80 ap.add_argument("--interleave", type=int, nargs='?', const=4, default=0)
134 countdown -= 1
171 print("hw: %u cstate: %u sub-cstate: %u" % (hw, cstate, subcstate),
191 offset = data[1]
192 print("offset: %#x" % (offset), end=' ')
229 print("IFLAG: %u->%u %s branch" % (old_iflag, iflag, s), end=' ')
239 …return "VM:%5d VCPU:%03d %16s %5u/%-5u [%03u] %9u.%09u " % (machine_pid, vcpu, comm, pid, tid, cp…
241 return "%16s %5u/%-5u [%03u] %9u.%09u " % (comm, pid, tid, cpu, ts / 1000000000, ts %1000000000)
261 glb_disassembler.SetMode(inst, 0) # Assume 64-bit
286 print("%-40s %-30s" % (byte_str, text), end=' ')
323 src_file = ("..." + source_file_name[-37:]) + " "
442 sys.stdout = open(os.devnull, 'w')
445 def auxtrace_error(typ, code, cpu, pid, tid, ip, ts, msg, cpumode, *x): argument
453 vcpu = -1
456 print("VM:%5d VCPU:%03d %16s %5u/%-5u [%03u] %9u.%09u error type %u code %u: %s ip 0x%16x" %
457 …(machine_pid, vcpu, "Trace error", pid, tid, cpu, ts / 1000000000, ts %1000000000, typ, code, msg,…
459 print("%16s %5u/%-5u [%03u] %9u.%09u error type %u code %u: %s ip 0x%16x" %
460 ("Trace error", pid, tid, cpu, ts / 1000000000, ts %1000000000, typ, code, msg, ip))
463 sys.stdout = open(os.devnull, 'w')
482 if machine_pid == -1:
488 switch_str = "%16s %5d/%-5d [%03u] %9u.%09u %5d/%-5d %s %s" % \