]> git.baikalelectronics.ru Git - kernel.git/commit
perf jvmti: Separate jvmti cmlr check
authorJiri Olsa <jolsa@kernel.org>
Wed, 21 Nov 2018 15:43:41 +0000 (16:43 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 22 Nov 2018 01:39:58 +0000 (22:39 -0300)
commitfa2c1d99ee69c91e2a2fd4e3b143e58b647bafca
tree9643fd65a3ec118a2e36615322904c9e7bc8c008
parent5a199d4048721dedb64c3d69379f3740cce62c4d
perf jvmti: Separate jvmti cmlr check

The Compiled Method Load Record (cmlr) is JDK specific interface to
access JVM stack info. This makes the jvmti agent code not compile under
another jdk, which does not support that.

Separating jvmti cmlr check into special feature check, and adding
HAVE_JVMTI_CMLR macro to indicate that.

Mark cmlr code in jvmti/libjvmti.c with HAVE_JVMTI_CMLR, so we can
compile it on system without cmlr support.

This change makes the jvmti compile with java-1.8.0-ibm package. It's
without the line numbers support, but the rest works.

Adding NO_JVMTI_CMLR compile variable for testing.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ben Gainey <ben.gainey@arm.com>
Cc: Gustavo Luiz Duarte <gduarte@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/20181121154341.21521-1-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/build/feature/Makefile
tools/build/feature/test-jvmti-cmlr.c [new file with mode: 0644]
tools/build/feature/test-jvmti.c
tools/perf/Makefile.config
tools/perf/Makefile.perf
tools/perf/jvmti/libjvmti.c