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 Sparc supportE.g.: $ perf annotate --stdio2 Samples: 7K of event 'cycles:ppp', 4000 Hz, Event count (approx.): 3086733887 __gettimeofday /lib32/libc-2.27.so [Percent: loc
perf annotate: Add Sparc supportE.g.: $ perf annotate --stdio2 Samples: 7K of event 'cycles:ppp', 4000 Hz, Event count (approx.): 3086733887 __gettimeofday /lib32/libc-2.27.so [Percent: local period] Percent│ │ │ │ Disassembly of section .text: │ │ 000a6fa0 <__gettimeofday@@GLIBC_2.0>: 0.47 │ save %sp, -96, %sp 0.73 │ sethi %hi(0xe9000), %l7 │ → call __frame_state_for@@GLIBC_2.0+0x480 0.30 │ add %l7, 0x58, %l7 ! e9058 <nftw64@@GLIBC_2.3.3+0x818> 1.33 │ mov %i0, %o0 │ mov %i1, %o1 0.43 │ mov 0x74, %g1 │ ta 0x10 88.92 │ ↓ bcc 30 2.95 │ clr %g1 │ neg %o0 │ mov 1, %g1 0.31 │30: cmp %g1, 0 │ bne,pn %icc, a6fe4 <__gettimeofday@@GLIBC_2.0+0x44> │ mov %o0, %i0 1.96 │ ← return %i7 + 8 2.62 │ nop │ sethi %hi(0), %g1 │ neg %o0, %g2 │ add %g1, 0x160, %g1 │ ld [ %l7 + %g1 ], %g1 │ st %g2, [ %g7 + %g1 ] │ ← return %i7 + 8 │ mov -1, %o0Signed-off-by: David S. Miller <[email protected]>Link: http://lkml.kernel.org/r/[email protected]Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>