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,34 ****
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
! * Copyright (c) 2012 by Delphix. All rights reserved.
*/
#include <strings.h>
#include <stdio.h>
--- 24,35 ----
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
! * Copyright (c) 2013 by Delphix. All rights reserved.
! * Copyright (c) 2013 Joyent, Inc. All rights reserved.
*/
#include <strings.h>
#include <stdio.h>
*** 310,322 ****
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);
} else {
(void) snprintf(buf, len, "%s (%s) (size %lu)",
kind, ckind, (ulong_t)t->dtdt_size);
}
--- 311,324 ----
break;
default:
(void) snprintf(ckind, sizeof (ckind), "0x%x", t->dtdt_ckind);
}
! 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);
}