mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Tested-by: Stephane Eranian <[email protected]> Cc: Andi Kleen <[email protected]> Cc: David Ahern <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: William Cohen <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
This commit is contained in:
parent
2ec8107d8e
commit
285932a258
2 changed files with 18 additions and 1 deletions
|
|
@ -47,7 +47,8 @@ FILES= \
|
|||
test-bpf.bin \
|
||||
test-get_cpuid.bin \
|
||||
test-sdt.bin \
|
||||
test-cxx.bin
|
||||
test-cxx.bin \
|
||||
test-jvmti.bin
|
||||
|
||||
FILES := $(addprefix $(OUTPUT),$(FILES))
|
||||
|
||||
|
|
@ -225,6 +226,9 @@ $(OUTPUT)test-sdt.bin:
|
|||
$(OUTPUT)test-cxx.bin:
|
||||
$(BUILDXX) -std=gnu++11
|
||||
|
||||
$(OUTPUT)test-jvmti.bin:
|
||||
$(BUILD)
|
||||
|
||||
-include $(OUTPUT)*.d
|
||||
|
||||
###############################
|
||||
|
|
|
|||
13
tools/build/feature/test-jvmti.c
Normal file
13
tools/build/feature/test-jvmti.c
Normal file
|
|
@ -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;
|
||||
}
|
||||
Loading…
Reference in a new issue