Print this page
OS-1723 DTrace should speak JSON
Reviewed by: Bryan Cantrill <bmc@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 30 #
30 31
31 32 include $(SRC)/Makefile.master
32 33 include ../Makefile.com
33 34
34 35 SNOOPDIR = $(SRC)/cmd/cmd-inet/usr.sbin/snoop
35 36 SNOOPOBJS = nfs4_xdr.o
36 37 SNOOPSRCS = ${SNOOPOBJS:%.o=%.c}
37 38 CLOBBERFILES += nfs/$(SNOOPOBJS)
38 39
39 40 RPCSVCDIR = $(SRC)/head/rpcsvc
40 41 RPCSVCOBJS = nfs_prot.o
41 42 RPCSVCSRCS = ${RPCSVCOBJS:%o=%c}
42 43 CLOBBERFILES += nfs/$(RPCSVCOBJS) $(RPCSVCDIR)/$(RPCSVCSRCS)
43 44
44 45 fasttrap/tst.fasttrap.exe := LDLIBS += -ldtrace
45 46 fasttrap/tst.stack.exe := LDLIBS += -ldtrace
46 47
47 48 sysevent/tst.post.exe := LDLIBS += -lsysevent
48 49 sysevent/tst.post_chan.exe := LDLIBS += -lsysevent
49 50
50 51 ustack/tst.bigstack.exe := COPTFLAG += -xO1
51 52
52 53 GCC = $(ONBLD_TOOLS)/bin/$(MACH)/cw -_gcc
53 54
54 55 nfs/%.o: $(SNOOPDIR)/%.c
55 56 $(COMPILE.c) -o $@ $< -I$(SNOOPDIR)
56 57 $(POST_PROCESS_O)
57 58 nfs/tst.call.exe: nfs/tst.call.o nfs/$(SNOOPOBJS)
58 59 $(LINK.c) -o $@ nfs/tst.call.o nfs/$(SNOOPOBJS) $(LDLIBS) -lnsl
59 60 $(POST_PROCESS) ; $(STRIP_STABS)
60 61 $(RPCSVCDIR)/%.c: $(RPCSVCDIR)/%.x
61 62 $(RPCGEN) -Cc $< > $@
62 63 nfs/$(RPCSVCOBJS): $(RPCSVCDIR)/$(RPCSVCSRCS)
63 64 $(COMPILE.c) -o $@ $(RPCSVCDIR)/$(RPCSVCSRCS)
↓ open down ↓ |
25 lines elided |
↑ open up ↑ |
64 65 $(POST_PROCESS_O)
65 66 nfs/tst.call3.exe: nfs/tst.call3.o nfs/$(RPCSVCOBJS)
66 67 $(LINK.c) -o $@ nfs/tst.call3.o nfs/$(RPCSVCOBJS) \
67 68 $(LDLIBS) -lnsl -lrpcsvc
68 69 $(POST_PROCESS) ; $(STRIP_STABS)
69 70
70 71 pid/tst.gcc.exe: pid/tst.gcc.c
71 72 $(GCC) -o pid/tst.gcc.exe pid/tst.gcc.c $(LDFLAGS)
72 73 $(POST_PROCESS) ; $(STRIP_STABS)
73 74
75 +json/tst.usdt.o: json/usdt.h
76 +
77 +json/usdt.h: json/usdt.d
78 + $(DTRACE) -h -s json/usdt.d -o json/usdt.h
79 +
80 +json/usdt.o: json/usdt.d json/tst.usdt.o
81 + $(COMPILE.d) -o json/usdt.o -s json/usdt.d json/tst.usdt.o
82 +
83 +json/tst.usdt.exe: json/tst.usdt.o json/usdt.o
84 + $(LINK.c) -o json/tst.usdt.exe json/tst.usdt.o json/usdt.o $(LDLIBS)
85 + $(POST_PROCESS) ; $(STRIP_STABS)
86 +
74 87 usdt/tst.args.exe: usdt/tst.args.o usdt/args.o
75 88 $(LINK.c) -o usdt/tst.args.exe usdt/tst.args.o usdt/args.o $(LDLIBS)
76 89 $(POST_PROCESS) ; $(STRIP_STABS)
77 90
78 91 usdt/args.o: usdt/args.d usdt/tst.args.o
79 92 $(COMPILE.d) -o usdt/args.o -s usdt/args.d usdt/tst.args.o
80 93
81 94 usdt/tst.argmap.exe: usdt/tst.argmap.o usdt/argmap.o
82 95 $(LINK.c) -o usdt/tst.argmap.exe \
83 96 usdt/tst.argmap.o usdt/argmap.o $(LDLIBS)
84 97 $(POST_PROCESS) ; $(STRIP_STABS)
85 98
86 99 usdt/argmap.o: usdt/argmap.d usdt/tst.argmap.o
87 100 $(COMPILE.d) -o usdt/argmap.o -s usdt/argmap.d usdt/tst.argmap.o
88 101
89 102 usdt/tst.forker.exe: usdt/tst.forker.o usdt/forker.o
90 103 $(LINK.c) -o usdt/tst.forker.exe \
91 104 usdt/tst.forker.o usdt/forker.o $(LDLIBS)
92 105 $(POST_PROCESS) ; $(STRIP_STABS)
93 106
94 107 usdt/forker.o: usdt/forker.d usdt/tst.forker.o
95 108 $(COMPILE.d) -o usdt/forker.o -s usdt/forker.d usdt/tst.forker.o
96 109
97 110 usdt/tst.forker.o: usdt/forker.h
98 111
99 112 usdt/forker.h: usdt/forker.d
100 113 $(DTRACE) -h -s usdt/forker.d -o usdt/forker.h
101 114
102 115 ustack/tst.unpriv.exe: ustack/tst.unpriv.o ustack/unpriv_helper.o
103 116 $(LINK.c) -o ustack/tst.unpriv.exe \
104 117 ustack/tst.unpriv.o ustack/unpriv_helper.o $(LDLIBS)
105 118 $(POST_PROCESS) ; $(STRIP_STABS)
106 119
107 120 ustack/unpriv_helper.o: ustack/unpriv_helper.d
108 121 $(COMPILE.d) -o ustack/unpriv_helper.o -s ustack/unpriv_helper.d
109 122
110 123 usdt/tst.lazyprobe.exe: usdt/tst.lazyprobe.o usdt/lazyprobe.o
111 124 $(LINK.c) -o usdt/tst.lazyprobe.exe \
112 125 usdt/tst.lazyprobe.o usdt/lazyprobe.o $(LDLIBS)
113 126 $(POST_PROCESS) ; $(STRIP_STABS)
114 127
115 128 usdt/lazyprobe.o: usdt/lazyprobe.d usdt/tst.lazyprobe.o
116 129 $(COMPILE.d) -xlazyload -o usdt/lazyprobe.o \
117 130 -s usdt/lazyprobe.d usdt/tst.lazyprobe.o
118 131
119 132 usdt/tst.lazyprobe.o: usdt/lazyprobe.h
120 133
121 134 usdt/lazyprobe.h: usdt/lazyprobe.d
122 135 $(DTRACE) -h -s usdt/lazyprobe.d -o usdt/lazyprobe.h
123 136
124 137 SUBDIRS = java_api
125 138 include ../../Makefile.subdirs
↓ open down ↓ |
42 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX