Print this page
4474 DTrace Userland CTF Support
4475 DTrace userland Keyword
4476 DTrace tests should be better citizens
4479 pid provider types
4480 dof emulation missing checks
Reviewed by: Bryan Cantrill <bryan@joyent.com>

@@ -24,11 +24,12 @@
  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
 /*
- * Copyright (c) 2012 by Delphix. All rights reserved.
+ * Copyright (c) 2013 by Delphix. All rights reserved.
+ * Copyright (c) 2013 Joyent, Inc. All rights reserved.
  */
 
 #include <strings.h>
 #include <stdio.h>
 

@@ -310,13 +311,14 @@
                 break;
         default:
                 (void) snprintf(ckind, sizeof (ckind), "0x%x", t->dtdt_ckind);
         }
 
-        if (t->dtdt_flags & DIF_TF_BYREF) {
-                (void) snprintf(buf, len, "%s (%s) by ref (size %lu)",
-                    kind, ckind, (ulong_t)t->dtdt_size);
+        if (t->dtdt_flags & (DIF_TF_BYREF | DIF_TF_BYUREF)) {
+                (void) snprintf(buf, len, "%s (%s) by %sref (size %lu)",
+                    kind, ckind, (t->dtdt_flags & DIF_TF_BYUREF) ? "user " : "",
+                    (ulong_t)t->dtdt_size);
         } else {
                 (void) snprintf(buf, len, "%s (%s) (size %lu)",
                     kind, ckind, (ulong_t)t->dtdt_size);
         }