Print this page
NEX-2787 Multiple comstar / fibre channel / qlt threads stuck waiting on locks with a spinning interrupt thread
Reviewed by: Rob Gittins <rob.gittins@nexenta.com>
Approved by: Jean McCormack <jean.mccormack@nexenta.com>
| Split |
Close |
| Expand all |
| Collapse all |
--- old/usr/src/cmd/mdb/Makefile.kmdb.targ
+++ new/usr/src/cmd/mdb/Makefile.kmdb.targ
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
|
↓ open down ↓ |
12 lines elided |
↑ open up ↑ |
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # Copyright 2007 Sun Microsystems, Inc. All rights reserved.
23 +# Copyright 2015 Nexenta Systems, Inc. All rights reserved.
23 24 # Use is subject to license terms.
24 25 #
25 26
26 27 ROOTTERMINFO = $(ROOTSHLIB)/terminfo
27 28
28 29 $(PROG).core: $(OBJS) $(KMDBLIBS) $(MAPFILE)
29 30 $(LD) -r $(BREDUCE) $(ZNOVERSION) $(ZDEFS) -M$(MAPFILE) -o $@ $(OBJS) \
30 31 $(KMDBLIBS)
31 32
32 33 $(PROG): $(PROG).core $(KCTLOBJS)
33 34 $(LD) -dy -r -o $@ $@.core -Nmisc/ctf $(KCTLOBJS)
34 35 $(CTFMERGE) -L VERSION -o $@ $(OBJS) $(KCTLOBJS)
35 36 $(KMDB_FPTEST)
36 37 $(POST_PROCESS)
37 38 $(SETDYNFLAG) -f DF_1_IGNMULDEF,DF_1_NOKSYMS $@
38 39
39 40 clean.lint:
40 41 $(RM) $(ALLLINTFILES)
41 42
42 43 clean:
43 44 $(RM) $(OBJS) $(KCTLOBJS) $(PROG).core $(MAPFILE)
44 45 $(RM) $(MAPFILE_INTERMEDIATE)
45 46 $(RM) kmdb_terminfo.c kmdb_modlinktest.c kmdb_modlinktest.o
46 47 $(RM) kaif_off.h kmdb_context_off.h
47 48 $(RM) mdb_lex.c mdb_grammar.c mdb_grammar.h y.tab.h y.tab.c y.output
48 49
49 50 clobber: clean clean.lint
50 51 $(RM) $(PROG)
51 52
52 53 dmods:
53 54
54 55 #
55 56 # Specialized object construction
56 57 #
57 58 kmdb_terminfo.c: ../../../common/mdb/mdb_termio.c \
58 59 ../../../common/kmdb/kmdb_terminfo_skel.c \
59 60 $(ROOTTERMINFO)
60 61 TERMINFO=$(ROOTTERMINFO) $(TIGEN) -s \
61 62 ../../../common/kmdb/kmdb_terminfo_skel.c \
62 63 -t ../../../common/mdb/mdb_termio.c \
63 64 $(SUPPORTED_TERMS) > $@
64 65
65 66 $(MAPFILE_INTERMEDIATE): $(MAPFILE_SOURCES) $(MAPFILE_TEMPLATE)
66 67 $(HDR2MAP) -t $(MAPFILE_TEMPLATE) $(MAPFILE_SOURCES) >$@
67 68
68 69 $(MAPFILE): $(MAPFILE_INTERMEDIATE)
69 70 $(CPP) -P $(SACPPFLAGS) <$(MAPFILE_INTERMEDIATE) >$@
70 71
71 72 mdb_lex.c: ../../../common/mdb/mdb_lex.l mdb_grammar.h
72 73 $(LEX) $(LFLAGS) ../../../common/mdb/mdb_lex.l > $@
73 74
74 75 mdb_grammar.h mdb_grammar.c: ../../../common/mdb/mdb_grammar.y
75 76 $(YACC) $(YFLAGS) ../../../common/mdb/mdb_grammar.y
76 77 @$(MV) y.tab.h mdb_grammar.h
77 78 @$(MV) y.tab.c mdb_grammar.c
78 79
79 80 #
80 81 # These should really be combined into a dynamic rule, but there's a bug in
81 82 # dmake that'll cause it to get confused about dependencies if we do.
82 83 #
83 84
84 85 kaif_off.h := CPPFLAGS += $(SACPPCFLAGS)
85 86
86 87 kmdb_modlinktest.c: $(MAPFILE_INTERMEDIATE)
87 88 $(MAP2LINKTEST) <$(MAPFILE_INTERMEDIATE) >$@
88 89 $(CPP) -P $(SACPPFLAGS) <$(MAPFILE_INTERMEDIATE) >$(MAPFILE)
89 90
90 91 #
91 92 # Dynamic rules for object construction
92 93 #
93 94 %.o: ../../../common/kmdb/%.c
94 95 $(COMPILE.c) -o $@ $<
95 96 $(CTFCONVERT_O)
96 97
97 98 %.o: ../../../common/kmdb/kctl/%.c
98 99 $(COMPILE.c) -o $@ $<
99 100 $(CTFCONVERT_O)
100 101
101 102 %.o: ../../../common/kmdb/kctl/%.s
102 103 $(COMPILE.s) -o $@ $<
103 104
104 105 %.o: ../../../common/mdb/%.c
105 106 $(COMPILE.c) -o $@ $<
106 107 $(CTFCONVERT_O)
107 108
108 109 %.o: ../../kmdb/%.c
109 110 $(COMPILE.c) -o $@ $<
110 111 $(CTFCONVERT_O)
111 112
112 113 %.o: ../../kmdb/%.s
113 114 $(COMPILE.s) -o $@ $<
114 115
115 116 %.o: ../../kmdb/kctl/%.c
116 117 $(COMPILE.c) -o $@ $<
117 118 $(CTFCONVERT_O)
118 119
119 120 %.o: ../../kmdb/kctl/%.s
120 121 $(COMPILE.s) -o $@ $<
121 122
122 123 %.o: ../../mdb/%.c
123 124 $(COMPILE.c) -o $@ $<
124 125 $(CTFCONVERT_O)
125 126
|
↓ open down ↓ |
93 lines elided |
↑ open up ↑ |
126 127 %.o: %.c
127 128 $(COMPILE.c) -o $@ $<
128 129 $(CTFCONVERT_O)
129 130
130 131 %.o: %.s
131 132 $(COMPILE.s) -o $@ $<
132 133
133 134 %.o: kctl/%.s
134 135 $(COMPILE.s) -o $@ $<
135 136
137 +%.o: $(SRC)/common/list/%.c
138 + $(COMPILE.c) $<
139 + $(CTFCONVERT_O)
140 +
136 141 %.o: $(SRC)/common/net/util/%.c
137 142 $(COMPILE.c) $<
138 143 $(CTFCONVERT_O)
139 144
140 145 %.o: $(SRC)/common/util/%.c
141 146 $(COMPILE.c) $<
142 147 $(CTFCONVERT_O)
143 148
144 149 #
145 150 # Lint
146 151 #
147 152
148 153 %.ln: ../../../common/kmdb/%.c
149 154 $(LINT.c) -c $<
150 155
151 156 %.ln: ../../../common/kmdb/kctl/%.c
152 157 $(LINT.c) -c $<
153 158
154 159 %.ln: ../../../common/kmdb/kctl/%.s
155 160 $(LINT.s) -c $<
156 161
157 162 %.ln: ../../../common/mdb/%.c
158 163 $(LINT.c) -c $<
159 164
160 165 %.ln: ../../kmdb/%.c
161 166 $(LINT.c) -c $<
162 167
163 168 %.ln: ../../kmdb/%.s
164 169 $(LINT.s) -c $<
165 170
166 171 %.ln: ../../kmdb/kctl/%.c
167 172 $(LINT.c) -c $<
168 173
169 174 %.ln: ../../kmdb/kctl/%.s
170 175 $(LINT.s) -c $<
171 176
172 177 %.ln: ../../mdb/%.c
173 178 $(LINT.c) -c $<
|
↓ open down ↓ |
28 lines elided |
↑ open up ↑ |
174 179
175 180 %.ln: %.c
176 181 $(LINT.c) -c $<
177 182
178 183 %.ln: %.s
179 184 $(LINT.s) -c $<
180 185
181 186 %.ln: kctl/%.s
182 187 $(LINT.s) -c $<
183 188
189 +%.ln: $(SRC)/common/list/%.c
190 + $(LINT.c) -c $<
191 +
184 192 %.ln: $(SRC)/common/net/util/%.c
185 193 $(LINT.c) -c $<
186 194
187 195 %.ln: $(SRC)/common/util/%.c
188 196 $(LINT.c) -c $<
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX