summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/genelf.h
diff options
context:
space:
mode:
authorThomas Richter <tmricht@linux.ibm.com>2019-09-09 13:41:15 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-09-25 16:26:41 -0300
commit61bf4ee29d5a44399bacec9cda9ef314acdbecda (patch)
tree18fa7d271c9b002f422fa4134bf397657f82db14 /tools/perf/util/genelf.h
parent28b951760cebdf1de0d32f38f325b667c2494564 (diff)
downloadlinux-61bf4ee29d5a44399bacec9cda9ef314acdbecda.tar.bz2
perf jvmti: Include JVMTI support for s390
Enable JVMTI support for s390 perf tool chain. Signed-off-by: Thomas Richter <tmricht@linux.ibm.com> Cc: Heiko Carstens <heiko.carstens@de.ibm.com> Cc: Hendrik Brueckner <brueckner@linux.ibm.com> Cc: Vasily Gorbik <gor@linux.ibm.com> Link: http://lore.kernel.org/lkml/20190909114116.50469-3-tmricht@linux.ibm.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/genelf.h')
-rw-r--r--tools/perf/util/genelf.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/util/genelf.h b/tools/perf/util/genelf.h
index b72440bf9a79..d4137559be05 100644
--- a/tools/perf/util/genelf.h
+++ b/tools/perf/util/genelf.h
@@ -35,6 +35,9 @@ int jit_add_debug_info(Elf *e, uint64_t code_addr, void *debug, int nr_debug_ent
#elif defined(__sparc__)
#define GEN_ELF_ARCH EM_SPARC
#define GEN_ELF_CLASS ELFCLASS32
+#elif defined(__s390x__)
+#define GEN_ELF_ARCH EM_S390
+#define GEN_ELF_CLASS ELFCLASS64
#else
#error "unsupported architecture"
#endif