comparison 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
comparison
equal deleted inserted replaced
1323:cd20a6f46fec 1324:e392695de029
666 out->print_cr("flag value has to be an integer"); 666 out->print_cr("flag value has to be an integer");
667 return JNI_ERR; 667 return JNI_ERR;
668 } 668 }
669 } 669 }
670 670
671 if (strcmp(name, "ExtendedDTraceProbes") != 0) { 671 if (strcmp(name, "ExtendedDTraceProbes") == 0) {
672 out->print_cr("flag '%s' cannot be changed", name); 672 DTrace::set_extended_dprobes(flag);
673 return JNI_ERR; 673 return JNI_OK;
674 } 674 }
675 675
676 DTrace::set_extended_dprobes(flag); 676 if (strcmp(name, "DTraceMonitorProbes") == 0) {
677 return JNI_OK; 677 DTrace::set_monitor_dprobes(flag);
678 return JNI_OK;
679 }
680
681 out->print_cr("flag '%s' cannot be changed", name);
682 return JNI_ERR;
678 } 683 }
679 684
680 void AttachListener::pd_detachall() { 685 void AttachListener::pd_detachall() {
681 DTrace::detach_all_clients(); 686 DTrace::detach_all_clients();
682 } 687 }