Changeset 53663 in vbox for trunk/src/VBox/ExtPacks/VBoxDTrace/onnv
- Timestamp:
- Jan 2, 2015 12:31:45 PM (10 years ago)
- Location:
- trunk/src/VBox/ExtPacks/VBoxDTrace/onnv
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_subr.c
r53662 r53663 47 47 # include <unistd.h> 48 48 # endif 49 # include <VBox/sup.h> 49 50 #endif /* VBOX */ 50 51 … … 483 484 { 484 485 const dtrace_vector_t *v = dtp->dt_vector; 486 #ifdef VBOX 487 int rc; 488 #endif 485 489 486 490 if (v != NULL) … … 491 495 return (ioctl(dtp->dt_fd, val, arg)); 492 496 #else 497 # if 1 498 rc = SUPR3CallR0Service(RT_STR_TUPLE("VBoxDTrace"), val, (uintptr_t)arg, NULL); 499 if (RT_SUCCESS(rc)) { 500 501 } 502 # else 493 503 /* Fake ioctl */ 494 504 switch (val) { … … 531 541 532 542 } 533 AssertFailed(); /** @todo FIXME */ 543 # endif 534 544 #endif 535 545 … … 538 548 } 539 549 550 #ifndef /* VBOX - who needs this? */ 540 551 int 541 552 dt_status(dtrace_hdl_t *dtp, processorid_t cpu) … … 553 564 return (v->dtv_status(dtp->dt_varg, cpu)); 554 565 } 566 #endif 555 567 556 568 #ifndef VBOX -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/uts/common/dtrace/dtrace.c
r53647 r53663 14695 14695 * DTrace Driver Cookbook Functions 14696 14696 */ 14697 #ifndef VBOX 14697 14698 /*ARGSUSED*/ 14698 14699 static int 14699 14700 dtrace_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) 14701 #else 14702 int dtrace_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) 14703 #endif 14700 14704 { 14701 14705 dtrace_provider_id_t id; … … 15037 15041 15038 15042 /*ARGSUSED*/ 15043 #ifndef VBOX 15039 15044 static int 15040 15045 dtrace_ioctl(dev_t dev, int cmd, intptr_t arg, int md, cred_t *cr, int *rv) 15046 #else 15047 int dtrace_ioctl(dev_t dev, int cmd, intptr_t arg, int md, cred_t *cr, int *rv) 15048 #endif 15041 15049 { 15042 15050 minor_t minor = getminor(dev); … … 15793 15801 } 15794 15802 15803 #ifndef VBOX 15795 15804 /*ARGSUSED*/ 15796 15805 static int 15797 15806 dtrace_detach(dev_info_t *dip, ddi_detach_cmd_t cmd) 15807 #else 15808 int dtrace_detach(dev_info_t *dip, ddi_detach_cmd_t cmd) 15809 #endif 15798 15810 { 15799 15811 dtrace_state_t *state;
Note:
See TracChangeset
for help on using the changeset viewer.