- Timestamp:
- Jan 2, 2015 12:35:16 PM (10 years ago)
- Location:
- trunk/src/VBox/ExtPacks/VBoxDTrace
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ExtPacks/VBoxDTrace/VBoxDTraceR0/VBoxDTraceR0.cpp
r53678 r53679 1832 1832 DECLEXPORT(void) ModuleTerm(void *hMod) 1833 1833 { 1834 SUPR0Printf("ModuleTerm: IF=%RTbool#1\n", ASMIntAreEnabled());1835 1834 SUPR0TracerDeregisterImpl(hMod, NULL); 1836 SUPR0Printf("ModuleTerm: IF=%RTbool#2\n", ASMIntAreEnabled());1837 1835 dtrace_detach(); 1838 SUPR0Printf("ModuleTerm: IF=%RTbool#3\n", ASMIntAreEnabled());1839 1836 } 1840 1837 … … 1847 1844 DECLEXPORT(int) ModuleInit(void *hMod) 1848 1845 { 1849 SUPR0Printf("ModuleInit: IF=%RTbool#1\n", ASMIntAreEnabled());1850 1851 1846 int rc = dtrace_attach(); 1852 1847 if (rc == DDI_SUCCESS) 1853 1848 { 1854 SUPR0Printf("ModuleInit: IF=%RTbool #2\n", ASMIntAreEnabled());1855 1849 rc = SUPR0TracerRegisterImpl(hMod, NULL, &g_VBoxDTraceReg, &g_pVBoxDTraceHlp); 1856 1850 if (RT_SUCCESS(rc)) 1857 1851 { 1858 SUPR0Printf("ModuleInit: IF=%RTbool #3\n", ASMIntAreEnabled());1859 1852 return rc; 1860 1853 } -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/uts/common/dtrace/dtrace.c
r53677 r53679 7582 7582 VM_BESTFIT | VM_SLEEP); 7583 7583 probe = kmem_zalloc(sizeof (dtrace_probe_t), KM_SLEEP); 7584 SUPR0Printf("dtrace_probe_create: %s id=%u %p\n", name, id, probe);7585 7584 7586 7585 probe->dtpr_id = id; … … 7630 7629 } 7631 7630 7632 SUPR0Printf("dtrace_probe_create: dtrace_nprobes=%u\n", dtrace_nprobes);7633 7631 ASSERT(id - 1 < dtrace_nprobes); 7634 7632 } … … 14872 14870 14873 14871 ASSERT(MUTEX_HELD(&cpu_lock)); 14874 SUPR0Printf("dtrace_attach: IF=%RTbool #1\n", ASMIntAreEnabled());14875 14872 14876 14873 #ifndef VBOX /* Reduce the area a bit just to be sure our vmem fake doesn't blow up. */ … … 14881 14878 NULL, NULL, NULL, 0, VM_SLEEP | VMC_IDENTIFIER); 14882 14879 #endif 14883 SUPR0Printf("dtrace_attach: IF=%RTbool #2\n", ASMIntAreEnabled());14884 14880 #ifndef VBOX 14885 14881 dtrace_minor = vmem_create("dtrace_minor", (void *)DTRACEMNRN_CLONE, … … 14895 14891 14896 14892 ASSERT(MUTEX_HELD(&cpu_lock)); 14897 SUPR0Printf("dtrace_attach: IF=%RTbool #3\n", ASMIntAreEnabled());14898 14893 dtrace_bymod = dtrace_hash_create(offsetof(dtrace_probe_t, dtpr_mod), 14899 14894 offsetof(dtrace_probe_t, dtpr_nextmod), 14900 14895 offsetof(dtrace_probe_t, dtpr_prevmod)); 14901 SUPR0Printf("dtrace_attach: IF=%RTbool #4\n", ASMIntAreEnabled());14902 14896 14903 14897 dtrace_byfunc = dtrace_hash_create(offsetof(dtrace_probe_t, dtpr_func), … … 14927 14921 * pseudo provider. 14928 14922 */ 14929 SUPR0Printf("dtrace_attach: IF=%RTbool #5\n", ASMIntAreEnabled());14930 14923 (void) dtrace_register("dtrace", &dtrace_provider_attr, 14931 14924 DTRACE_PRIV_NONE, 0, &dtrace_provider_ops, NULL, &id); 14932 SUPR0Printf("dtrace_attach: IF=%RTbool #6\n", ASMIntAreEnabled());14933 14925 14934 14926 ASSERT(dtrace_provider != NULL); … … 14937 14929 dtrace_probeid_begin = dtrace_probe_create((dtrace_provider_id_t) 14938 14930 dtrace_provider, NULL, NULL, "BEGIN", 0, NULL); 14939 SUPR0Printf("dtrace_attach: IF=%RTbool #7\n", ASMIntAreEnabled());14940 14931 dtrace_probeid_end = dtrace_probe_create((dtrace_provider_id_t) 14941 14932 dtrace_provider, NULL, NULL, "END", 0, NULL); … … 14947 14938 #endif 14948 14939 mutex_exit(&cpu_lock); 14949 SUPR0Printf("dtrace_attach: IF=%RTbool #8\n", ASMIntAreEnabled());14950 14940 14951 14941 /*
Note:
See TracChangeset
for help on using the changeset viewer.