Mercurial > hg > truffle
diff src/os/solaris/vm/attachListener_solaris.cpp @ 1324:e392695de029
6935224: Adding new DTrace probes to work with Palantir
Summary: Adding probes related to thread scheduling and class initialization
Reviewed-by: kamg, never
author | fparain |
---|---|
date | Wed, 17 Mar 2010 11:01:05 +0100 |
parents | a61af66fc99e |
children | a2ea687fdc7c |
line wrap: on
line diff
--- a/src/os/solaris/vm/attachListener_solaris.cpp Tue Mar 16 20:47:17 2010 -0700 +++ b/src/os/solaris/vm/attachListener_solaris.cpp Wed Mar 17 11:01:05 2010 +0100 @@ -668,13 +668,18 @@ } } - if (strcmp(name, "ExtendedDTraceProbes") != 0) { - out->print_cr("flag '%s' cannot be changed", name); - return JNI_ERR; + if (strcmp(name, "ExtendedDTraceProbes") == 0) { + DTrace::set_extended_dprobes(flag); + return JNI_OK; } - DTrace::set_extended_dprobes(flag); - return JNI_OK; + if (strcmp(name, "DTraceMonitorProbes") == 0) { + DTrace::set_monitor_dprobes(flag); + return JNI_OK; + } + + out->print_cr("flag '%s' cannot be changed", name); + return JNI_ERR; } void AttachListener::pd_detachall() {