[vbox-dev] [PATCH] shorten wait channel name to 6 characters

Ed Maste emaste at freebsd.org
Fri Aug 31 17:27:49 GMT 2012


When wait channel names are displayed in FreeBSD e.g. by top(1), only
6 characters of the string are shown.  This causes VirtualBox processes
to display "IPRT S" which isn't particularly distinctive.

The patch below changes the string to VBoxIS which I hope is distinct and
reasonably meaningful.  I'm not yet familiar enough with VirtualBox's
internals to propose a better name, so if there's a better 6-character
description go ahead and use that.

This patch is provided under the MIT license.

---

diff --git a/src/VBox/Runtime/r0drv/freebsd/sleepqueue-r0drv-freebsd.h b/src/VBox/Runtime/r0drv/freebsd/sleepqueue-r0drv-freebsd.h
index 89e1208..ba88200 100644
--- a/src/VBox/Runtime/r0drv/freebsd/sleepqueue-r0drv-freebsd.h
+++ b/src/VBox/Runtime/r0drv/freebsd/sleepqueue-r0drv-freebsd.h
@@ -198,7 +198,7 @@ DECLINLINE(void) rtR0SemBsdWaitDoIt(PRTR0SEMBSDSLEEP pWait)
     if (pWait->fInterruptible)
         fSleepqFlags |= SLEEPQ_INTERRUPTIBLE;

-    sleepq_add(pWait->pvWaitChan, NULL, "IPRT Semaphore", fSleepqFlags, 0);
+    sleepq_add(pWait->pvWaitChan, NULL, "VBoxIS", fSleepqFlags, 0);

     if (!pWait->fIndefinite)
     {





More information about the vbox-dev mailing list