perf disasm: Add e_machine/e_flags to struct archCurrently functions like get_dwarf_regnum only work with the hostarchitecture. Carry the elf machine and flags in struct arch so thatin disassembl
perf disasm: Add e_machine/e_flags to struct archCurrently functions like get_dwarf_regnum only work with the hostarchitecture. Carry the elf machine and flags in struct arch so thatin disassembly these can be used to allow cross platform disassembly.Reviewed-by: Masami Hiramatsu (Google) <[email protected]>Signed-off-by: Ian Rogers <[email protected]>Cc: Anup Patel <[email protected]>Cc: Yang Jihong <[email protected]>Cc: Palmer Dabbelt <[email protected]>Cc: David S. Miller <[email protected]>Cc: Albert Ou <[email protected]>Cc: Shenlin Liang <[email protected]>Cc: Nick Terrell <[email protected]>Cc: Guilherme Amadio <[email protected]>Cc: Steinar H. Gunderson <[email protected]>Cc: Changbin Du <[email protected]>Cc: Alexander Lobakin <[email protected]>Cc: Przemek Kitszel <[email protected]>Cc: Huacai Chen <[email protected]>Cc: Guo Ren <[email protected]>Cc: Masahiro Yamada <[email protected]>Cc: Will Deacon <[email protected]>Cc: James Clark <[email protected]>Cc: Mike Leach <[email protected]>Cc: Chen Pei <[email protected]>Cc: Leo Yan <[email protected]>Cc: Oliver Upton <[email protected]>Cc: Aditya Gupta <[email protected]>Cc: Kajol Jain <[email protected]>Cc: Athira Rajeev <[email protected]>Cc: [email protected]Cc: [email protected]Cc: Bibo Mao <[email protected]>Cc: John Garry <[email protected]>Cc: Atish Patra <[email protected]>Cc: Dima Kogan <[email protected]>Cc: Paul Walmsley <[email protected]>Cc: Dr. David Alan Gilbert <[email protected]>Cc: [email protected]Link: https://lore.kernel.org/r/[email protected]Signed-off-by: Namhyung Kim <[email protected]>
show more ...
perf annotate: Add csky supportThis patch add basic arch initialization and instruction associatesupport for the csky CPU architecture.E.g.: $ perf annotate --stdio2 Samples: 161 of event
perf annotate: Add csky supportThis patch add basic arch initialization and instruction associatesupport for the csky CPU architecture.E.g.: $ perf annotate --stdio2 Samples: 161 of event 'cpu-clock:pppH', 4000 Hz, Event count (approx.): 40250000, [percent: local period] test_4() /usr/lib/perf-test/callchain_test Percent Disassembly of section .text: 00008420 <test_4>: test_4(): subi sp, sp, 4 st.w r8, (sp, 0x0) mov r8, sp subi sp, sp, 8 subi r3, r8, 4 movi r2, 0 st.w r2, (r3, 0x0) ↓ br 2e 100.00 14: subi r3, r8, 4 ld.w r2, (r3, 0x0) subi r3, r8, 8 st.w r2, (r3, 0x0) subi r3, r8, 4 ld.w r3, (r3, 0x0) addi r2, r3, 1 subi r3, r8, 4 st.w r2, (r3, 0x0) 2e: subi r3, r8, 4 ld.w r2, (r3, 0x0) lrw r3, 0x98967f // 8598 <main+0x28> cmplt r3, r2 ↑ bf 14 mov r0, r0 mov r0, r0 mov sp, r8 ld.w r8, (sp, 0x0) addi sp, sp, 4 ← rtsSigned-off-by: Mao Han <[email protected]>Acked-by: Guo Ren <[email protected]>Cc: Alexander Shishkin <[email protected]>Cc: Jiri Olsa <[email protected]>Cc: Namhyung Kim <[email protected]>Cc: Peter Zijlstra <[email protected]>Cc: [email protected]Link: http://lkml.kernel.org/r/d874d7782d9acdad5d98f2f5c4a6fb26fbe41c5d.1561531557.git.han_mao@c-sky.comSigned-off-by: Arnaldo Carvalho de Melo <[email protected]>