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>

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libdtrace/common/dt_dis.c
          +++ new/usr/src/lib/libdtrace/common/dt_dis.c
↓ open down ↓ 18 lines elided ↑ open up ↑
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
  22   22  
  23   23  /*
  24   24   * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  25   25   * Use is subject to license terms.
  26   26   */
  27   27  
  28   28  /*
  29      - * Copyright (c) 2012 by Delphix. All rights reserved.
       29 + * Copyright (c) 2013 by Delphix. All rights reserved.
       30 + * Copyright (c) 2013 Joyent, Inc. All rights reserved.
  30   31   */
  31   32  
  32   33  #include <strings.h>
  33   34  #include <stdio.h>
  34   35  
  35   36  #include <dt_impl.h>
  36   37  #include <dt_ident.h>
  37   38  
  38   39  /*ARGSUSED*/
  39   40  static void
↓ open down ↓ 265 lines elided ↑ open up ↑
 305  306          case CTF_K_CONST:
 306  307                  (void) strcpy(ckind, "const");
 307  308                  break;
 308  309          case CTF_K_RESTRICT:
 309  310                  (void) strcpy(ckind, "restrict");
 310  311                  break;
 311  312          default:
 312  313                  (void) snprintf(ckind, sizeof (ckind), "0x%x", t->dtdt_ckind);
 313  314          }
 314  315  
 315      -        if (t->dtdt_flags & DIF_TF_BYREF) {
 316      -                (void) snprintf(buf, len, "%s (%s) by ref (size %lu)",
 317      -                    kind, ckind, (ulong_t)t->dtdt_size);
      316 +        if (t->dtdt_flags & (DIF_TF_BYREF | DIF_TF_BYUREF)) {
      317 +                (void) snprintf(buf, len, "%s (%s) by %sref (size %lu)",
      318 +                    kind, ckind, (t->dtdt_flags & DIF_TF_BYUREF) ? "user " : "",
      319 +                    (ulong_t)t->dtdt_size);
 318  320          } else {
 319  321                  (void) snprintf(buf, len, "%s (%s) (size %lu)",
 320  322                      kind, ckind, (ulong_t)t->dtdt_size);
 321  323          }
 322  324  
 323  325          return (buf);
 324  326  }
 325  327  
 326  328  static void
 327  329  dt_dis_rtab(const char *rtag, const dtrace_difo_t *dp, FILE *fp,
↓ open down ↓ 197 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX