forked from luck/tmp_suning_uos_patched
perf jitdump: Add Sparc support.
Signed-off-by: David S. Miller <davem@davemloft.net> Link: http://lkml.kernel.org/r/20181016.211545.1487970139012324624.davem@davemloft.net Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
0ab4188664
commit
d87b9790b3
|
@ -1,3 +1,5 @@
|
||||||
ifndef NO_DWARF
|
ifndef NO_DWARF
|
||||||
PERF_HAVE_DWARF_REGS := 1
|
PERF_HAVE_DWARF_REGS := 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
PERF_HAVE_JITDUMP := 1
|
||||||
|
|
|
@ -29,6 +29,12 @@ int jit_add_debug_info(Elf *e, uint64_t code_addr, void *debug, int nr_debug_ent
|
||||||
#elif defined(__powerpc__)
|
#elif defined(__powerpc__)
|
||||||
#define GEN_ELF_ARCH EM_PPC
|
#define GEN_ELF_ARCH EM_PPC
|
||||||
#define GEN_ELF_CLASS ELFCLASS32
|
#define GEN_ELF_CLASS ELFCLASS32
|
||||||
|
#elif defined(__sparc__) && defined(__arch64__)
|
||||||
|
#define GEN_ELF_ARCH EM_SPARCV9
|
||||||
|
#define GEN_ELF_CLASS ELFCLASS64
|
||||||
|
#elif defined(__sparc__)
|
||||||
|
#define GEN_ELF_ARCH EM_SPARC
|
||||||
|
#define GEN_ELF_CLASS ELFCLASS32
|
||||||
#else
|
#else
|
||||||
#error "unsupported architecture"
|
#error "unsupported architecture"
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user