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
↓ 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  
↓ 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)
↓ open down ↓ 34 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX