make/solaris/makefiles/dtrace.make

Print this page


   1 #
   2 # Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.
   8 #
   9 # This code is distributed in the hope that it will be useful, but WITHOUT
  10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12 # version 2 for more details (a copy is included in the LICENSE file that
  13 # accompanied this code).
  14 #
  15 # You should have received a copy of the GNU General Public License version
  16 # 2 along with this work; if not, write to the Free Software Foundation,
  17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18 #
  19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20 # or visit www.oracle.com if you need additional information or have any
  21 # questions.
  22 #  


  25 # Rules to build jvm_db/dtrace, used by vm.make
  26 
  27 # We build libjvm_dtrace/libjvm_db/dtrace for COMPILER1 and COMPILER2
  28 # but not for CORE or KERNEL configurations.
  29 
  30 ifneq ("${TYPE}", "CORE")
  31 ifneq ("${TYPE}", "KERNEL")
  32 
  33 ifdef USE_GCC
  34 
  35 dtraceCheck:
  36         $(QUIETLY) echo "**NOTICE** Dtrace support disabled for gcc builds"
  37 
  38 else
  39 
  40 JVM_DB = libjvm_db
  41 LIBJVM_DB = libjvm_db.so
  42 LIBJVM_DB_G = libjvm$(G_SUFFIX)_db.so
  43 
  44 LIBJVM_DB_DEBUGINFO = libjvm_db.debuginfo

  45 LIBJVM_DB_G_DEBUGINFO = libjvm$(G_SUFFIX)_db.debuginfo

  46 
  47 JVM_DTRACE = jvm_dtrace
  48 LIBJVM_DTRACE = libjvm_dtrace.so
  49 LIBJVM_DTRACE_G = libjvm$(G_SUFFIX)_dtrace.so
  50 
  51 LIBJVM_DTRACE_DEBUGINFO = libjvm_dtrace.debuginfo

  52 LIBJVM_DTRACE_G_DEBUGINFO = libjvm$(G_SUFFIX)_dtrace.debuginfo

  53 
  54 JVMOFFS = JvmOffsets
  55 JVMOFFS.o = $(JVMOFFS).o
  56 GENOFFS = generate$(JVMOFFS)
  57 
  58 DTRACE_SRCDIR = $(GAMMADIR)/src/os/$(Platform_os_family)/dtrace
  59 DTRACE = dtrace
  60 DTRACE.o = $(DTRACE).o
  61 
  62 # to remove '-g' option which causes link problems
  63 # also '-z nodefs' is used as workaround
  64 GENOFFS_CFLAGS = $(shell echo $(CFLAGS) | sed -e 's/ -g / /g' -e 's/ -g0 / /g';)
  65 
  66 ifdef LP64
  67 DTRACE_OPTS = -64 -D_LP64
  68 endif
  69 
  70 # making libjvm_db
  71 
  72 # Use mapfile with libjvm_db.so


  79 
  80 ifdef USE_GCC
  81 LFLAGS_JVM_DB += -D_REENTRANT $(PICFLAG)
  82 LFLAGS_JVM_DTRACE += -D_REENTRANT $(PICFLAG)
  83 else
  84 LFLAGS_JVM_DB += -mt $(PICFLAG) -xnolib
  85 LFLAGS_JVM_DTRACE += -mt $(PICFLAG) -xnolib -ldl
  86 endif
  87 
  88 ISA = $(subst i386,i486,$(shell isainfo -n))
  89 
  90 # Making 64/libjvm_db.so: 64-bit version of libjvm_db.so which handles 32-bit libjvm.so
  91 ifneq ("${ISA}","${BUILDARCH}")
  92 
  93 XLIBJVM_DB = 64/$(LIBJVM_DB)
  94 XLIBJVM_DB_G = 64/$(LIBJVM_DB_G)
  95 XLIBJVM_DTRACE = 64/$(LIBJVM_DTRACE)
  96 XLIBJVM_DTRACE_G = 64/$(LIBJVM_DTRACE_G)
  97 
  98 XLIBJVM_DB_DEBUGINFO = 64/$(LIBJVM_DB_DEBUGINFO)

  99 XLIBJVM_DB_G_DEBUGINFO = 64/$(LIBJVM_DB_G_DEBUGINFO)

 100 XLIBJVM_DTRACE_DEBUGINFO = 64/$(LIBJVM_DTRACE_DEBUGINFO)

 101 XLIBJVM_DTRACE_G_DEBUGINFO = 64/$(LIBJVM_DTRACE_G_DEBUGINFO)

 102 
 103 $(XLIBJVM_DB): $(DTRACE_SRCDIR)/$(JVM_DB).c $(JVMOFFS).h $(LIBJVM_DB_MAPFILE)
 104         @echo Making $@
 105         $(QUIETLY) mkdir -p 64/ ; \
 106         $(CC) $(SYMFLAG) $(ARCHFLAG/$(ISA)) -D$(TYPE) -I. -I$(GENERATED) \
 107                 $(SHARED_FLAG) $(LFLAGS_JVM_DB) -o $@ $(DTRACE_SRCDIR)/$(JVM_DB).c -lc
 108         [ -f $(XLIBJVM_DB_G) ] || { ln -s $(LIBJVM_DB) $(XLIBJVM_DB_G); }
 109 ifneq ($(OBJCOPY),)
 110         $(QUIETLY) $(OBJCOPY) --only-keep-debug $@ $(XLIBJVM_DB_DEBUGINFO)
 111         $(QUIETLY) $(OBJCOPY) --add-gnu-debuglink=$(XLIBJVM_DB_DEBUGINFO) $@
 112   ifeq ($(STRIP_POLICY),all_strip)
 113         $(QUIETLY) $(STRIP) $@
 114   else
 115     ifeq ($(STRIP_POLICY),min_strip)
 116         $(QUIETLY) $(STRIP) -x $@
 117     # implied else here is no stripping at all
 118     endif
 119   endif
 120         [ -f $(XLIBJVM_DB_G_DEBUGINFO) ] || { ln -s $(LIBJVM_DB_DEBUGINFO) $(XLIBJVM_DB_G_DEBUGINFO); }





 121 endif
 122 
 123 $(XLIBJVM_DTRACE): $(DTRACE_SRCDIR)/$(JVM_DTRACE).c $(DTRACE_SRCDIR)/$(JVM_DTRACE).h $(LIBJVM_DTRACE_MAPFILE)
 124         @echo Making $@
 125         $(QUIETLY) mkdir -p 64/ ; \
 126         $(CC) $(SYMFLAG) $(ARCHFLAG/$(ISA)) -D$(TYPE) -I. \
 127                 $(SHARED_FLAG) $(LFLAGS_JVM_DTRACE) -o $@ $(DTRACE_SRCDIR)/$(JVM_DTRACE).c -lc -lthread -ldoor
 128         [ -f $(XLIBJVM_DTRACE_G) ] || { ln -s $(LIBJVM_DTRACE) $(XLIBJVM_DTRACE_G); }
 129 ifneq ($(OBJCOPY),)
 130         $(QUIETLY) $(OBJCOPY) --only-keep-debug $@ $(XLIBJVM_DTRACE_DEBUGINFO)
 131         $(QUIETLY) $(OBJCOPY) --add-gnu-debuglink=$(XLIBJVM_DTRACE_DEBUGINFO) $@
 132   ifeq ($(STRIP_POLICY),all_strip)
 133         $(QUIETLY) $(STRIP) $@
 134   else
 135     ifeq ($(STRIP_POLICY),min_strip)
 136         $(QUIETLY) $(STRIP) -x $@
 137     # implied else here is no stripping at all
 138     endif
 139   endif
 140         [ -f $(XLIBJVM_DTRACE_G_DEBUGINFO) ] || { ln -s $(LIBJVM_DTRACE_DEBUGINFO) $(XLIBJVM_DTRACE_G_DEBUGINFO); }





 141 endif
 142 
 143 endif # ifneq ("${ISA}","${BUILDARCH}")
 144 
 145 ifdef USE_GCC
 146 LFLAGS_GENOFFS += -D_REENTRANT
 147 else
 148 LFLAGS_GENOFFS += -mt -xnolib -norunpath
 149 endif
 150 
 151 lib$(GENOFFS).so: $(DTRACE_SRCDIR)/$(GENOFFS).cpp $(DTRACE_SRCDIR)/$(GENOFFS).h \
 152                   $(LIBJVM.o)
 153         $(QUIETLY) $(CXX) $(CXXFLAGS) $(GENOFFS_CFLAGS) $(SHARED_FLAG) $(PICFLAG) \
 154                  $(LFLAGS_GENOFFS) -o $@ $(DTRACE_SRCDIR)/$(GENOFFS).cpp -lc
 155 
 156 $(GENOFFS): $(DTRACE_SRCDIR)/$(GENOFFS)Main.c lib$(GENOFFS).so
 157         $(QUIETLY) $(LINK.CXX) -z nodefs -o $@ $(DTRACE_SRCDIR)/$(GENOFFS)Main.c \
 158                 ./lib$(GENOFFS).so
 159 
 160 CONDITIONALLY_UPDATE_JVMOFFS_TARGET = \


 168 $(JVMOFFS).h: $(GENOFFS)
 169         $(QUIETLY) LD_LIBRARY_PATH=. ./$(GENOFFS) -header > $@.tmp
 170         $(QUIETLY) $(CONDITIONALLY_UPDATE_JVMOFFS_TARGET)
 171 
 172 $(JVMOFFS)Index.h: $(GENOFFS)
 173         $(QUIETLY) LD_LIBRARY_PATH=. ./$(GENOFFS) -index > $@.tmp
 174         $(QUIETLY)  $(CONDITIONALLY_UPDATE_JVMOFFS_TARGET)
 175 
 176 $(JVMOFFS).cpp: $(GENOFFS) $(JVMOFFS).h $(JVMOFFS)Index.h
 177         $(QUIETLY) LD_LIBRARY_PATH=. ./$(GENOFFS) -table > $@.tmp
 178         $(QUIETLY) $(CONDITIONALLY_UPDATE_JVMOFFS_TARGET)
 179 
 180 $(JVMOFFS.o): $(JVMOFFS).h $(JVMOFFS).cpp 
 181         $(QUIETLY) $(CXX) -c -I. -o $@ $(ARCHFLAG) -D$(TYPE) $(JVMOFFS).cpp
 182 
 183 $(LIBJVM_DB): $(DTRACE_SRCDIR)/$(JVM_DB).c $(JVMOFFS.o) $(XLIBJVM_DB) $(LIBJVM_DB_MAPFILE)
 184         @echo Making $@
 185         $(QUIETLY) $(CC) $(SYMFLAG) $(ARCHFLAG) -D$(TYPE) -I. -I$(GENERATED) \
 186                 $(SHARED_FLAG) $(LFLAGS_JVM_DB) -o $@ $(DTRACE_SRCDIR)/$(JVM_DB).c -lc
 187         [ -f $(LIBJVM_DB_G) ] || { ln -s $@ $(LIBJVM_DB_G); }
 188 ifneq ($(OBJCOPY),)
 189         $(QUIETLY) $(OBJCOPY) --only-keep-debug $@ $(LIBJVM_DB_DEBUGINFO)
 190         $(QUIETLY) $(OBJCOPY) --add-gnu-debuglink=$(LIBJVM_DB_DEBUGINFO) $@
 191   ifeq ($(STRIP_POLICY),all_strip)
 192         $(QUIETLY) $(STRIP) $@
 193   else
 194     ifeq ($(STRIP_POLICY),min_strip)
 195         $(QUIETLY) $(STRIP) -x $@
 196     # implied else here is no stripping at all
 197     endif
 198   endif
 199         [ -f $(LIBJVM_DB_G_DEBUGINFO) ] || { ln -s $(LIBJVM_DB_DEBUGINFO) $(LIBJVM_DB_G_DEBUGINFO); }





 200 endif
 201 
 202 $(LIBJVM_DTRACE): $(DTRACE_SRCDIR)/$(JVM_DTRACE).c $(XLIBJVM_DTRACE) $(DTRACE_SRCDIR)/$(JVM_DTRACE).h $(LIBJVM_DTRACE_MAPFILE)
 203         @echo Making $@
 204         $(QUIETLY) $(CC) $(SYMFLAG) $(ARCHFLAG) -D$(TYPE) -I.  \
 205                 $(SHARED_FLAG) $(LFLAGS_JVM_DTRACE) -o $@ $(DTRACE_SRCDIR)/$(JVM_DTRACE).c -lc -lthread -ldoor
 206         [ -f $(LIBJVM_DTRACE_G) ] || { ln -s $@ $(LIBJVM_DTRACE_G); }
 207 ifneq ($(OBJCOPY),)
 208         $(QUIETLY) $(OBJCOPY) --only-keep-debug $@ $(LIBJVM_DTRACE_DEBUGINFO)
 209         $(QUIETLY) $(OBJCOPY) --add-gnu-debuglink=$(LIBJVM_DTRACE_DEBUGINFO) $@
 210   ifeq ($(STRIP_POLICY),all_strip)
 211         $(QUIETLY) $(STRIP) $@
 212   else
 213     ifeq ($(STRIP_POLICY),min_strip)
 214         $(QUIETLY) $(STRIP) -x $@
 215     # implied else here is no stripping at all
 216     endif
 217   endif
 218         [ -f $(LIBJVM_DTRACE_G_DEBUGINFO) ] || { ln -s $(LIBJVM_DTRACE_DEBUGINFO) $(LIBJVM_DTRACE_G_DEBUGINFO); }





 219 endif
 220 
 221 $(DTRACE).d: $(DTRACE_SRCDIR)/hotspot.d $(DTRACE_SRCDIR)/hotspot_jni.d \
 222              $(DTRACE_SRCDIR)/hs_private.d $(DTRACE_SRCDIR)/jhelper.d
 223         $(QUIETLY) cat $^ > $@
 224 
 225 DTraced_Files = ciEnv.o \
 226                 classLoadingService.o \
 227                 compileBroker.o \
 228                 hashtable.o \
 229                 instanceKlass.o \
 230                 java.o \
 231                 jni.o \
 232                 jvm.o \
 233                 memoryManager.o \
 234                 nmethod.o \
 235                 objectMonitor.o \
 236                 runtimeService.o \
 237                 sharedRuntime.o \
 238                 synchronizer.o \


   1 #
   2 # Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.
   8 #
   9 # This code is distributed in the hope that it will be useful, but WITHOUT
  10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12 # version 2 for more details (a copy is included in the LICENSE file that
  13 # accompanied this code).
  14 #
  15 # You should have received a copy of the GNU General Public License version
  16 # 2 along with this work; if not, write to the Free Software Foundation,
  17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18 #
  19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20 # or visit www.oracle.com if you need additional information or have any
  21 # questions.
  22 #  


  25 # Rules to build jvm_db/dtrace, used by vm.make
  26 
  27 # We build libjvm_dtrace/libjvm_db/dtrace for COMPILER1 and COMPILER2
  28 # but not for CORE or KERNEL configurations.
  29 
  30 ifneq ("${TYPE}", "CORE")
  31 ifneq ("${TYPE}", "KERNEL")
  32 
  33 ifdef USE_GCC
  34 
  35 dtraceCheck:
  36         $(QUIETLY) echo "**NOTICE** Dtrace support disabled for gcc builds"
  37 
  38 else
  39 
  40 JVM_DB = libjvm_db
  41 LIBJVM_DB = libjvm_db.so
  42 LIBJVM_DB_G = libjvm$(G_SUFFIX)_db.so
  43 
  44 LIBJVM_DB_DEBUGINFO   = libjvm_db.debuginfo
  45 LIBJVM_DB_DIZ         = libjvm_db.diz
  46 LIBJVM_DB_G_DEBUGINFO = libjvm$(G_SUFFIX)_db.debuginfo
  47 LIBJVM_DB_G_DIZ       = libjvm$(G_SUFFIX)_db.diz
  48 
  49 JVM_DTRACE = jvm_dtrace
  50 LIBJVM_DTRACE = libjvm_dtrace.so
  51 LIBJVM_DTRACE_G = libjvm$(G_SUFFIX)_dtrace.so
  52 
  53 LIBJVM_DTRACE_DEBUGINFO   = libjvm_dtrace.debuginfo
  54 LIBJVM_DTRACE_DIZ         = libjvm_dtrace.diz
  55 LIBJVM_DTRACE_G_DEBUGINFO = libjvm$(G_SUFFIX)_dtrace.debuginfo
  56 LIBJVM_DTRACE_G_DIZ       = libjvm$(G_SUFFIX)_dtrace.diz
  57 
  58 JVMOFFS = JvmOffsets
  59 JVMOFFS.o = $(JVMOFFS).o
  60 GENOFFS = generate$(JVMOFFS)
  61 
  62 DTRACE_SRCDIR = $(GAMMADIR)/src/os/$(Platform_os_family)/dtrace
  63 DTRACE = dtrace
  64 DTRACE.o = $(DTRACE).o
  65 
  66 # to remove '-g' option which causes link problems
  67 # also '-z nodefs' is used as workaround
  68 GENOFFS_CFLAGS = $(shell echo $(CFLAGS) | sed -e 's/ -g / /g' -e 's/ -g0 / /g';)
  69 
  70 ifdef LP64
  71 DTRACE_OPTS = -64 -D_LP64
  72 endif
  73 
  74 # making libjvm_db
  75 
  76 # Use mapfile with libjvm_db.so


  83 
  84 ifdef USE_GCC
  85 LFLAGS_JVM_DB += -D_REENTRANT $(PICFLAG)
  86 LFLAGS_JVM_DTRACE += -D_REENTRANT $(PICFLAG)
  87 else
  88 LFLAGS_JVM_DB += -mt $(PICFLAG) -xnolib
  89 LFLAGS_JVM_DTRACE += -mt $(PICFLAG) -xnolib -ldl
  90 endif
  91 
  92 ISA = $(subst i386,i486,$(shell isainfo -n))
  93 
  94 # Making 64/libjvm_db.so: 64-bit version of libjvm_db.so which handles 32-bit libjvm.so
  95 ifneq ("${ISA}","${BUILDARCH}")
  96 
  97 XLIBJVM_DB = 64/$(LIBJVM_DB)
  98 XLIBJVM_DB_G = 64/$(LIBJVM_DB_G)
  99 XLIBJVM_DTRACE = 64/$(LIBJVM_DTRACE)
 100 XLIBJVM_DTRACE_G = 64/$(LIBJVM_DTRACE_G)
 101 
 102 XLIBJVM_DB_DEBUGINFO       = 64/$(LIBJVM_DB_DEBUGINFO)
 103 XLIBJVM_DB_DIZ             = 64/$(LIBJVM_DB_DIZ)
 104 XLIBJVM_DB_G_DEBUGINFO     = 64/$(LIBJVM_DB_G_DEBUGINFO)
 105 XLIBJVM_DB_G_DIZ           = 64/$(LIBJVM_DB_G_DIZ)
 106 XLIBJVM_DTRACE_DEBUGINFO   = 64/$(LIBJVM_DTRACE_DEBUGINFO)
 107 XLIBJVM_DTRACE_DIZ         = 64/$(LIBJVM_DTRACE_DIZ)
 108 XLIBJVM_DTRACE_G_DEBUGINFO = 64/$(LIBJVM_DTRACE_G_DEBUGINFO)
 109 XLIBJVM_DTRACE_G_DIZ       = 64/$(LIBJVM_DTRACE_G_DIZ)
 110 
 111 $(XLIBJVM_DB): $(DTRACE_SRCDIR)/$(JVM_DB).c $(JVMOFFS).h $(LIBJVM_DB_MAPFILE)
 112         @echo Making $@
 113         $(QUIETLY) mkdir -p 64/ ; \
 114         $(CC) $(SYMFLAG) $(ARCHFLAG/$(ISA)) -D$(TYPE) -I. -I$(GENERATED) \
 115                 $(SHARED_FLAG) $(LFLAGS_JVM_DB) -o $@ $(DTRACE_SRCDIR)/$(JVM_DB).c -lc
 116         [ -f $(XLIBJVM_DB_G) ] || { ln -s $(LIBJVM_DB) $(XLIBJVM_DB_G); }
 117 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
 118         $(QUIETLY) $(OBJCOPY) --only-keep-debug $@ $(XLIBJVM_DB_DEBUGINFO)
 119         $(QUIETLY) $(OBJCOPY) --add-gnu-debuglink=$(XLIBJVM_DB_DEBUGINFO) $@
 120   ifeq ($(STRIP_POLICY),all_strip)
 121         $(QUIETLY) $(STRIP) $@
 122   else
 123     ifeq ($(STRIP_POLICY),min_strip)
 124         $(QUIETLY) $(STRIP) -x $@
 125     # implied else here is no stripping at all
 126     endif
 127   endif
 128         [ -f $(XLIBJVM_DB_G_DEBUGINFO) ] || { ln -s $(XLIBJVM_DB_DEBUGINFO) $(XLIBJVM_DB_G_DEBUGINFO); }
 129   ifeq ($(ZIP_DEBUGINFO_FILES),1)
 130         $(ZIPEXE) -q -y $(XLIBJVM_DB_DIZ) $(XLIBJVM_DB_DEBUGINFO) $(XLIBJVM_DB_G_DEBUGINFO)
 131         $(RM) $(XLIBJVM_DB_DEBUGINFO) $(XLIBJVM_DB_G_DEBUGINFO)
 132         [ -f $(XLIBJVM_DB_G_DIZ) ] || { ln -s $(XLIBJVM_DB_DIZ) $(XLIBJVM_DB_G_DIZ); }
 133   endif
 134 endif
 135 
 136 $(XLIBJVM_DTRACE): $(DTRACE_SRCDIR)/$(JVM_DTRACE).c $(DTRACE_SRCDIR)/$(JVM_DTRACE).h $(LIBJVM_DTRACE_MAPFILE)
 137         @echo Making $@
 138         $(QUIETLY) mkdir -p 64/ ; \
 139         $(CC) $(SYMFLAG) $(ARCHFLAG/$(ISA)) -D$(TYPE) -I. \
 140                 $(SHARED_FLAG) $(LFLAGS_JVM_DTRACE) -o $@ $(DTRACE_SRCDIR)/$(JVM_DTRACE).c -lc -lthread -ldoor
 141         [ -f $(XLIBJVM_DTRACE_G) ] || { ln -s $(LIBJVM_DTRACE) $(XLIBJVM_DTRACE_G); }
 142 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
 143         $(QUIETLY) $(OBJCOPY) --only-keep-debug $@ $(XLIBJVM_DTRACE_DEBUGINFO)
 144         $(QUIETLY) $(OBJCOPY) --add-gnu-debuglink=$(XLIBJVM_DTRACE_DEBUGINFO) $@
 145   ifeq ($(STRIP_POLICY),all_strip)
 146         $(QUIETLY) $(STRIP) $@
 147   else
 148     ifeq ($(STRIP_POLICY),min_strip)
 149         $(QUIETLY) $(STRIP) -x $@
 150     # implied else here is no stripping at all
 151     endif
 152   endif
 153         [ -f $(XLIBJVM_DTRACE_G_DEBUGINFO) ] || { ln -s $(XLIBJVM_DTRACE_DEBUGINFO) $(XLIBJVM_DTRACE_G_DEBUGINFO); }
 154   ifeq ($(ZIP_DEBUGINFO_FILES),1)
 155         $(ZIPEXE) -q -y $(XLIBJVM_DTRACE_DIZ) $(XLIBJVM_DTRACE_DEBUGINFO) $(XLIBJVM_DTRACE_G_DEBUGINFO)
 156         $(RM) $(XLIBJVM_DTRACE_DEBUGINFO) $(XLIBJVM_DTRACE_G_DEBUGINFO)
 157         [ -f $(XLIBJVM_DTRACE_G_DIZ) ] || { ln -s $(XLIBJVM_DTRACE_DIZ) $(XLIBJVM_DTRACE_G_DIZ); }
 158   endif
 159 endif
 160 
 161 endif # ifneq ("${ISA}","${BUILDARCH}")
 162 
 163 ifdef USE_GCC
 164 LFLAGS_GENOFFS += -D_REENTRANT
 165 else
 166 LFLAGS_GENOFFS += -mt -xnolib -norunpath
 167 endif
 168 
 169 lib$(GENOFFS).so: $(DTRACE_SRCDIR)/$(GENOFFS).cpp $(DTRACE_SRCDIR)/$(GENOFFS).h \
 170                   $(LIBJVM.o)
 171         $(QUIETLY) $(CXX) $(CXXFLAGS) $(GENOFFS_CFLAGS) $(SHARED_FLAG) $(PICFLAG) \
 172                  $(LFLAGS_GENOFFS) -o $@ $(DTRACE_SRCDIR)/$(GENOFFS).cpp -lc
 173 
 174 $(GENOFFS): $(DTRACE_SRCDIR)/$(GENOFFS)Main.c lib$(GENOFFS).so
 175         $(QUIETLY) $(LINK.CXX) -z nodefs -o $@ $(DTRACE_SRCDIR)/$(GENOFFS)Main.c \
 176                 ./lib$(GENOFFS).so
 177 
 178 CONDITIONALLY_UPDATE_JVMOFFS_TARGET = \


 186 $(JVMOFFS).h: $(GENOFFS)
 187         $(QUIETLY) LD_LIBRARY_PATH=. ./$(GENOFFS) -header > $@.tmp
 188         $(QUIETLY) $(CONDITIONALLY_UPDATE_JVMOFFS_TARGET)
 189 
 190 $(JVMOFFS)Index.h: $(GENOFFS)
 191         $(QUIETLY) LD_LIBRARY_PATH=. ./$(GENOFFS) -index > $@.tmp
 192         $(QUIETLY)  $(CONDITIONALLY_UPDATE_JVMOFFS_TARGET)
 193 
 194 $(JVMOFFS).cpp: $(GENOFFS) $(JVMOFFS).h $(JVMOFFS)Index.h
 195         $(QUIETLY) LD_LIBRARY_PATH=. ./$(GENOFFS) -table > $@.tmp
 196         $(QUIETLY) $(CONDITIONALLY_UPDATE_JVMOFFS_TARGET)
 197 
 198 $(JVMOFFS.o): $(JVMOFFS).h $(JVMOFFS).cpp 
 199         $(QUIETLY) $(CXX) -c -I. -o $@ $(ARCHFLAG) -D$(TYPE) $(JVMOFFS).cpp
 200 
 201 $(LIBJVM_DB): $(DTRACE_SRCDIR)/$(JVM_DB).c $(JVMOFFS.o) $(XLIBJVM_DB) $(LIBJVM_DB_MAPFILE)
 202         @echo Making $@
 203         $(QUIETLY) $(CC) $(SYMFLAG) $(ARCHFLAG) -D$(TYPE) -I. -I$(GENERATED) \
 204                 $(SHARED_FLAG) $(LFLAGS_JVM_DB) -o $@ $(DTRACE_SRCDIR)/$(JVM_DB).c -lc
 205         [ -f $(LIBJVM_DB_G) ] || { ln -s $@ $(LIBJVM_DB_G); }
 206 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
 207         $(QUIETLY) $(OBJCOPY) --only-keep-debug $@ $(LIBJVM_DB_DEBUGINFO)
 208         $(QUIETLY) $(OBJCOPY) --add-gnu-debuglink=$(LIBJVM_DB_DEBUGINFO) $@
 209   ifeq ($(STRIP_POLICY),all_strip)
 210         $(QUIETLY) $(STRIP) $@
 211   else
 212     ifeq ($(STRIP_POLICY),min_strip)
 213         $(QUIETLY) $(STRIP) -x $@
 214     # implied else here is no stripping at all
 215     endif
 216   endif
 217         [ -f $(LIBJVM_DB_G_DEBUGINFO) ] || { ln -s $(LIBJVM_DB_DEBUGINFO) $(LIBJVM_DB_G_DEBUGINFO); }
 218   ifeq ($(ZIP_DEBUGINFO_FILES),1)
 219         $(ZIPEXE) -q -y $(LIBJVM_DB_DIZ) $(LIBJVM_DB_DEBUGINFO) $(LIBJVM_DB_G_DEBUGINFO)
 220         $(RM) $(LIBJVM_DB_DEBUGINFO) $(LIBJVM_DB_G_DEBUGINFO)
 221         [ -f $(LIBJVM_DB_G_DIZ) ] || { ln -s $(LIBJVM_DB_DIZ) $(LIBJVM_DB_G_DIZ); }
 222   endif
 223 endif
 224 
 225 $(LIBJVM_DTRACE): $(DTRACE_SRCDIR)/$(JVM_DTRACE).c $(XLIBJVM_DTRACE) $(DTRACE_SRCDIR)/$(JVM_DTRACE).h $(LIBJVM_DTRACE_MAPFILE)
 226         @echo Making $@
 227         $(QUIETLY) $(CC) $(SYMFLAG) $(ARCHFLAG) -D$(TYPE) -I.  \
 228                 $(SHARED_FLAG) $(LFLAGS_JVM_DTRACE) -o $@ $(DTRACE_SRCDIR)/$(JVM_DTRACE).c -lc -lthread -ldoor
 229         [ -f $(LIBJVM_DTRACE_G) ] || { ln -s $@ $(LIBJVM_DTRACE_G); }
 230 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
 231         $(QUIETLY) $(OBJCOPY) --only-keep-debug $@ $(LIBJVM_DTRACE_DEBUGINFO)
 232         $(QUIETLY) $(OBJCOPY) --add-gnu-debuglink=$(LIBJVM_DTRACE_DEBUGINFO) $@
 233   ifeq ($(STRIP_POLICY),all_strip)
 234         $(QUIETLY) $(STRIP) $@
 235   else
 236     ifeq ($(STRIP_POLICY),min_strip)
 237         $(QUIETLY) $(STRIP) -x $@
 238     # implied else here is no stripping at all
 239     endif
 240   endif
 241         [ -f $(LIBJVM_DTRACE_G_DEBUGINFO) ] || { ln -s $(LIBJVM_DTRACE_DEBUGINFO) $(LIBJVM_DTRACE_G_DEBUGINFO); }
 242   ifeq ($(ZIP_DEBUGINFO_FILES),1)
 243         $(ZIPEXE) -q -y $(LIBJVM_DTRACE_DIZ) $(LIBJVM_DTRACE_DEBUGINFO) $(LIBJVM_DTRACE_G_DEBUGINFO)
 244         $(RM) $(LIBJVM_DTRACE_DEBUGINFO) $(LIBJVM_DTRACE_G_DEBUGINFO)
 245         [ -f $(LIBJVM_DTRACE_G_DIZ) ] || { ln -s $(LIBJVM_DTRACE_DIZ) $(LIBJVM_DTRACE_G_DIZ); }
 246   endif
 247 endif
 248 
 249 $(DTRACE).d: $(DTRACE_SRCDIR)/hotspot.d $(DTRACE_SRCDIR)/hotspot_jni.d \
 250              $(DTRACE_SRCDIR)/hs_private.d $(DTRACE_SRCDIR)/jhelper.d
 251         $(QUIETLY) cat $^ > $@
 252 
 253 DTraced_Files = ciEnv.o \
 254                 classLoadingService.o \
 255                 compileBroker.o \
 256                 hashtable.o \
 257                 instanceKlass.o \
 258                 java.o \
 259                 jni.o \
 260                 jvm.o \
 261                 memoryManager.o \
 262                 nmethod.o \
 263                 objectMonitor.o \
 264                 runtimeService.o \
 265                 sharedRuntime.o \
 266                 synchronizer.o \