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>
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/dtrace/test/tst/common/Makefile
+++ new/usr/src/cmd/dtrace/test/tst/common/Makefile
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 #
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 #
↓ open down ↓ |
18 lines elided |
↑ open up ↑ |
19 19 # CDDL HEADER END
20 20 #
21 21
22 22 #
23 23 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 #
26 26
27 27 #
28 28 # Copyright (c) 2012 by Delphix. All rights reserved.
29 -# Copyright (c) 2012, Joyent, Inc. All rights reserved.
29 +# Copyright (c) 2013, Joyent, Inc. All rights reserved.
30 +#
31 +
32 +#
33 +# WARNING: Do not include Makefile.ctf here. That will cause tests to
34 +# break.
30 35 #
31 36
32 37 include $(SRC)/Makefile.master
33 38 include ../Makefile.com
34 39
35 40 SNOOPDIR = $(SRC)/cmd/cmd-inet/usr.sbin/snoop
36 41 SNOOPOBJS = nfs4_xdr.o
37 42 SNOOPSRCS = ${SNOOPOBJS:%.o=%.c}
38 43 CLOBBERFILES += nfs/$(SNOOPOBJS)
39 44
40 45 RPCSVCDIR = $(SRC)/head/rpcsvc
41 46 RPCSVCOBJS = nfs_prot.o
42 47 RPCSVCSRCS = ${RPCSVCOBJS:%o=%c}
43 48 CLOBBERFILES += nfs/$(RPCSVCOBJS) $(RPCSVCDIR)/$(RPCSVCSRCS)
44 49 CLOBBERFILES += usdt/forker.h usdt/lazyprobe.h
45 50
46 51 fasttrap/tst.fasttrap.exe := LDLIBS += -ldtrace
47 52 fasttrap/tst.stack.exe := LDLIBS += -ldtrace
48 53
49 54 sysevent/tst.post.exe := LDLIBS += -lsysevent
50 55 sysevent/tst.post_chan.exe := LDLIBS += -lsysevent
51 56
52 57 ustack/tst.bigstack.exe := COPTFLAG += -xO1
53 58
54 59 GCC = $(ONBLD_TOOLS)/bin/$(MACH)/cw -_gcc
55 60
56 61 nfs/%.o: $(SNOOPDIR)/%.c
57 62 $(COMPILE.c) -o $@ $< -I$(SNOOPDIR)
58 63 $(POST_PROCESS_O)
59 64 nfs/tst.call.exe: nfs/tst.call.o nfs/$(SNOOPOBJS)
60 65 $(LINK.c) -o $@ nfs/tst.call.o nfs/$(SNOOPOBJS) $(LDLIBS) -lnsl
61 66 $(POST_PROCESS) ; $(STRIP_STABS)
62 67 $(RPCSVCDIR)/%.c: $(RPCSVCDIR)/%.x
63 68 $(RPCGEN) -Cc $< > $@
64 69 nfs/$(RPCSVCOBJS): $(RPCSVCDIR)/$(RPCSVCSRCS)
65 70 $(COMPILE.c) -o $@ $(RPCSVCDIR)/$(RPCSVCSRCS)
66 71 $(POST_PROCESS_O)
67 72 nfs/tst.call3.exe: nfs/tst.call3.o nfs/$(RPCSVCOBJS)
68 73 $(LINK.c) -o $@ nfs/tst.call3.o nfs/$(RPCSVCOBJS) \
69 74 $(LDLIBS) -lnsl -lrpcsvc
70 75 $(POST_PROCESS) ; $(STRIP_STABS)
71 76
72 77 pid/tst.gcc.exe: pid/tst.gcc.c
73 78 $(GCC) -o pid/tst.gcc.exe pid/tst.gcc.c $(LDFLAGS)
74 79 $(POST_PROCESS) ; $(STRIP_STABS)
75 80
76 81 json/tst.usdt.o: json/usdt.h
77 82
↓ open down ↓ |
38 lines elided |
↑ open up ↑ |
78 83 json/usdt.h: json/usdt.d
79 84 $(DTRACE) -h -s json/usdt.d -o json/usdt.h
80 85
81 86 json/usdt.o: json/usdt.d json/tst.usdt.o
82 87 $(COMPILE.d) -o json/usdt.o -s json/usdt.d json/tst.usdt.o
83 88
84 89 json/tst.usdt.exe: json/tst.usdt.o json/usdt.o
85 90 $(LINK.c) -o json/tst.usdt.exe json/tst.usdt.o json/usdt.o $(LDLIBS)
86 91 $(POST_PROCESS) ; $(STRIP_STABS)
87 92
93 +#
94 +# Tests that use the next three programs rely on the binaries having
95 +# valid CTF data.
96 +#
97 +uctf/tst.aouttype.exe: uctf/tst.aouttype.c
98 + $(COMPILE.c) $(CTF_FLAGS) -o uctf/tst.aouttype.o uctf/tst.aouttype.c
99 + $(CTFCONVERT) -i -L VERSION uctf/tst.aouttype.o
100 + $(LINK.c) -o uctf/tst.aouttype.exe uctf/tst.aouttype.o $(LDLIBS)
101 + $(CTFMERGE) -L VERSION -o $@ uctf/tst.aouttype.o
102 + $(POST_PROCESS) ; $(STRIP_STABS)
103 +
104 +uctf/tst.chasestrings.exe: uctf/tst.chasestrings.c
105 + $(COMPILE.c) $(CTF_FLAGS) -o uctf/tst.chasestrings.o uctf/tst.chasestrings.c
106 + $(CTFCONVERT) -i -L VERSION uctf/tst.chasestrings.o
107 + $(LINK.c) -o uctf/tst.chasestrings.exe uctf/tst.chasestrings.o $(LDLIBS)
108 + $(CTFMERGE) -L VERSION -o $@ uctf/tst.chasestrings.o
109 + $(POST_PROCESS) ; $(STRIP_STABS)
110 +
111 +uctf/tst.printtype.exe: uctf/tst.printtype.c
112 + $(COMPILE.c) $(CTF_FLAGS) -o uctf/tst.printtype.o uctf/tst.printtype.c
113 + $(CTFCONVERT) -i -L VERSION uctf/tst.printtype.o
114 + $(LINK.c) -o uctf/tst.printtype.exe uctf/tst.printtype.o $(LDLIBS)
115 + $(CTFMERGE) -L VERSION -o $@ uctf/tst.printtype.o
116 + $(POST_PROCESS) ; $(STRIP_STABS)
117 +
118 +#
119 +# This program should never have any ctf data in it.
120 +#
121 +uctf/tst.libtype.exe:
122 + $(LINK.c) -o uctf/tst.libtype.exe uctf/tst.libtype.c $(LDLIBS)
123 + $(POST_PROCESS) ; $(STRIP_STABS)
124 +
88 125 usdt/tst.args.exe: usdt/tst.args.o usdt/args.o
89 126 $(LINK.c) -o usdt/tst.args.exe usdt/tst.args.o usdt/args.o $(LDLIBS)
90 127 $(POST_PROCESS) ; $(STRIP_STABS)
91 128
92 129 usdt/args.o: usdt/args.d usdt/tst.args.o
93 130 $(COMPILE.d) -o usdt/args.o -s usdt/args.d usdt/tst.args.o
94 131
95 132 usdt/tst.argmap.exe: usdt/tst.argmap.o usdt/argmap.o
96 133 $(LINK.c) -o usdt/tst.argmap.exe \
97 134 usdt/tst.argmap.o usdt/argmap.o $(LDLIBS)
98 135 $(POST_PROCESS) ; $(STRIP_STABS)
99 136
100 137 usdt/argmap.o: usdt/argmap.d usdt/tst.argmap.o
101 138 $(COMPILE.d) -o usdt/argmap.o -s usdt/argmap.d usdt/tst.argmap.o
102 139
103 140 usdt/tst.forker.exe: usdt/tst.forker.o usdt/forker.o
104 141 $(LINK.c) -o usdt/tst.forker.exe \
105 142 usdt/tst.forker.o usdt/forker.o $(LDLIBS)
106 143 $(POST_PROCESS) ; $(STRIP_STABS)
107 144
108 145 usdt/forker.o: usdt/forker.d usdt/tst.forker.o
109 146 $(COMPILE.d) -o usdt/forker.o -s usdt/forker.d usdt/tst.forker.o
110 147
111 148 usdt/tst.forker.o: usdt/forker.h
112 149
113 150 usdt/forker.h: usdt/forker.d
114 151 $(DTRACE) -h -s usdt/forker.d -o usdt/forker.h
115 152
116 153 usdt/tst.lazyprobe.exe: usdt/tst.lazyprobe.o usdt/lazyprobe.o
117 154 $(LINK.c) -o usdt/tst.lazyprobe.exe \
118 155 usdt/tst.lazyprobe.o usdt/lazyprobe.o $(LDLIBS)
119 156 $(POST_PROCESS) ; $(STRIP_STABS)
120 157
121 158 usdt/lazyprobe.o: usdt/lazyprobe.d usdt/tst.lazyprobe.o
122 159 $(COMPILE.d) -xlazyload -o usdt/lazyprobe.o \
123 160 -s usdt/lazyprobe.d usdt/tst.lazyprobe.o
124 161
125 162 usdt/tst.lazyprobe.o: usdt/lazyprobe.h
126 163
127 164 usdt/lazyprobe.h: usdt/lazyprobe.d
128 165 $(DTRACE) -h -s usdt/lazyprobe.d -o usdt/lazyprobe.h
129 166
130 167 SUBDIRS = java_api
131 168 include ../../Makefile.subdirs
↓ open down ↓ |
34 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX