Changeset 53662 in vbox for trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace
- Timestamp:
- Jan 2, 2015 12:31:37 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_subr.c
r53659 r53662 491 491 return (ioctl(dtp->dt_fd, val, arg)); 492 492 #else 493 /* Fake ioctl */ 494 switch (val) { 495 case DTRACEIOC_CONF: { 496 dtrace_conf_t *pConf = (dtrace_conf_t *)arg; 497 RT_ZERO(*pConf); 498 pConf->dtc_difversion = DIF_VERSION; 499 pConf->dtc_difintregs = DIF_DIR_NREGS; 500 pConf->dtc_diftupregs = DIF_DTR_NREGS; 501 pConf->dtc_ctfmodel = CTF_MODEL_NATIVE; 502 return 0; 503 } 504 505 case DTRACEIOC_PROVIDER: { 506 dtrace_providerdesc_t *pDesc = (dtrace_providerdesc_t *)arg; 507 if (strcmp(pDesc->dtvd_name, "dtrace") == 0) { 508 RT_ZERO(pDesc->dtvd_attr); 509 RT_ZERO(pDesc->dtvd_priv); 510 return 0; 511 } 512 errno = ESRCH; 513 return -1; 514 } 515 516 case DTRACEIOC_PROBES: { 517 /*dtrace_probedesc_t *pDesc = (dtrace_probedesc_t *)arg;*/ 518 errno = ESRCH; 519 return -1; 520 } 521 522 case DTRACEIOC_PROBEMATCH: { 523 dtrace_probedesc_t *pDesc = (dtrace_probedesc_t *)arg; 524 if (strcmp(pDesc->dtpd_name, "BEGIN") == 0) { 525 pDesc->dtpd_id = 1; 526 return 0; 527 } 528 errno = ESRCH; 529 return -1; 530 } 531 532 } 493 533 AssertFailed(); /** @todo FIXME */ 494 534 #endif
Note:
See TracChangeset
for help on using the changeset viewer.