2008-04-25 09:04:09 +00:00
|
|
|
/*
|
|
|
|
* CDDL HEADER START
|
|
|
|
*
|
|
|
|
* The contents of this file are subject to the terms of the
|
|
|
|
* Common Development and Distribution License (the "License").
|
|
|
|
* You may not use this file except in compliance with the License.
|
|
|
|
*
|
|
|
|
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
|
|
|
|
* or http://www.opensolaris.org/os/licensing.
|
|
|
|
* See the License for the specific language governing permissions
|
|
|
|
* and limitations under the License.
|
|
|
|
*
|
|
|
|
* When distributing Covered Code, include this CDDL HEADER in each
|
|
|
|
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
|
|
|
|
* If applicable, add the following below this CDDL HEADER, with the
|
|
|
|
* fields enclosed by brackets "[]" replaced with your own identifying
|
|
|
|
* information: Portions Copyright [yyyy] [name of copyright owner]
|
|
|
|
*
|
|
|
|
* CDDL HEADER END
|
|
|
|
*/
|
2012-08-19 09:20:22 +00:00
|
|
|
|
2008-04-25 09:04:09 +00:00
|
|
|
/*
|
Update DTrace userland code to the latest available.
Summary of changes:
- libdtrace
changeset: 12902:3bb859a7330c
user: Bryan Cantrill <Bryan.Cantrill@Sun.COM>
date: Fri Jul 23 17:34:02 2010 -0700
summary: 6679140 asymmetric alloc/dealloc activity can induce dynamic variable drops
changeset: 12692:4341b447c069
user: Ali Bahrami <Ali.Bahrami@Oracle.COM>
date: Thu Jun 24 18:16:42 2010 -0600
summary: 6916796 OSnet mapfiles should use version 2 link-editor syntax
changeset: 12507:501806a754d2
user: Alan Maguire <Alan.Maguire@Sun.COM>
date: Thu May 27 17:29:51 2010 -0400
summary: PSARC 2010/106 DTrace TCP and UDP providers
changeset: 11798:1e7f1f154004
user: Roger A. Faulkner <Roger.Faulkner@Sun.COM>
date: Sun Feb 28 18:42:20 2010 -0800
summary: PSARC 2009/657 delete obsolete system call traps
changeset: 11466:d60272412fb0
user: Roger A. Faulkner <Roger.Faulkner@Sun.COM>
date: Mon Jan 11 17:42:13 2010 -0800
summary: 6915578 MUTEX_HELD() and RW_LOCK_HELD() macros should be available to Posix threads
changeset: 11237:0d23e47ed228
user: Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date: Thu Dec 03 13:39:19 2009 +0000
summary: 6795386 macro arguments and globbing in DTrace probe descriptions don't mix
changeset: 10791:944abfb5b345
user: Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date: Wed Oct 14 11:25:23 2009 +0100
summary: 6886953 large symbols lead to stack exhaustion
changeset: 10326:8e3fbeec2d76
user: Siddheshwar Mahesh <Siddheshwar.Mahesh@Sun.COM>
date: Mon Aug 17 13:26:49 2009 -0500
summary: 6868411 NFS provider generates error on ci_remote on RDMA operations
changeset: 10207:87c40ea3fc4b
user: jmcp <James.McPherson@Sun.COM>
date: Wed Jul 29 16:56:03 2009 -0700
summary: 6864230 hiho, hiho, it'ch chtime for CH to go
changeset: 10044:2643c1cd9e2a
user: Priya Krishnan <Priya.Krishnan@Sun.COM>
date: Mon Jul 06 21:19:41 2009 -0400
summary: 6855027 iscsit.d breaks dtrace in osol based on snv_117
changeset: 9900:1b86d65a4f9e
user: Ali Bahrami <Ali.Bahrami@Sun.COM>
date: Thu Jun 18 13:16:39 2009 -0600
summary: 6851224 elf_getshnum() and elf_getshstrndx() incompatible with 2002 ELF gABI agreement
changeset: 9885:a3d5e9d9e779
user: Robert Mastors <Robert.Mastors@Sun.COM>
date: Tue Jun 16 15:25:25 2009 -0500
summary: 6711844 assert: vp->v_shrlocks == 0L, file: ../../common/fs/vnode.c, line: 2333
changeset: 9881:741c9e4e094c
user: Charles Ting <Charles.Ting@Sun.COM>
date: Tue Jun 16 14:51:40 2009 -0400
summary: 6849606 SRP DTrace Probe for xfer-done misses completion of READ transfers
changeset: 9829:e8059fcaee97
user: Charles Ting <Charles.Ting@Sun.COM>
date: Tue Jun 09 10:11:35 2009 -0400
summary: 6804431 Add Dtrace probes to SRPT
changeset: 9812:a2990074321f
user: Priya Krishnan <Priya.Krishnan@Sun.COM>
date: Mon Jun 08 09:49:48 2009 -0400
summary: 6847237 The iscsit.d DTrace translator should include iscsi.d for the definition of iscsiinfo_t
changeset: 9721:4f7e194c7c37
user: Priya Krishnan <Priya.Krishnan@Sun.COM>
date: Tue May 26 10:40:43 2009 -0400
summary: 6809997 COMSTAR iscsi target DTrace Provider needed
changeset: 9625:8aa5731291b4
user: Sam Cramer <Sam.Cramer@Sun.COM>
date: Wed May 13 17:10:06 2009 -0700
summary: 6840354 "/usr/lib/dtrace/fc.d", line 59: syntax error near "fct_local_port_t"
changeset: 9609:8874cc8d5e3f
user: Sam Cramer <Sam.Cramer@Sun.COM>
date: Mon May 11 21:02:27 2009 -0700
summary: 6809580 fct DTrace providers needed for qlt
changeset: 9578:c4b38ec17f4e
user: Sam Cramer <Sam.Cramer@Sun.COM>
date: Fri May 08 12:12:40 2009 -0700
summary: 6809580 fct DTrace providers needed for qlt
changeset: 9531:dc8924ef7839
user: Rafael Vanoni <rafael.vanoni@sun.com>
date: Mon May 04 11:48:15 2009 -0700
summary: 6730130 dtrace missing printf handler for stdev
changeset: 9389:750ed3471e90
user: Vamsi Nagineni <Vamsi.Krishna@Sun.COM>
date: Fri Apr 17 06:26:47 2009 -0700
summary: 6812050 dtrace should translate curpsinfo->pr_contract
changeset: 9085:ff7eb0bace56
user: Ali Bahrami <Ali.Bahrami@Sun.COM>
date: Wed Mar 18 13:28:28 2009 -0600
summary: 6813909 generalize eh_frame support to non-amd64 platforms
changeset: 8803:8c01b39012c9
user: Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date: Fri Feb 13 07:13:13 2009 +0000
summary: PSARC 2008/480 DTrace CPC Provider
changeset: 8744:03d5725cda56
user: Ali Bahrami <Ali.Bahrami@Sun.COM>
date: Tue Feb 10 09:38:02 2009 -0700
summary: 6798660 Cadmium .NOT file processing problem with CWD relative file paths
changeset: 8337:079ecc003ca6
user: Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date: Thu Dec 11 11:26:47 2008 +0000
summary: 6750659 drti.o crashes app due to corrupt environment
changeset: 7991:d3b751ef3d85
user: Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date: Mon Nov 03 10:26:23 2008 +0000
summary: 6738982 Representative thread after DTrace stop() action is incorrect
changeset: 7208:568549b138d8
user: vv149972
date: Mon Jul 28 23:14:31 2008 -0700
summary: 6696397 NFS v3 provider reports all UDP clients as 0.0.0.0
changeset: 6878:360e73ea6b0c
user: brendan
date: Fri Jun 13 19:06:55 2008 -0700
summary: PSARC 2008/302 DTrace IP Provider
changeset: 6554:b5817e112852
user: ahl
date: Mon May 05 14:38:24 2008 -0700
summary: 6677812 race between dtrace activities in non-local zones
----
- ctf tools:
changeset: 12177:800b7f847f1e
user: Surya Prakki <Surya.Prakki@Sun.COM>
date: Sun Apr 18 23:59:57 2010 -0700
summary: 6941452 ctfconvert fails on VLAs with code generated by SS12u1
changeset: 11432:c1c450bf62f2
user: John Levon <john.levon@sun.com>
date: Tue Jan 05 06:57:53 2010 -0800
summary: 6905711 anonymous and empty SOUs crash ctfconvert
changeset: 11227:cd2ac59c39f2
user: Ali Bahrami <Ali.Bahrami@Sun.COM>
date: Wed Dec 02 15:37:55 2009 -0700
summary: 6900241 ld should track SHT_GROUP sections by symbol name, not section name
changeset: 10380:5394a7172e1f
user: Ali Bahrami <Ali.Bahrami@Sun.COM>
date: Tue Aug 25 13:51:43 2009 -0600
summary: 6866605 SUNWonbld ELF analysis tools need overhaul (fix ctfmerge/libc dependency)
changeset: 10207:87c40ea3fc4b
user: jmcp <James.McPherson@Sun.COM>
date: Wed Jul 29 16:56:03 2009 -0700
summary: 6864230 hiho, hiho, it'ch chtime for CH to go
changeset: 10206:51f52702df72
user: John Levon <john.levon@sun.com>
date: Wed Jul 29 14:36:30 2009 -0700
summary: 6854065 CTF tools should error out given 1024+-member structures
changeset: 7230:429b4f7acf1a
user: sn199410
date: Wed Jul 30 16:10:30 2008 -0700
summary: 6575435 ctf tools cannot handle C99 VLAs ("variable length arrays")
changeset: 6936:72189fcd99e4
user: sommerfe
date: Sun Jun 22 09:13:44 2008 -0700
summary: 6716983 left-for-dead ctfmerge worker threads awake to take out maker
----
- dtrace command utility:
changeset: 12507:501806a754d2
user: Alan Maguire <Alan.Maguire@Sun.COM>
date: Thu May 27 17:29:51 2010 -0400
summary: PSARC 2010/106 DTrace TCP and UDP providers
changeset: 11838:32bb5d254240
user: Liane Praza <Liane.Praza@Sun.COM>
date: Tue Mar 02 19:29:26 2010 -0700
summary: PSARC 2010/067 Interim modernization updates
changeset: 11270:47a962fe7b45
user: Frank Van Der Linden <Frank.Vanderlinden@Sun.COM>
date: Mon Dec 07 13:47:36 2009 -0800
summary: 6907170 fix for 6875656 left out updates to DTrace test suite
changeset: 11237:0d23e47ed228
user: Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date: Thu Dec 03 13:39:19 2009 +0000
summary: 6795386 macro arguments and globbing in DTrace probe descriptions don't mix
changeset: 11153:dec430d20576
user: Frank Van Der Linden <Frank.Vanderlinden@Sun.COM>
date: Sun Nov 22 19:22:26 2009 -0800
summary: 6875656 xdt needs to support more XenTrace probes
changeset: 11102:b91faef0c984
user: Gavin Maltby <Gavin.Maltby@Sun.COM>
date: Thu Nov 19 15:28:11 2009 +1100
summary: PSARC/2009/554 door_xcreate - extended door creation interface for private doors
changeset: 11066:cebb50cbe4f9
user: Rafael Vanoni <rafael.vanoni@sun.com>
date: Fri Nov 13 01:32:32 2009 -0800
summary: PSARC/2009/396 Tickless Kernel Architecture / lbolt decoupling
changeset: 10791:944abfb5b345
user: Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date: Wed Oct 14 11:25:23 2009 +0100
summary: 6886953 large symbols lead to stack exhaustion
changeset: 10207:87c40ea3fc4b
user: jmcp <James.McPherson@Sun.COM>
date: Wed Jul 29 16:56:03 2009 -0700
summary: 6864230 hiho, hiho, it'ch chtime for CH to go
changeset: 9531:dc8924ef7839
user: Rafael Vanoni <rafael.vanoni@sun.com>
date: Mon May 04 11:48:15 2009 -0700
summary: 6730130 dtrace missing printf handler for stdev
changeset: 9397:e667d620a75c
user: Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date: Mon Apr 20 07:58:44 2009 +0100
summary: 6806023 cpc provider event name validation needs to be a bit tighter
changeset: 8803:8c01b39012c9
user: Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date: Fri Feb 13 07:13:13 2009 +0000
summary: PSARC 2008/480 DTrace CPC Provider
changeset: 8605:0189cb9c5358
user: Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date: Thu Jan 22 12:09:13 2009 +0000
summary: 6749441 intrstat(1M) shows zeroed values after suspend/resume
changeset: 8337:079ecc003ca6
user: Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date: Thu Dec 11 11:26:47 2008 +0000
summary: 6750659 drti.o crashes app due to corrupt environment
changeset: 8287:771477e4b843
user: John Sonnenschein <John.Sonnenschein@Sun.COM>
date: Fri Dec 05 19:08:38 2008 -0800
summary: PSARC 2005/462 Removal of Perl 5.6.1 from Solaris 11
changeset: 7991:d3b751ef3d85
user: Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date: Mon Nov 03 10:26:23 2008 +0000
summary: 6738982 Representative thread after DTrace stop() action is incorrect
changeset: 7502:da077e5d991e
user: Aruna Ramakrishna <aruna@cs.umn.edu>
date: Sat Sep 06 05:36:02 2008 -0400
summary: 6706947 tcp_trace should be replaced with dtrace probes.
changeset: 7484:a48e950bad22
user: Tom Erickson <tomee@eng.sun.com>
date: Wed Sep 03 15:14:25 2008 -0700
summary: 6737926 getAggregate() method fails to specify anonymous aggregation explicitly
changeset: 7299:d9a056040774
user: John Beck <John.Beck@Sun.COM>
date: Thu Aug 07 12:44:26 2008 -0700
summary: 6734627 protocmp complains about opt/SUNWdtrt/README after TW -> Hg switch
changeset: 6998:58787ea78303
user: brendan
date: Tue Jul 01 18:28:22 2008 -0700
summary: 6721426 tst.sdtargs.d passes despite dtrace "invalid address" error
changeset: 6878:360e73ea6b0c
user: brendan
date: Fri Jun 13 19:06:55 2008 -0700
summary: PSARC 2008/302 DTrace IP Provider
changeset: 6670:1961a43f2335
user: tariq
date: Tue May 20 15:08:16 2008 -0700
summary: 6685348 Hypervisor event provider for DTrace
changeset: 6554:b5817e112852
user: ahl
date: Mon May 05 14:38:24 2008 -0700
summary: 6677812 race between dtrace activities in non-local zones
changeset: 6543:465433824d87
user: rie
date: Fri May 02 15:01:06 2008 -0700
summary: 6683064 check_rtime could do with some spring cleaning
2010-08-02 12:13:33 +00:00
|
|
|
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
|
2008-04-25 09:04:09 +00:00
|
|
|
* Use is subject to license terms.
|
|
|
|
*/
|
|
|
|
|
2012-08-19 09:20:22 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2012 by Delphix. All rights reserved.
|
2013-11-20 11:02:18 +00:00
|
|
|
* Copyright (c) 2013, Joyent, Inc. All rights reserved.
|
2012-08-19 09:20:22 +00:00
|
|
|
*/
|
|
|
|
|
2008-04-25 09:04:09 +00:00
|
|
|
#include <strings.h>
|
|
|
|
#include <dt_impl.h>
|
|
|
|
|
|
|
|
static const struct {
|
|
|
|
int err;
|
|
|
|
const char *msg;
|
|
|
|
} _dt_errlist[] = {
|
|
|
|
{ EDT_VERSION, "Client requested version newer than library" },
|
|
|
|
{ EDT_VERSINVAL, "Version is not properly formatted or is too large" },
|
|
|
|
{ EDT_VERSUNDEF, "Requested version is not supported by compiler" },
|
|
|
|
{ EDT_VERSREDUCED, "Requested version conflicts with earlier setting" },
|
|
|
|
{ EDT_CTF, "Unexpected libctf error" },
|
|
|
|
{ EDT_COMPILER, "Error in D program compilation" },
|
|
|
|
{ EDT_NOTUPREG, "Insufficient tuple registers to generate code" },
|
|
|
|
{ EDT_NOMEM, "Memory allocation failure" },
|
|
|
|
{ EDT_INT2BIG, "Integer constant table limit exceeded" },
|
|
|
|
{ EDT_STR2BIG, "String constant table limit exceeded" },
|
|
|
|
{ EDT_NOMOD, "Unknown module name" },
|
|
|
|
{ EDT_NOPROV, "Unknown provider name" },
|
|
|
|
{ EDT_NOPROBE, "No probe matches description" },
|
|
|
|
{ EDT_NOSYM, "Unknown symbol name" },
|
|
|
|
{ EDT_NOSYMADDR, "No symbol corresponds to address" },
|
|
|
|
{ EDT_NOTYPE, "Unknown type name" },
|
|
|
|
{ EDT_NOVAR, "Unknown variable name" },
|
|
|
|
{ EDT_NOAGG, "Unknown aggregation name" },
|
|
|
|
{ EDT_BADSCOPE, "Improper use of scoping operator in type name" },
|
|
|
|
{ EDT_BADSPEC, "Overspecified probe description" },
|
|
|
|
{ EDT_BADSPCV, "Undefined macro variable in probe description" },
|
|
|
|
{ EDT_BADID, "Unknown probe identifier" },
|
|
|
|
{ EDT_NOTLOADED, "Module is no longer loaded" },
|
|
|
|
{ EDT_NOCTF, "Module does not contain any CTF data" },
|
|
|
|
{ EDT_DATAMODEL, "Module and program data models do not match" },
|
|
|
|
{ EDT_DIFVERS, "Library uses newer DIF version than kernel" },
|
|
|
|
{ EDT_BADAGG, "Unknown aggregating action" },
|
|
|
|
{ EDT_FIO, "Error occurred while reading from input stream" },
|
|
|
|
{ EDT_DIFINVAL, "DIF program content is invalid" },
|
|
|
|
{ EDT_DIFSIZE, "DIF program exceeds maximum program size" },
|
|
|
|
{ EDT_DIFFAULT, "DIF program contains invalid pointer" },
|
|
|
|
{ EDT_BADPROBE, "Invalid probe specification" },
|
|
|
|
{ EDT_BADPGLOB, "Probe description has too many globbing characters" },
|
|
|
|
{ EDT_NOSCOPE, "Declaration scope stack underflow" },
|
|
|
|
{ EDT_NODECL, "Declaration stack underflow" },
|
|
|
|
{ EDT_DMISMATCH, "Data record list does not match statement" },
|
|
|
|
{ EDT_DOFFSET, "Data record offset exceeds buffer boundary" },
|
|
|
|
{ EDT_DALIGN, "Data record has inappropriate alignment" },
|
|
|
|
{ EDT_BADOPTNAME, "Invalid option name" },
|
|
|
|
{ EDT_BADOPTVAL, "Invalid value for specified option" },
|
|
|
|
{ EDT_BADOPTCTX, "Option cannot be used from within a D program" },
|
|
|
|
{ EDT_CPPFORK, "Failed to fork preprocessor" },
|
|
|
|
{ EDT_CPPEXEC, "Failed to exec preprocessor" },
|
|
|
|
{ EDT_CPPENT, "Preprocessor not found" },
|
|
|
|
{ EDT_CPPERR, "Preprocessor failed to process input program" },
|
|
|
|
{ EDT_SYMOFLOW, "Symbol table identifier space exhausted" },
|
|
|
|
{ EDT_ACTIVE, "Operation illegal when tracing is active" },
|
|
|
|
{ EDT_DESTRUCTIVE, "Destructive actions not allowed" },
|
|
|
|
{ EDT_NOANON, "No anonymous tracing state" },
|
|
|
|
{ EDT_ISANON, "Can't claim anonymous state and enable probes" },
|
|
|
|
{ EDT_ENDTOOBIG, "END enablings exceed size of principal buffer" },
|
|
|
|
{ EDT_NOCONV, "Failed to load type for printf conversion" },
|
|
|
|
{ EDT_BADCONV, "Incomplete printf conversion" },
|
|
|
|
{ EDT_BADERROR, "Invalid library ERROR action" },
|
|
|
|
{ EDT_ERRABORT, "Abort due to error" },
|
|
|
|
{ EDT_DROPABORT, "Abort due to drop" },
|
|
|
|
{ EDT_DIRABORT, "Abort explicitly directed" },
|
|
|
|
{ EDT_BADRVAL, "Invalid return value from callback" },
|
|
|
|
{ EDT_BADNORMAL, "Invalid normalization" },
|
|
|
|
{ EDT_BUFTOOSMALL, "Enabling exceeds size of buffer" },
|
|
|
|
{ EDT_BADTRUNC, "Invalid truncation" },
|
|
|
|
{ EDT_BUSY, "DTrace cannot be used when kernel debugger is active" },
|
|
|
|
{ EDT_ACCESS, "DTrace requires additional privileges" },
|
|
|
|
{ EDT_NOENT, "DTrace device not available on system" },
|
|
|
|
{ EDT_BRICKED, "Abort due to systemic unresponsiveness" },
|
|
|
|
{ EDT_HARDWIRE, "Failed to load language definitions" },
|
|
|
|
{ EDT_ELFVERSION, "libelf is out-of-date with respect to libdtrace" },
|
|
|
|
{ EDT_NOBUFFERED, "Attempt to buffer output without handler" },
|
|
|
|
{ EDT_UNSTABLE, "Description matched an unstable set of probes" },
|
|
|
|
{ EDT_BADSETOPT, "Invalid setopt() library action" },
|
|
|
|
{ EDT_BADSTACKPC, "Invalid stack program counter size" },
|
|
|
|
{ EDT_BADAGGVAR, "Invalid aggregation variable identifier" },
|
Update DTrace userland code to the latest available.
Summary of changes:
- libdtrace
changeset: 12902:3bb859a7330c
user: Bryan Cantrill <Bryan.Cantrill@Sun.COM>
date: Fri Jul 23 17:34:02 2010 -0700
summary: 6679140 asymmetric alloc/dealloc activity can induce dynamic variable drops
changeset: 12692:4341b447c069
user: Ali Bahrami <Ali.Bahrami@Oracle.COM>
date: Thu Jun 24 18:16:42 2010 -0600
summary: 6916796 OSnet mapfiles should use version 2 link-editor syntax
changeset: 12507:501806a754d2
user: Alan Maguire <Alan.Maguire@Sun.COM>
date: Thu May 27 17:29:51 2010 -0400
summary: PSARC 2010/106 DTrace TCP and UDP providers
changeset: 11798:1e7f1f154004
user: Roger A. Faulkner <Roger.Faulkner@Sun.COM>
date: Sun Feb 28 18:42:20 2010 -0800
summary: PSARC 2009/657 delete obsolete system call traps
changeset: 11466:d60272412fb0
user: Roger A. Faulkner <Roger.Faulkner@Sun.COM>
date: Mon Jan 11 17:42:13 2010 -0800
summary: 6915578 MUTEX_HELD() and RW_LOCK_HELD() macros should be available to Posix threads
changeset: 11237:0d23e47ed228
user: Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date: Thu Dec 03 13:39:19 2009 +0000
summary: 6795386 macro arguments and globbing in DTrace probe descriptions don't mix
changeset: 10791:944abfb5b345
user: Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date: Wed Oct 14 11:25:23 2009 +0100
summary: 6886953 large symbols lead to stack exhaustion
changeset: 10326:8e3fbeec2d76
user: Siddheshwar Mahesh <Siddheshwar.Mahesh@Sun.COM>
date: Mon Aug 17 13:26:49 2009 -0500
summary: 6868411 NFS provider generates error on ci_remote on RDMA operations
changeset: 10207:87c40ea3fc4b
user: jmcp <James.McPherson@Sun.COM>
date: Wed Jul 29 16:56:03 2009 -0700
summary: 6864230 hiho, hiho, it'ch chtime for CH to go
changeset: 10044:2643c1cd9e2a
user: Priya Krishnan <Priya.Krishnan@Sun.COM>
date: Mon Jul 06 21:19:41 2009 -0400
summary: 6855027 iscsit.d breaks dtrace in osol based on snv_117
changeset: 9900:1b86d65a4f9e
user: Ali Bahrami <Ali.Bahrami@Sun.COM>
date: Thu Jun 18 13:16:39 2009 -0600
summary: 6851224 elf_getshnum() and elf_getshstrndx() incompatible with 2002 ELF gABI agreement
changeset: 9885:a3d5e9d9e779
user: Robert Mastors <Robert.Mastors@Sun.COM>
date: Tue Jun 16 15:25:25 2009 -0500
summary: 6711844 assert: vp->v_shrlocks == 0L, file: ../../common/fs/vnode.c, line: 2333
changeset: 9881:741c9e4e094c
user: Charles Ting <Charles.Ting@Sun.COM>
date: Tue Jun 16 14:51:40 2009 -0400
summary: 6849606 SRP DTrace Probe for xfer-done misses completion of READ transfers
changeset: 9829:e8059fcaee97
user: Charles Ting <Charles.Ting@Sun.COM>
date: Tue Jun 09 10:11:35 2009 -0400
summary: 6804431 Add Dtrace probes to SRPT
changeset: 9812:a2990074321f
user: Priya Krishnan <Priya.Krishnan@Sun.COM>
date: Mon Jun 08 09:49:48 2009 -0400
summary: 6847237 The iscsit.d DTrace translator should include iscsi.d for the definition of iscsiinfo_t
changeset: 9721:4f7e194c7c37
user: Priya Krishnan <Priya.Krishnan@Sun.COM>
date: Tue May 26 10:40:43 2009 -0400
summary: 6809997 COMSTAR iscsi target DTrace Provider needed
changeset: 9625:8aa5731291b4
user: Sam Cramer <Sam.Cramer@Sun.COM>
date: Wed May 13 17:10:06 2009 -0700
summary: 6840354 "/usr/lib/dtrace/fc.d", line 59: syntax error near "fct_local_port_t"
changeset: 9609:8874cc8d5e3f
user: Sam Cramer <Sam.Cramer@Sun.COM>
date: Mon May 11 21:02:27 2009 -0700
summary: 6809580 fct DTrace providers needed for qlt
changeset: 9578:c4b38ec17f4e
user: Sam Cramer <Sam.Cramer@Sun.COM>
date: Fri May 08 12:12:40 2009 -0700
summary: 6809580 fct DTrace providers needed for qlt
changeset: 9531:dc8924ef7839
user: Rafael Vanoni <rafael.vanoni@sun.com>
date: Mon May 04 11:48:15 2009 -0700
summary: 6730130 dtrace missing printf handler for stdev
changeset: 9389:750ed3471e90
user: Vamsi Nagineni <Vamsi.Krishna@Sun.COM>
date: Fri Apr 17 06:26:47 2009 -0700
summary: 6812050 dtrace should translate curpsinfo->pr_contract
changeset: 9085:ff7eb0bace56
user: Ali Bahrami <Ali.Bahrami@Sun.COM>
date: Wed Mar 18 13:28:28 2009 -0600
summary: 6813909 generalize eh_frame support to non-amd64 platforms
changeset: 8803:8c01b39012c9
user: Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date: Fri Feb 13 07:13:13 2009 +0000
summary: PSARC 2008/480 DTrace CPC Provider
changeset: 8744:03d5725cda56
user: Ali Bahrami <Ali.Bahrami@Sun.COM>
date: Tue Feb 10 09:38:02 2009 -0700
summary: 6798660 Cadmium .NOT file processing problem with CWD relative file paths
changeset: 8337:079ecc003ca6
user: Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date: Thu Dec 11 11:26:47 2008 +0000
summary: 6750659 drti.o crashes app due to corrupt environment
changeset: 7991:d3b751ef3d85
user: Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date: Mon Nov 03 10:26:23 2008 +0000
summary: 6738982 Representative thread after DTrace stop() action is incorrect
changeset: 7208:568549b138d8
user: vv149972
date: Mon Jul 28 23:14:31 2008 -0700
summary: 6696397 NFS v3 provider reports all UDP clients as 0.0.0.0
changeset: 6878:360e73ea6b0c
user: brendan
date: Fri Jun 13 19:06:55 2008 -0700
summary: PSARC 2008/302 DTrace IP Provider
changeset: 6554:b5817e112852
user: ahl
date: Mon May 05 14:38:24 2008 -0700
summary: 6677812 race between dtrace activities in non-local zones
----
- ctf tools:
changeset: 12177:800b7f847f1e
user: Surya Prakki <Surya.Prakki@Sun.COM>
date: Sun Apr 18 23:59:57 2010 -0700
summary: 6941452 ctfconvert fails on VLAs with code generated by SS12u1
changeset: 11432:c1c450bf62f2
user: John Levon <john.levon@sun.com>
date: Tue Jan 05 06:57:53 2010 -0800
summary: 6905711 anonymous and empty SOUs crash ctfconvert
changeset: 11227:cd2ac59c39f2
user: Ali Bahrami <Ali.Bahrami@Sun.COM>
date: Wed Dec 02 15:37:55 2009 -0700
summary: 6900241 ld should track SHT_GROUP sections by symbol name, not section name
changeset: 10380:5394a7172e1f
user: Ali Bahrami <Ali.Bahrami@Sun.COM>
date: Tue Aug 25 13:51:43 2009 -0600
summary: 6866605 SUNWonbld ELF analysis tools need overhaul (fix ctfmerge/libc dependency)
changeset: 10207:87c40ea3fc4b
user: jmcp <James.McPherson@Sun.COM>
date: Wed Jul 29 16:56:03 2009 -0700
summary: 6864230 hiho, hiho, it'ch chtime for CH to go
changeset: 10206:51f52702df72
user: John Levon <john.levon@sun.com>
date: Wed Jul 29 14:36:30 2009 -0700
summary: 6854065 CTF tools should error out given 1024+-member structures
changeset: 7230:429b4f7acf1a
user: sn199410
date: Wed Jul 30 16:10:30 2008 -0700
summary: 6575435 ctf tools cannot handle C99 VLAs ("variable length arrays")
changeset: 6936:72189fcd99e4
user: sommerfe
date: Sun Jun 22 09:13:44 2008 -0700
summary: 6716983 left-for-dead ctfmerge worker threads awake to take out maker
----
- dtrace command utility:
changeset: 12507:501806a754d2
user: Alan Maguire <Alan.Maguire@Sun.COM>
date: Thu May 27 17:29:51 2010 -0400
summary: PSARC 2010/106 DTrace TCP and UDP providers
changeset: 11838:32bb5d254240
user: Liane Praza <Liane.Praza@Sun.COM>
date: Tue Mar 02 19:29:26 2010 -0700
summary: PSARC 2010/067 Interim modernization updates
changeset: 11270:47a962fe7b45
user: Frank Van Der Linden <Frank.Vanderlinden@Sun.COM>
date: Mon Dec 07 13:47:36 2009 -0800
summary: 6907170 fix for 6875656 left out updates to DTrace test suite
changeset: 11237:0d23e47ed228
user: Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date: Thu Dec 03 13:39:19 2009 +0000
summary: 6795386 macro arguments and globbing in DTrace probe descriptions don't mix
changeset: 11153:dec430d20576
user: Frank Van Der Linden <Frank.Vanderlinden@Sun.COM>
date: Sun Nov 22 19:22:26 2009 -0800
summary: 6875656 xdt needs to support more XenTrace probes
changeset: 11102:b91faef0c984
user: Gavin Maltby <Gavin.Maltby@Sun.COM>
date: Thu Nov 19 15:28:11 2009 +1100
summary: PSARC/2009/554 door_xcreate - extended door creation interface for private doors
changeset: 11066:cebb50cbe4f9
user: Rafael Vanoni <rafael.vanoni@sun.com>
date: Fri Nov 13 01:32:32 2009 -0800
summary: PSARC/2009/396 Tickless Kernel Architecture / lbolt decoupling
changeset: 10791:944abfb5b345
user: Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date: Wed Oct 14 11:25:23 2009 +0100
summary: 6886953 large symbols lead to stack exhaustion
changeset: 10207:87c40ea3fc4b
user: jmcp <James.McPherson@Sun.COM>
date: Wed Jul 29 16:56:03 2009 -0700
summary: 6864230 hiho, hiho, it'ch chtime for CH to go
changeset: 9531:dc8924ef7839
user: Rafael Vanoni <rafael.vanoni@sun.com>
date: Mon May 04 11:48:15 2009 -0700
summary: 6730130 dtrace missing printf handler for stdev
changeset: 9397:e667d620a75c
user: Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date: Mon Apr 20 07:58:44 2009 +0100
summary: 6806023 cpc provider event name validation needs to be a bit tighter
changeset: 8803:8c01b39012c9
user: Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date: Fri Feb 13 07:13:13 2009 +0000
summary: PSARC 2008/480 DTrace CPC Provider
changeset: 8605:0189cb9c5358
user: Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date: Thu Jan 22 12:09:13 2009 +0000
summary: 6749441 intrstat(1M) shows zeroed values after suspend/resume
changeset: 8337:079ecc003ca6
user: Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date: Thu Dec 11 11:26:47 2008 +0000
summary: 6750659 drti.o crashes app due to corrupt environment
changeset: 8287:771477e4b843
user: John Sonnenschein <John.Sonnenschein@Sun.COM>
date: Fri Dec 05 19:08:38 2008 -0800
summary: PSARC 2005/462 Removal of Perl 5.6.1 from Solaris 11
changeset: 7991:d3b751ef3d85
user: Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date: Mon Nov 03 10:26:23 2008 +0000
summary: 6738982 Representative thread after DTrace stop() action is incorrect
changeset: 7502:da077e5d991e
user: Aruna Ramakrishna <aruna@cs.umn.edu>
date: Sat Sep 06 05:36:02 2008 -0400
summary: 6706947 tcp_trace should be replaced with dtrace probes.
changeset: 7484:a48e950bad22
user: Tom Erickson <tomee@eng.sun.com>
date: Wed Sep 03 15:14:25 2008 -0700
summary: 6737926 getAggregate() method fails to specify anonymous aggregation explicitly
changeset: 7299:d9a056040774
user: John Beck <John.Beck@Sun.COM>
date: Thu Aug 07 12:44:26 2008 -0700
summary: 6734627 protocmp complains about opt/SUNWdtrt/README after TW -> Hg switch
changeset: 6998:58787ea78303
user: brendan
date: Tue Jul 01 18:28:22 2008 -0700
summary: 6721426 tst.sdtargs.d passes despite dtrace "invalid address" error
changeset: 6878:360e73ea6b0c
user: brendan
date: Fri Jun 13 19:06:55 2008 -0700
summary: PSARC 2008/302 DTrace IP Provider
changeset: 6670:1961a43f2335
user: tariq
date: Tue May 20 15:08:16 2008 -0700
summary: 6685348 Hypervisor event provider for DTrace
changeset: 6554:b5817e112852
user: ahl
date: Mon May 05 14:38:24 2008 -0700
summary: 6677812 race between dtrace activities in non-local zones
changeset: 6543:465433824d87
user: rie
date: Fri May 02 15:01:06 2008 -0700
summary: 6683064 check_rtime could do with some spring cleaning
2010-08-02 12:13:33 +00:00
|
|
|
{ EDT_OVERSION, "Client requested deprecated version of library" },
|
2013-11-20 11:02:18 +00:00
|
|
|
{ EDT_ENABLING_ERR, "Failed to enable probe" },
|
2014-06-03 01:24:46 +00:00
|
|
|
{ EDT_NOPROBES, "No probe sites found for declared provider" },
|
|
|
|
{ EDT_CANTLOAD, "Failed to load module" },
|
2008-04-25 09:04:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const int _dt_nerr = sizeof (_dt_errlist) / sizeof (_dt_errlist[0]);
|
|
|
|
|
|
|
|
const char *
|
|
|
|
dtrace_errmsg(dtrace_hdl_t *dtp, int error)
|
|
|
|
{
|
|
|
|
const char *str;
|
|
|
|
int i;
|
|
|
|
|
|
|
|
if (error == EDT_COMPILER && dtp != NULL && dtp->dt_errmsg[0] != '\0')
|
|
|
|
str = dtp->dt_errmsg;
|
|
|
|
else if (error == EDT_CTF && dtp != NULL && dtp->dt_ctferr != 0)
|
|
|
|
str = ctf_errmsg(dtp->dt_ctferr);
|
|
|
|
else if (error >= EDT_BASE && (error - EDT_BASE) < _dt_nerr) {
|
|
|
|
for (i = 0; i < _dt_nerr; i++) {
|
|
|
|
if (_dt_errlist[i].err == error)
|
|
|
|
return (_dt_errlist[i].msg);
|
|
|
|
}
|
|
|
|
str = NULL;
|
|
|
|
} else
|
|
|
|
str = strerror(error);
|
|
|
|
|
|
|
|
return (str ? str : "Unknown error");
|
|
|
|
}
|
|
|
|
|
|
|
|
int
|
|
|
|
dtrace_errno(dtrace_hdl_t *dtp)
|
|
|
|
{
|
|
|
|
return (dtp->dt_errno);
|
|
|
|
}
|
|
|
|
|
|
|
|
int
|
|
|
|
dt_set_errno(dtrace_hdl_t *dtp, int err)
|
|
|
|
{
|
|
|
|
dtp->dt_errno = err;
|
|
|
|
return (-1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
dt_set_errmsg(dtrace_hdl_t *dtp, const char *errtag, const char *region,
|
|
|
|
const char *filename, int lineno, const char *format, va_list ap)
|
|
|
|
{
|
|
|
|
size_t len, n;
|
|
|
|
char *p, *s;
|
|
|
|
|
|
|
|
s = dtp->dt_errmsg;
|
|
|
|
n = sizeof (dtp->dt_errmsg);
|
|
|
|
|
|
|
|
if (errtag != NULL && (yypcb->pcb_cflags & DTRACE_C_ETAGS))
|
|
|
|
(void) snprintf(s, n, "[%s] ", errtag);
|
|
|
|
else
|
|
|
|
s[0] = '\0';
|
|
|
|
|
|
|
|
len = strlen(dtp->dt_errmsg);
|
|
|
|
s = dtp->dt_errmsg + len;
|
|
|
|
n = sizeof (dtp->dt_errmsg) - len;
|
|
|
|
|
|
|
|
if (filename == NULL)
|
|
|
|
filename = dtp->dt_filetag;
|
|
|
|
|
|
|
|
if (filename != NULL)
|
|
|
|
(void) snprintf(s, n, "\"%s\", line %d: ", filename, lineno);
|
|
|
|
else if (lineno != 0)
|
|
|
|
(void) snprintf(s, n, "line %d: ", lineno);
|
|
|
|
else if (region != NULL)
|
|
|
|
(void) snprintf(s, n, "in %s: ", region);
|
|
|
|
|
|
|
|
len = strlen(dtp->dt_errmsg);
|
|
|
|
s = dtp->dt_errmsg + len;
|
|
|
|
n = sizeof (dtp->dt_errmsg) - len;
|
|
|
|
(void) vsnprintf(s, n, format, ap);
|
|
|
|
|
|
|
|
if ((p = strrchr(dtp->dt_errmsg, '\n')) != NULL)
|
|
|
|
*p = '\0'; /* remove trailing \n from message buffer */
|
|
|
|
|
|
|
|
dtp->dt_errtag = errtag;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*ARGSUSED*/
|
|
|
|
const char *
|
|
|
|
dtrace_faultstr(dtrace_hdl_t *dtp, int fault)
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
|
|
|
|
static const struct {
|
|
|
|
int code;
|
|
|
|
const char *str;
|
|
|
|
} faults[] = {
|
|
|
|
{ DTRACEFLT_BADADDR, "invalid address" },
|
|
|
|
{ DTRACEFLT_BADALIGN, "invalid alignment" },
|
|
|
|
{ DTRACEFLT_ILLOP, "illegal operation" },
|
|
|
|
{ DTRACEFLT_DIVZERO, "divide-by-zero" },
|
|
|
|
{ DTRACEFLT_NOSCRATCH, "out of scratch space" },
|
|
|
|
{ DTRACEFLT_KPRIV, "invalid kernel access" },
|
|
|
|
{ DTRACEFLT_UPRIV, "invalid user access" },
|
|
|
|
{ DTRACEFLT_TUPOFLOW, "tuple stack overflow" },
|
|
|
|
{ DTRACEFLT_BADSTACK, "bad stack" },
|
|
|
|
{ DTRACEFLT_LIBRARY, "library-level fault" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
for (i = 0; faults[i].str != NULL; i++) {
|
|
|
|
if (faults[i].code == fault)
|
|
|
|
return (faults[i].str);
|
|
|
|
}
|
|
|
|
|
|
|
|
return ("unknown fault");
|
|
|
|
}
|