[dtrace-discuss] compile error in jdk1.6 sample scripts
Chip Bennett
cbennett at laurustech.com
Mon Dec 4 00:16:00 PST 2006
Steven,
There is no actual exit system call. "exit" is a library subroutine
that eventually calls "rexit" which is actually the name of the system
call, according to the switch table.
As far as why the canned scripts are not working, I noticed the D script
preambles specify the -Z option which allows for probe descriptions that
don't match any probes. However, in your E-mail, you invoke the scripts
with the dtrace command, not using -Z. If you had made the D scripts
executables, and run them directly from the command line, the -Z option
in the script preamble would have prevented the lack of a match for
probe description "syscall::exit:entry" from causing the script to fail.
Chip
Steven Reynolds wrote:
> I am running the sample scripts included in java 1.6, and I am seeing errors. For example:
>
> # dtrace -s class_loading_stat.d -p 7341
> dtrace: failed to compile script class_loading_stat.d: line 156: probe description syscall::exit:entry does not match any probes
> # dtrace -s gc_time_stat.d -p 7341
> dtrace: failed to compile script gc_time_stat.d: line 202: probe description syscall::exit:entry does not match any probes
>
> Other sample scripts are showing errors too.
>
> Lines 155 to 160 from class_loading_stat.d look like this:
>
> syscall::rexit:entry,
> syscall::exit:entry
> /pid == $target/
> {
> exit(0);
> }
>
> If I remove line 156, the script seems to run OK. Is this expected behavior? In other words, is "syscall::exit:entry" valid for some solaris versions?
>
> The details for my system are:
> # uname -a
> SunOS unknown 5.11 snv_52 i86pc i386 i86pc
> # java -version
> java version "1.6.0-rc"
> Java(TM) SE Runtime Environment (build 1.6.0-rc-b100)
> Java HotSpot(TM) Client VM (build 1.6.0-rc-b100, mixed mode, sharing)
>
> The sample scripts are located in
>
> ${JAVA_HOME}/sample/dtrace/hotspot
>
> thanks
> Steven
>
>
> This message posted from opensolaris.org
> ------------------------------------------------------------------------
>
> _______________________________________________
> dtrace-discuss mailing list
> dtrace-discuss at opensolaris.org
More information about the dtrace-discuss
mailing list