summaryrefslogtreecommitdiffstats
path: root/tools/build/feature/test-jvmti.c
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2016-11-02 14:35:48 +0100
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-11-14 12:40:32 -0300
commit285932a25879602407f207e862bc5b8416711f42 (patch)
treedd1dba610981bd32df832fce92e9edcbcbff582c /tools/build/feature/test-jvmti.c
parent2ec8107d8e0d1d285b2bbf1999e7f4e46b6b535b (diff)
downloadop-kernel-dev-285932a25879602407f207e862bc5b8416711f42.zip
op-kernel-dev-285932a25879602407f207e862bc5b8416711f42.tar.gz
tools build: Add jvmti feature detection support
Adding support to detect jvmti support. It is not plugged into the FEATURE_TESTS machinery, because it's quite rare and will be used separately from perf via feature_check call. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Tested-by: Stephane Eranian <eranian@google.com> Cc: Andi Kleen <andi@firstfloor.org> Cc: David Ahern <dsahern@gmail.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: William Cohen <wcohen@redhat.com> Link: http://lkml.kernel.org/r/1478093749-5602-3-git-send-email-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/build/feature/test-jvmti.c')
-rw-r--r--tools/build/feature/test-jvmti.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/build/feature/test-jvmti.c b/tools/build/feature/test-jvmti.c
new file mode 100644
index 0000000..1c665f0
--- /dev/null
+++ b/tools/build/feature/test-jvmti.c
@@ -0,0 +1,13 @@
+#include <jvmti.h>
+#include <jvmticmlr.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;
+}
OpenPOWER on IntegriCloud