Lines Matching +full:0 +full:- +full:9 +full:a +full:- +full:fa +full:- +full:f
1 # SPDX-License-Identifier: GPL-2.0
2 # arm-cs-trace-disasm.py: ARM CoreSight Trace Dump With Disassember
22 # perf script -s scripts/python/arm-cs-trace-disasm.py \
23 # -- -d objdump -k path/to/vmlinux
24 # Output disassembly with llvm-objdump:
25 # perf script -s scripts/python/arm-cs-trace-disasm.py \
26 # -- -d llvm-objdump-11 -k path/to/vmlinux
28 # perf script -s scripts/python/arm-cs-trace-disasm.py
33 make_option("-k", "--vmlinux", dest="vmlinux_name",
35 make_option("-d", "--objdump", dest="objdump_name",
37 make_option("-v", "--verbose", dest="verbose",
48 disasm_re = re.compile(r"^\s*([0-9a-fA-F]+):")
49 disasm_func_re = re.compile(r"^\s*([0-9a-fA-F]+)\s.*:")
93 start_addr = start_addr - dso_start;
94 stop_addr = stop_addr - dso_start;
95 disasm = [ options.objdump_name, "-d", "-z",
96 "--start-address="+format(start_addr,"#x"),
97 "--stop-address="+format(stop_addr,"#x") ]
99 disasm_output = check_output(disasm).decode('utf-8').split('\n')
114 print("Sample = { cpu: %04d addr: 0x%016x phys_addr: 0x%016x ip: 0x%016x " \
135 return "%16s %5u/%-5u [%04u] %9u.%09u " % (comm, pid, tid, cpu, sec, ns)
137 # This code is copied from intel-pt-events.py for printing source code
157 src_file = ("..." + source_file_name[-37:]) + " "
214 if (name[0:12] == "instructions"):
218 # Don't proceed if this event is not a branch sample, .
219 if (name[0:8] != "branches"):
224 # +------------+------------+------------+
226 # +------------+------------+------------+
228 # +------------+------------+------------+
246 # Handle CS_ETM_TRACE_ON packet if start_addr=0 and stop_addr=4
247 if (start_addr == 0 and stop_addr == 4):
252 …print("Start address 0x%x is out of range [ 0x%x .. 0x%x ] for dso %s" % (start_addr, int(dso_star…
256 …print("Stop address 0x%x is out of range [ 0x%x .. 0x%x ] for dso %s" % (stop_addr, int(dso_start)…
263 if (dso == "[kernel.kallsyms]" or dso_start == 0x400000):
264 dso_vm_start = 0
272 print("Failed to find dso %s for address range [ 0x%x .. 0x%x ]" % (dso, start_addr, stop_addr))