[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-serviceability-dev
Subject:    Re: Issues with dtrace enabled in OpenJdk 9
From:       Mahesh Pujari <pujarimahesh_kumar () yahoo ! com>
Date:       2015-05-29 10:09:04
Message-ID: 1654770900.500152.1432894144653.JavaMail.yahoo () mail ! yahoo ! com
[Download RAW message or body]

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@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@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
> 



  


[Attachment #3 (text/html)]

<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, \
Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12px"><div \
dir="ltr" id="yui_3_16_0_1_1432892269313_18929"><span \
id="yui_3_16_0_1_1432892269313_18977">Hi,<br style="" class=""><br style="" \
class="">&nbsp;I am able to compile OpenJDK9 with dtrace on Linux container with \
Ubuntu distribution (but still having compilation issues on host machine).<br \
style="" class=""><br style="" class="">Now as I went a step a head, I tried to test \
"method__entry" marker. Below is the script<br style="" class=""><br style="" \
class="">probe process("JDK_PATH/lib/amd64/server/libjvm.so").mark("thread__start") \
{<br style="" class="">&nbsp;&nbsp;&nbsp; printf("Marker thread__start [%s] %d %d %d \
%d\n", user_string($arg1),$arg2,$arg3,$arg4,$arg5);<br style="" class="">}<br \
style="" class=""><br style="" class=""><i \
id="yui_3_16_0_1_1432892269313_20169">Note: Need to replace JDK_PATH with actual \
path.</i><br style="" class=""><br style="" class="">above script did run and I did \
got output as below<br style="" class=""><br style="" class="">Marker thread__start \
[Reference Handler] 17 2 21151 1<br style="" class="">....<br style="" \
class="">....<br style="" class=""><br style="" class=""><br style="" class="">But I \
am not able to use hotspot provider i.e. below script does not run<br style="" \
class=""><br style="" class="">stap -e 'probe hotspot.thread_* { printf("%s: %s%s\n", \
ctime(gettimeofday_s()), name, thread_name) }' \ -c 'java Hello'<br style="" \
class=""><br style="" class="">And I end up in below erorr<br style="" class=""><br \
style="" class="">semantic error: while resolving probe point: identifier 'hotspot' \
at &lt;input&gt;:1:7<br style="" class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
source: probe hotspot.thread_* { printf("%s: %s%s\n", ctime(gettimeofday_s()), name, \
thread_name) }<br style="" \
class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
^<br style="" class=""><br style="" class="">semantic error: probe point mismatch \
(similar: oneshot, tcp, init, scsi, stap): identifier 'hotspot' at :1:7<br style="" \
class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; source: probe hotspot.thread_* { \
printf("%s: %s%s\n", ctime(gettimeofday_s()), name, thread_name) }<br style="" \
class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
^<br style="" class=""><br style="" class="">Can some one point me to where I can get \
hotspot provider or am I missing something.<br style="" class=""><br style="" \
class="">thanks and regards,<br style="" class="">Mahesh Pujari</span></div>  <div \
style="" class="" id="yui_3_16_0_1_1432892269313_18929"><span style="" class=""><br \
style="" class=""></span></div><br><div class="qtdSeparateBR"><br><br></div><div \
style="display: block;" class="yahoo_quoted"> <div style="font-family: HelveticaNeue, \
Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12px;"> <div \
style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, \
sans-serif; font-size: 16px;"> <div dir="ltr"> <font face="Arial" size="2"> On \
Tuesday, May 26, 2015 7:10 PM, Daniel D. Daugherty \
&lt;daniel.daugherty@oracle.com&gt; wrote:<br> </font> </div>  <br><br> <div \
class="y_msg_container">Adding the Serviceability alias.<br clear="none"><br \
clear="none">Dan<br clear="none"><br clear="none"><div class="yqt1899127008" \
id="yqtfd82156"><br clear="none">On 5/25/15 9:52 AM, Mahesh Pujari wrote:<br \
clear="none">&gt; Hi,<br clear="none">&gt;<br clear="none">&gt;&nbsp;  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 <a shape="rect" \
ymailto="mailto:build-dev@openjdk.java.net" \
href="mailto:build-dev@openjdk.java.net">build-dev@openjdk.java.net</a> (<a \
shape="rect" href="http://mail.openjdk.java.net/pipermail/build-dev/2015-May/014969.html" \
target="_blank">http://mail.openjdk.java.net/pipermail/build-dev/2015-May/014969.html</a>) \
and I was directed to this mailing list (including distro-pkg mailing list, but had \
no luck there, so trying out here).<br clear="none">&gt;<br clear="none">&gt;&nbsp;  \
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<br clear="none">&gt; ...<br \
clear="none">&gt; ...<br clear="none">&gt; vmThread.o: In function \
`VMOperationQueue::add(VM_Operation*)':<br clear="none">&gt; \
/mnt/ubuntu/dev/jdk9/hotspot/src/share/vm/runtime/vmThread.cpp:156: undefined \
reference to `__dtrace_hotspot___vmops__request'<br clear="none">&gt; vmThread.o: In \
function `VMThread::evaluate_operation(VM_Operation*)':<br clear="none">&gt; \
/mnt/ubuntu/dev/jdk9/hotspot/src/share/vm/runtime/vmThread.cpp:354: undefined \
reference to `__dtrace_hotspot___vmops__begin'<br clear="none">&gt; \
/mnt/ubuntu/dev/jdk9/hotspot/src/share/vm/runtime/vmThread.cpp:374: undefined \
reference to `__dtrace_hotspot___vmops__end'<br clear="none">&gt; ...<br \
clear="none">&gt; ..<br clear="none">&gt; classLoadingService.o: In function \
`ClassLoadingService::notify_class_unloaded(InstanceKlass*)':<br clear="none">&gt; \
/mnt/ubuntu/dev/jdk9/hotspot/src/share/vm/services/classLoadingService.cpp:119: \
undefined reference to `__dtrace_hotspot___class__unloaded'<br clear="none">&gt; \
classLoadingService.o: In function \
`ClassLoadingService::notify_class_loaded(InstanceKlass*, bool)':<br \
clear="none">&gt; /mnt/ubuntu/dev/jdk9/hotspot/src/share/vm/services/classLoadingService.cpp:144: \
undefined reference to `__dtrace_hotspot___class__loaded'<br clear="none">&gt; \
compileBroker.o: In function \
`CompileBroker::invoke_compiler_on_method(CompileTask*)':<br clear="none">&gt; \
/mnt/ubuntu/dev/jdk9/hotspot/src/share/vm/compiler/compileBroker.cpp:1927: undefined \
reference to `__dtrace_hotspot___method__compile__begin'<br clear="none">&gt; \
/mnt/ubuntu/dev/jdk9/hotspot/src/share/vm/compiler/compileBroker.cpp:2028: undefined \
reference to `__dtrace_hotspot___method__compile__end'<br clear="none">&gt; ...<br \
clear="none">&gt; ...<br clear="none">&gt;<br clear="none">&gt;&nbsp;  Compilation is \
success but during linkage things fail. Can someone help me with this, any directions \
to what I am missing.<br clear="none">&gt;<br clear="none">&gt; thanks and \
regards,<br clear="none">&gt; Mahesh Pujari<br clear="none">&gt;<br clear="none"><br \
clear="none"></div><br><br></div>  </div> </div>  </div></div></body></html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic