Issues with dtrace enabled in OpenJdk 9
Mahesh Pujari
pujarimahesh_kumar at yahoo.com
Fri May 29 10:09:04 UTC 2015
Hi,
I am able to compile OpenJDK9 with dtrace on Linux container with Ubuntu distribution (but still having compilation issues on host machine).
Now as I went a step a head, I tried to test "method__entry" marker. Below is the script
probe process("JDK_PATH/lib/amd64/server/libjvm.so").mark("thread__start") {
printf("Marker thread__start [%s] %d %d %d %d\n", user_string($arg1),$arg2,$arg3,$arg4,$arg5);
}
Note: Need to replace JDK_PATH with actual path.
above script did run and I did got output as below
Marker thread__start [Reference Handler] 17 2 21151 1
....
....
But I am not able to use hotspot provider i.e. below script does not run
stap -e 'probe hotspot.thread_* { printf("%s: %s%s\n", ctime(gettimeofday_s()), name, thread_name) }' \ -c 'java Hello'
And I end up in below erorr
semantic error: while resolving probe point: identifier 'hotspot' at <input>:1:7
source: probe hotspot.thread_* { printf("%s: %s%s\n", ctime(gettimeofday_s()), name, thread_name) }
^
semantic error: probe point mismatch (similar: oneshot, tcp, init, scsi, stap): identifier 'hotspot' at :1:7
source: probe hotspot.thread_* { printf("%s: %s%s\n", ctime(gettimeofday_s()), name, thread_name) }
^
Can some one point me to where I can get hotspot provider or am I missing something.
thanks and regards,
Mahesh Pujari
On Tuesday, May 26, 2015 7:10 PM, Daniel D. Daugherty <daniel.daugherty at oracle.com> wrote:
Adding the Serviceability alias.
Dan
On 5/25/15 9:52 AM, Mahesh Pujari wrote:
> Hi,
>
> I am trying to build OpenJDK 9 with dtrace enabled on my Ubuntu machine (Linux 3.13.0-45-generic #74-Ubuntu), I have asked this question on build-dev at openjdk.java.net (http://mail.openjdk.java.net/pipermail/build-dev/2015-May/014969.html) and I was directed to this mailing list (including distro-pkg mailing list, but had no luck there, so trying out here).
>
> If SDT headers are found then dtrace is enabled by default, this is what I understood. Now when I build, I end-up with below errors
> ...
> ...
> vmThread.o: In function `VMOperationQueue::add(VM_Operation*)':
> /mnt/ubuntu/dev/jdk9/hotspot/src/share/vm/runtime/vmThread.cpp:156: undefined reference to `__dtrace_hotspot___vmops__request'
> vmThread.o: In function `VMThread::evaluate_operation(VM_Operation*)':
> /mnt/ubuntu/dev/jdk9/hotspot/src/share/vm/runtime/vmThread.cpp:354: undefined reference to `__dtrace_hotspot___vmops__begin'
> /mnt/ubuntu/dev/jdk9/hotspot/src/share/vm/runtime/vmThread.cpp:374: undefined reference to `__dtrace_hotspot___vmops__end'
> ...
> ..
> classLoadingService.o: In function `ClassLoadingService::notify_class_unloaded(InstanceKlass*)':
> /mnt/ubuntu/dev/jdk9/hotspot/src/share/vm/services/classLoadingService.cpp:119: undefined reference to `__dtrace_hotspot___class__unloaded'
> classLoadingService.o: In function `ClassLoadingService::notify_class_loaded(InstanceKlass*, bool)':
> /mnt/ubuntu/dev/jdk9/hotspot/src/share/vm/services/classLoadingService.cpp:144: undefined reference to `__dtrace_hotspot___class__loaded'
> compileBroker.o: In function `CompileBroker::invoke_compiler_on_method(CompileTask*)':
> /mnt/ubuntu/dev/jdk9/hotspot/src/share/vm/compiler/compileBroker.cpp:1927: undefined reference to `__dtrace_hotspot___method__compile__begin'
> /mnt/ubuntu/dev/jdk9/hotspot/src/share/vm/compiler/compileBroker.cpp:2028: undefined reference to `__dtrace_hotspot___method__compile__end'
> ...
> ...
>
> Compilation is success but during linkage things fail. Can someone help me with this, any directions to what I am missing.
>
> thanks and regards,
> Mahesh Pujari
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20150529/40e83b7b/attachment-0001.html>
More information about the serviceability-dev
mailing list