author | coleenp |
Mon, 08 Oct 2012 09:18:54 -0400 | |
changeset 13958 | f5598a86c223 |
parent 5547 | f4b087cbb361 |
child 22736 | 6c317cced072 |
permissions | -rw-r--r-- |
1 | 1 |
# |
13958
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
2 |
# Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
3 |
# Copyright (c) 2012 Red Hat, Inc. |
1 | 4 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 |
# |
|
6 |
# This code is free software; you can redistribute it and/or modify it |
|
7 |
# under the terms of the GNU General Public License version 2 only, as |
|
8 |
# published by the Free Software Foundation. |
|
9 |
# |
|
10 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
|
11 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
12 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
13 |
# version 2 for more details (a copy is included in the LICENSE file that |
|
14 |
# accompanied this code). |
|
15 |
# |
|
16 |
# You should have received a copy of the GNU General Public License version |
|
17 |
# 2 along with this work; if not, write to the Free Software Foundation, |
|
18 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
19 |
# |
|
5547
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
670
diff
changeset
|
20 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
670
diff
changeset
|
21 |
# or visit www.oracle.com if you need additional information or have any |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
670
diff
changeset
|
22 |
# questions. |
1 | 23 |
# |
24 |
# |
|
25 |
||
26 |
# Linux does not build jvm_db |
|
27 |
LIBJVM_DB = |
|
28 |
||
13958
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
29 |
# Only OPENJDK builds test and support SDT probes currently. |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
30 |
ifndef OPENJDK |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
31 |
REASON = "This JDK does not support SDT probes" |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
32 |
else |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
33 |
|
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
34 |
# We need a recent GCC for the default |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
35 |
ifeq "$(shell expr \( $(CC_VER_MAJOR) \>= 4 \) \& \( $(CC_VER_MINOR) \>= 4 \) )" "0" |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
36 |
REASON = "gcc version is too old" |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
37 |
else |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
38 |
|
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
39 |
# But it does have a SystemTap dtrace compatible sys/sdt.h |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
40 |
ifneq ($(ALT_SDT_H),) |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
41 |
SDT_H_FILE = $(ALT_SDT_H) |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
42 |
else |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
43 |
SDT_H_FILE = /usr/include/sys/sdt.h |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
44 |
endif |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
45 |
DTRACE_ENABLED = $(shell test -f $(SDT_H_FILE) && echo $(SDT_H_FILE)) |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
46 |
REASON = "$(SDT_H_FILE) not found" |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
47 |
|
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
48 |
ifneq ($(DTRACE_ENABLED),) |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
49 |
CFLAGS += -DDTRACE_ENABLED |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
50 |
endif |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
51 |
|
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
52 |
endif |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
53 |
endif |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
54 |
|
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
55 |
# Phony target used in vm.make build target to check whether enabled. |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
56 |
.PHONY: dtraceCheck |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
57 |
ifeq ($(DTRACE_ENABLED),) |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
58 |
dtraceCheck: |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
59 |
$(QUIETLY) echo "**NOTICE** Dtrace support disabled: $(REASON)" |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
60 |
else |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
61 |
dtraceCheck: |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
62 |
endif |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
63 |
|
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
64 |
# It doesn't support HAVE_DTRACE_H though. |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5547
diff
changeset
|
65 |