Mercurial > hg > graal-compiler
comparison make/linux/makefiles/dtrace.make @ 6837:75982791ddb6
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
Summary: Don't use HS_DTRACE_PROBE_CDECL_N and HS_DTRACE_PROBE_N directly.
Reviewed-by: coleenp, kamg, dholmes, sspitsyn
Contributed-by: Mark Wielaard <mjw@redhat.com>
author | coleenp |
---|---|
date | Mon, 08 Oct 2012 09:18:54 -0400 |
parents | c18cbe5936b8 |
children | a00b8f42c4c4 |
comparison
equal
deleted
inserted
replaced
6836:f2eb2d4488db | 6837:75982791ddb6 |
---|---|
1 # | 1 # |
2 # Copyright (c) 2005, 2008, Oracle and/or its affiliates. All rights reserved. | 2 # Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. |
3 # Copyright (c) 2012 Red Hat, Inc. | |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 # | 5 # |
5 # This code is free software; you can redistribute it and/or modify it | 6 # 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 # under the terms of the GNU General Public License version 2 only, as |
7 # published by the Free Software Foundation. | 8 # published by the Free Software Foundation. |
23 # | 24 # |
24 | 25 |
25 # Linux does not build jvm_db | 26 # Linux does not build jvm_db |
26 LIBJVM_DB = | 27 LIBJVM_DB = |
27 | 28 |
29 # Only OPENJDK builds test and support SDT probes currently. | |
30 ifndef OPENJDK | |
31 REASON = "This JDK does not support SDT probes" | |
32 else | |
33 | |
34 # We need a recent GCC for the default | |
35 ifeq "$(shell expr \( $(CC_VER_MAJOR) \>= 4 \) \& \( $(CC_VER_MINOR) \>= 4 \) )" "0" | |
36 REASON = "gcc version is too old" | |
37 else | |
38 | |
39 # But it does have a SystemTap dtrace compatible sys/sdt.h | |
40 ifneq ($(ALT_SDT_H),) | |
41 SDT_H_FILE = $(ALT_SDT_H) | |
42 else | |
43 SDT_H_FILE = /usr/include/sys/sdt.h | |
44 endif | |
45 DTRACE_ENABLED = $(shell test -f $(SDT_H_FILE) && echo $(SDT_H_FILE)) | |
46 REASON = "$(SDT_H_FILE) not found" | |
47 | |
48 ifneq ($(DTRACE_ENABLED),) | |
49 CFLAGS += -DDTRACE_ENABLED | |
50 endif | |
51 | |
52 endif | |
53 endif | |
54 | |
55 # Phony target used in vm.make build target to check whether enabled. | |
56 .PHONY: dtraceCheck | |
57 ifeq ($(DTRACE_ENABLED),) | |
58 dtraceCheck: | |
59 $(QUIETLY) echo "**NOTICE** Dtrace support disabled: $(REASON)" | |
60 else | |
61 dtraceCheck: | |
62 endif | |
63 | |
64 # It doesn't support HAVE_DTRACE_H though. | |
65 |