Mercurial > hg > graal-compiler
comparison make/linux/makefiles/dtrace.make @ 14319:a00b8f42c4c4
8032462: Change the linux SDT implementation to use USDT2 instead of USDT1
Reviewed-by: coleenp, sspitsyn, kamg
author | sla |
---|---|
date | Mon, 03 Feb 2014 13:41:26 +0100 |
parents | 75982791ddb6 |
children | 4ca6dc0799b6 |
comparison
equal
deleted
inserted
replaced
14318:1020b892787b | 14319:a00b8f42c4c4 |
---|---|
40 ifneq ($(ALT_SDT_H),) | 40 ifneq ($(ALT_SDT_H),) |
41 SDT_H_FILE = $(ALT_SDT_H) | 41 SDT_H_FILE = $(ALT_SDT_H) |
42 else | 42 else |
43 SDT_H_FILE = /usr/include/sys/sdt.h | 43 SDT_H_FILE = /usr/include/sys/sdt.h |
44 endif | 44 endif |
45 | |
45 DTRACE_ENABLED = $(shell test -f $(SDT_H_FILE) && echo $(SDT_H_FILE)) | 46 DTRACE_ENABLED = $(shell test -f $(SDT_H_FILE) && echo $(SDT_H_FILE)) |
46 REASON = "$(SDT_H_FILE) not found" | 47 REASON = "$(SDT_H_FILE) not found" |
47 | 48 |
49 endif # GCC version | |
50 endif # OPENJDK | |
51 | |
52 | |
53 DTRACE_COMMON_SRCDIR = $(GAMMADIR)/src/os/posix/dtrace | |
54 DTRACE_PROG = dtrace | |
55 DtraceOutDir = $(GENERATED)/dtracefiles | |
56 | |
57 $(DtraceOutDir): | |
58 mkdir $(DtraceOutDir) | |
59 | |
60 $(DtraceOutDir)/hotspot.h: $(DTRACE_COMMON_SRCDIR)/hotspot.d | $(DtraceOutDir) | |
61 $(QUIETLY) $(DTRACE_PROG) $(DTRACE_OPTS) -C -I. -h -o $@ -s $(DTRACE_COMMON_SRCDIR)/hotspot.d | |
62 | |
63 $(DtraceOutDir)/hotspot_jni.h: $(DTRACE_COMMON_SRCDIR)/hotspot_jni.d | $(DtraceOutDir) | |
64 $(QUIETLY) $(DTRACE_PROG) $(DTRACE_OPTS) -C -I. -h -o $@ -s $(DTRACE_COMMON_SRCDIR)/hotspot_jni.d | |
65 | |
66 $(DtraceOutDir)/hs_private.h: $(DTRACE_COMMON_SRCDIR)/hs_private.d | $(DtraceOutDir) | |
67 $(QUIETLY) $(DTRACE_PROG) $(DTRACE_OPTS) -C -I. -h -o $@ -s $(DTRACE_COMMON_SRCDIR)/hs_private.d | |
68 | |
48 ifneq ($(DTRACE_ENABLED),) | 69 ifneq ($(DTRACE_ENABLED),) |
49 CFLAGS += -DDTRACE_ENABLED | 70 CFLAGS += -DDTRACE_ENABLED |
50 endif | 71 dtrace_gen_headers: $(DtraceOutDir)/hotspot.h $(DtraceOutDir)/hotspot_jni.h $(DtraceOutDir)/hs_private.h |
51 | 72 else |
52 endif | 73 dtrace_gen_headers: |
74 $(QUIETLY) echo "**NOTICE** Dtrace support disabled: $(REASON)" | |
53 endif | 75 endif |
54 | 76 |
55 # Phony target used in vm.make build target to check whether enabled. | 77 # Phony target used in vm.make build target to check whether enabled. |
56 .PHONY: dtraceCheck | |
57 ifeq ($(DTRACE_ENABLED),) | 78 ifeq ($(DTRACE_ENABLED),) |
58 dtraceCheck: | 79 dtraceCheck: |
59 $(QUIETLY) echo "**NOTICE** Dtrace support disabled: $(REASON)" | 80 $(QUIETLY) echo "**NOTICE** Dtrace support disabled: $(REASON)" |
60 else | 81 else |
61 dtraceCheck: | 82 dtraceCheck: |
62 endif | 83 endif |
63 | 84 |
85 .PHONY: dtrace_gen_headers dtraceCheck | |
86 | |
64 # It doesn't support HAVE_DTRACE_H though. | 87 # It doesn't support HAVE_DTRACE_H though. |
65 | 88 |