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 riscv64 supportThis patch adds basic arch initialization and instruction associatesupport for the riscv64 CPU architecture.Example output: $ perf annotate --stdio2 Sample
perf annotate: Add riscv64 supportThis patch adds basic arch initialization and instruction associatesupport for the riscv64 CPU architecture.Example output: $ perf annotate --stdio2 Samples: 122K of event 'task-clock:u', 4000 Hz, Event count (approx.): 30637250000, [percent: local period] strcmp() /usr/lib64/libc-2.32.so Percent Disassembly of section .text: 0000000000069a30 <strcmp>: __GI_strcmp(): const unsigned char *s2 = (const unsigned char *) p2; unsigned char c1, c2; do { c1 = (unsigned char) *s1++; 37.30 lbu a5,0(a0) c2 = (unsigned char) *s2++; 1.23 addi a1,a1,1 c1 = (unsigned char) *s1++; 18.68 addi a0,a0,1 c2 = (unsigned char) *s2++; 1.37 lbu a4,-1(a1) if (c1 == '\0') 18.71 ↓ beqz a5,18 return c1 - c2; }Signed-off-by: William Cohen <[email protected]>Cc: Albert Ou <[email protected]>Cc: Alexander Shishkin <[email protected]>Cc: Jiri Olsa <[email protected]>Cc: Mark Rutland <[email protected]>Cc: Namhyung Kim <[email protected]>Cc: Palmer Dabbelt <[email protected]>Cc: Paul Walmsley <[email protected]>Cc: Peter Zijlstra <[email protected]>Cc: [email protected]Link: http://lore.kernel.org/lkml/[email protected]Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>