Skip to content

Commit 61bf4ee

Browse files
Thomas Richteracmel
authored andcommitted
perf jvmti: Include JVMTI support for s390
Enable JVMTI support for s390 perf tool chain. Signed-off-by: Thomas Richter <[email protected]> Cc: Heiko Carstens <[email protected]> Cc: Hendrik Brueckner <[email protected]> Cc: Vasily Gorbik <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 28b9517 commit 61bf4ee

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tools/perf/arch/s390/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ PERF_HAVE_DWARF_REGS := 1
44
endif
55
HAVE_KVM_STAT_SUPPORT := 1
66
PERF_HAVE_ARCH_REGS_QUERY_REGISTER_OFFSET := 1
7+
PERF_HAVE_JITDUMP := 1
78

89
#
910
# Syscall table generation for perf

tools/perf/util/genelf.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ int jit_add_debug_info(Elf *e, uint64_t code_addr, void *debug, int nr_debug_ent
3535
#elif defined(__sparc__)
3636
#define GEN_ELF_ARCH EM_SPARC
3737
#define GEN_ELF_CLASS ELFCLASS32
38+
#elif defined(__s390x__)
39+
#define GEN_ELF_ARCH EM_S390
40+
#define GEN_ELF_CLASS ELFCLASS64
3841
#else
3942
#error "unsupported architecture"
4043
#endif

0 commit comments

Comments
 (0)