1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
|
'\" te
.\" Copyright (c) 2001 Sun Microsystems, Inc. All Rights Reserved
.\" 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]
.TH TH_MANAGE 1M "Jan 4, 2001"
.SH NAME
th_manage \- manage the fault injection test harness
.SH SYNOPSIS
.LP
.nf
\fBth_manage\fR \fIname\fR \fIinstance\fR \fIcommand\fR
.fi
.LP
.nf
\fBth_manage\fR \fIpath\fR \fIcommand\fR
.fi
.SH DESCRIPTION
.sp
.LP
\fBth_manage\fR applies the action specified by \fIcommand\fR to the instance
specified by \fIinstance\fR of the driver specified by \fIname\fR (or the
driver instance specified by \fIpath\fR). The driver instance must be running
fault injection specifications (errdefs) defined by \fBth_define\fR(1M).
.sp
.LP
\fBth_manage\fR supports several commands that operate on the driver instance
specified by \fIname\fR and \fIinstance\fR (or \fIpath\fR). The commands are:
.sp
.ne 2
.na
\fB\fBbroadcast\fR \fR
.ad
.RS 18n
Awaken all \fBth_define\fR processes, causing them to display their current
status and exit if the errdef is now defunct (that is, if \fIcount\fR,
\fIfailcount\fR, and \fIacc_chk \fR are all zero).
.RE
.sp
.ne 2
.na
\fB\fBclear_acc_chk\fR \fR
.ad
.RS 18n
Awaken all \fBth_define\fR processes. If \fIcount\fR and \fIfailcount\fR are
already zero, then set \fIacc_chk\fR to zero, so that \fBth_define\fR exits
once it has displayed its status.
.RE
.sp
.ne 2
.na
\fB\fBclear_errdefs\fR \fR
.ad
.RS 18n
Awaken all \fBth_define\fR \fBprocesses\fR. \fIcount\fR, \fIfailcount\fR and
\fIacc_chk\fR are all set to zero so that all \fBth_define\fR commands exit
once they have displayed their status.
.RE
.sp
.ne 2
.na
\fB\fBclear_errors\fR \fR
.ad
.RS 18n
Awaken all \fBth_define\fR processes. If \fIcount\fR is already zero, set
\fIfailcount\fR and \fIacc_chk\fR to zero, so that \fBth_define\fR exits once
it has displayed its status.
.RE
.sp
.ne 2
.na
\fB\fBget_handles\fR \fR
.ad
.RS 18n
List all the access handles.
.RE
.sp
.ne 2
.na
\fB\fBstart\fR \fR
.ad
.RS 18n
Begin or resume execution of all errdefs.
.RE
.sp
.ne 2
.na
\fB\fBstop\fR \fR
.ad
.RS 18n
Suspend all errdefs for this \fIname\fR and \fIinstance\fR (or \fIpath).\fR
.RE
.SH EXAMPLES
.LP
\fBExample 1 \fRUseful Commands
.sp
.LP
To begin the tests, enter:
.sp
.LP
\fB#\fR \fBth_manage\fR \fBfoo\fR \fB0\fR \fBstart\fR
.sp
.LP
To check the status of the errdefs, enter:
.sp
.LP
\fB#\fR \fBth_manage\fR \fBfoo\fR \fB0\fR \fBbroadcast\fR
.sp
.LP
This causes each \fBth_define\fR process to print out its current status.
.sp
.LP
If the driver has reported a fatal error, you can take the driver offline using
\fBlibdevice\fR, clear the error condition by entering:
.sp
.LP
\fB#\fR \fBth_manage\fR \fBfoo\fR \fB0\fR \fBclear_acc_chk\fR
.sp
.LP
or
.sp
.LP
\fB#\fR \fBth_manage\fR \fBfoo\fR \fB0\fR \fBclear_errors\fR
.sp
.LP
and bring the driver online again using \fBlibdevice\fR.
.sp
.LP
To terminate testing, enter:
.sp
.LP
\fB#\fR \fBth_manage\fR \fBfoo\fR \fB0\fR \fBclear_errdefs\fR
.SH SEE ALSO
.sp
.LP
\fBth_define\fR(1M)
|