dt_open.c (249884) | dt_open.c (250574) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 8 unchanged lines hidden (view full) --- 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21 22/* 23 * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. 24 * Copyright (c) 2011, Joyent, Inc. All rights reserved. | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 8 unchanged lines hidden (view full) --- 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21 22/* 23 * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. 24 * Copyright (c) 2011, Joyent, Inc. All rights reserved. |
25 * Copyright (c) 2011 by Delphix. All rights reserved. | 25 * Copyright (c) 2012 by Delphix. All rights reserved. |
26 */ 27 28#include <sys/types.h> 29#if defined(sun) 30#include <sys/modctl.h> 31#include <sys/systeminfo.h> 32#endif 33#include <sys/resource.h> --- 53 unchanged lines hidden (view full) --- 87 DTRACE_STABILITY_STABLE, DTRACE_CLASS_COMMON } 88 89#define DT_ATTR_EVOLCMN { DTRACE_STABILITY_EVOLVING, \ 90 DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_COMMON \ 91} 92 93/* 94 * The version number should be increased for every customer visible release | 26 */ 27 28#include <sys/types.h> 29#if defined(sun) 30#include <sys/modctl.h> 31#include <sys/systeminfo.h> 32#endif 33#include <sys/resource.h> --- 53 unchanged lines hidden (view full) --- 87 DTRACE_STABILITY_STABLE, DTRACE_CLASS_COMMON } 88 89#define DT_ATTR_EVOLCMN { DTRACE_STABILITY_EVOLVING, \ 90 DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_COMMON \ 91} 92 93/* 94 * The version number should be increased for every customer visible release |
95 * of Solaris. The major number should be incremented when a fundamental | 95 * of DTrace. The major number should be incremented when a fundamental |
96 * change has been made that would affect all consumers, and would reflect 97 * sweeping changes to DTrace or the D language. The minor number should be 98 * incremented when a change is introduced that could break scripts that had 99 * previously worked; for example, adding a new built-in variable could break 100 * a script which was already using that identifier. The micro number should 101 * be changed when introducing functionality changes or major bug fixes that 102 * do not affect backward compatibility -- this is merely to make capabilities 103 * easily determined from the version number. Minor bugs do not require any --- 12 unchanged lines hidden (view full) --- 116#define DT_VERS_1_6_1 DT_VERSION_NUMBER(1, 6, 1) 117#define DT_VERS_1_6_2 DT_VERSION_NUMBER(1, 6, 2) 118#define DT_VERS_1_6_3 DT_VERSION_NUMBER(1, 6, 3) 119#define DT_VERS_1_7 DT_VERSION_NUMBER(1, 7, 0) 120#define DT_VERS_1_7_1 DT_VERSION_NUMBER(1, 7, 1) 121#define DT_VERS_1_8 DT_VERSION_NUMBER(1, 8, 0) 122#define DT_VERS_1_8_1 DT_VERSION_NUMBER(1, 8, 1) 123#define DT_VERS_1_9 DT_VERSION_NUMBER(1, 9, 0) | 96 * change has been made that would affect all consumers, and would reflect 97 * sweeping changes to DTrace or the D language. The minor number should be 98 * incremented when a change is introduced that could break scripts that had 99 * previously worked; for example, adding a new built-in variable could break 100 * a script which was already using that identifier. The micro number should 101 * be changed when introducing functionality changes or major bug fixes that 102 * do not affect backward compatibility -- this is merely to make capabilities 103 * easily determined from the version number. Minor bugs do not require any --- 12 unchanged lines hidden (view full) --- 116#define DT_VERS_1_6_1 DT_VERSION_NUMBER(1, 6, 1) 117#define DT_VERS_1_6_2 DT_VERSION_NUMBER(1, 6, 2) 118#define DT_VERS_1_6_3 DT_VERSION_NUMBER(1, 6, 3) 119#define DT_VERS_1_7 DT_VERSION_NUMBER(1, 7, 0) 120#define DT_VERS_1_7_1 DT_VERSION_NUMBER(1, 7, 1) 121#define DT_VERS_1_8 DT_VERSION_NUMBER(1, 8, 0) 122#define DT_VERS_1_8_1 DT_VERSION_NUMBER(1, 8, 1) 123#define DT_VERS_1_9 DT_VERSION_NUMBER(1, 9, 0) |
124#define DT_VERS_LATEST DT_VERS_1_9 125#define DT_VERS_STRING "Sun D 1.9" | 124#define DT_VERS_1_9_1 DT_VERSION_NUMBER(1, 9, 1) 125#define DT_VERS_LATEST DT_VERS_1_9_1 126#define DT_VERS_STRING "Sun D 1.9.1" |
126 127const dt_version_t _dtrace_versions[] = { 128 DT_VERS_1_0, /* D API 1.0.0 (PSARC 2001/466) Solaris 10 FCS */ 129 DT_VERS_1_1, /* D API 1.1.0 Solaris Express 6/05 */ 130 DT_VERS_1_2, /* D API 1.2.0 Solaris 10 Update 1 */ 131 DT_VERS_1_2_1, /* D API 1.2.1 Solaris Express 4/06 */ 132 DT_VERS_1_2_2, /* D API 1.2.2 Solaris Express 6/06 */ 133 DT_VERS_1_3, /* D API 1.3 Solaris Express 10/06 */ --- 4 unchanged lines hidden (view full) --- 138 DT_VERS_1_6_1, /* D API 1.6.1 */ 139 DT_VERS_1_6_2, /* D API 1.6.2 */ 140 DT_VERS_1_6_3, /* D API 1.6.3 */ 141 DT_VERS_1_7, /* D API 1.7 */ 142 DT_VERS_1_7_1, /* D API 1.7.1 */ 143 DT_VERS_1_8, /* D API 1.8 */ 144 DT_VERS_1_8_1, /* D API 1.8.1 */ 145 DT_VERS_1_9, /* D API 1.9 */ | 127 128const dt_version_t _dtrace_versions[] = { 129 DT_VERS_1_0, /* D API 1.0.0 (PSARC 2001/466) Solaris 10 FCS */ 130 DT_VERS_1_1, /* D API 1.1.0 Solaris Express 6/05 */ 131 DT_VERS_1_2, /* D API 1.2.0 Solaris 10 Update 1 */ 132 DT_VERS_1_2_1, /* D API 1.2.1 Solaris Express 4/06 */ 133 DT_VERS_1_2_2, /* D API 1.2.2 Solaris Express 6/06 */ 134 DT_VERS_1_3, /* D API 1.3 Solaris Express 10/06 */ --- 4 unchanged lines hidden (view full) --- 139 DT_VERS_1_6_1, /* D API 1.6.1 */ 140 DT_VERS_1_6_2, /* D API 1.6.2 */ 141 DT_VERS_1_6_3, /* D API 1.6.3 */ 142 DT_VERS_1_7, /* D API 1.7 */ 143 DT_VERS_1_7_1, /* D API 1.7.1 */ 144 DT_VERS_1_8, /* D API 1.8 */ 145 DT_VERS_1_8_1, /* D API 1.8.1 */ 146 DT_VERS_1_9, /* D API 1.9 */ |
147 DT_VERS_1_9_1, /* D API 1.9.1 */ |
|
146 0 147}; 148 149/* 150 * Global variables that are formatted on FreeBSD based on the kernel file name. 151 */ 152#if !defined(sun) 153static char curthread_str[MAXPATHLEN]; --- 1471 unchanged lines hidden (view full) --- 1625#endif 1626 1627 dt_epid_destroy(dtp); 1628 dt_aggid_destroy(dtp); 1629 dt_format_destroy(dtp); 1630 dt_strdata_destroy(dtp); 1631 dt_buffered_destroy(dtp); 1632 dt_aggregate_destroy(dtp); | 148 0 149}; 150 151/* 152 * Global variables that are formatted on FreeBSD based on the kernel file name. 153 */ 154#if !defined(sun) 155static char curthread_str[MAXPATHLEN]; --- 1471 unchanged lines hidden (view full) --- 1627#endif 1628 1629 dt_epid_destroy(dtp); 1630 dt_aggid_destroy(dtp); 1631 dt_format_destroy(dtp); 1632 dt_strdata_destroy(dtp); 1633 dt_buffered_destroy(dtp); 1634 dt_aggregate_destroy(dtp); |
1633 free(dtp->dt_buf.dtbd_data); | |
1634 dt_pfdict_destroy(dtp); 1635 dt_provmod_destroy(&dtp->dt_provmod); 1636 dt_dof_fini(dtp); 1637 1638 for (i = 1; i < dtp->dt_cpp_argc; i++) 1639 free(dtp->dt_cpp_argv[i]); 1640 1641 while ((dirp = dt_list_next(&dtp->dt_lib_path)) != NULL) { --- 33 unchanged lines hidden --- | 1635 dt_pfdict_destroy(dtp); 1636 dt_provmod_destroy(&dtp->dt_provmod); 1637 dt_dof_fini(dtp); 1638 1639 for (i = 1; i < dtp->dt_cpp_argc; i++) 1640 free(dtp->dt_cpp_argv[i]); 1641 1642 while ((dirp = dt_list_next(&dtp->dt_lib_path)) != NULL) { --- 33 unchanged lines hidden --- |