mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 04:31:50 +00:00
dd1d0044dd
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>
14 lines
320 B
C
14 lines
320 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#include <jvmti.h>
|
|
|
|
int main(void)
|
|
{
|
|
JavaVM jvm __attribute__((unused));
|
|
jvmtiEventCallbacks cb __attribute__((unused));
|
|
jvmtiCapabilities caps __attribute__((unused));
|
|
jvmtiJlocationFormat format __attribute__((unused));
|
|
jvmtiEnv jvmti __attribute__((unused));
|
|
|
|
return 0;
|
|
}
|