]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
dtrace: Integrate DTrace Modules into kernel proper
authorTomas Jedlicka <tomas.jedlicka@oracle.com>
Tue, 1 Aug 2017 13:15:44 +0000 (09:15 -0400)
committerTomas Jedlicka <tomas.jedlicka@oracle.com>
Tue, 29 Aug 2017 13:31:11 +0000 (15:31 +0200)
This changeset integrates DTrace module sources into the main kernel
source tree under the GPLv2 license.  Sources have been moved to
appropriate locations in the kernel tree.

In addition a new RPM package is introduced: kernel-headers-dtrace.
This package is responsible for installation of DTrace related header
files for its userspace component.

Orabug: 26585689

Signed-off-by: Tomas Jedlicka <tomas.jedlicka@oracle.com>
Signed-off-by: David Mc Lean <david.mclean@oracle.com>
Reviewed-by: Kris Van Hees <kris.van.hees@oracle.com>
145 files changed:
Makefile
arch/sparc/dtrace/Makefile.arch [new file with mode: 0644]
arch/sparc/dtrace/dtrace_asm_sparc64.S [moved from dtrace/dtrace_asm_sparc64.S with 84% similarity]
arch/sparc/dtrace/dtrace_isa_sparc64.c [moved from dtrace/dtrace_isa_sparc64.c with 79% similarity]
arch/sparc/dtrace/fasttrap_sparc64.c [moved from dtrace/fasttrap_sparc64.c with 70% similarity]
arch/sparc/dtrace/fbt_sparc64.c [moved from dtrace/fbt_sparc64.c with 92% similarity]
arch/sparc/dtrace/include/dtrace/fasttrap_arch.h [new file with mode: 0644]
arch/sparc/dtrace/include/dtrace/fbt_arch.h [moved from dtrace/include/sparc64/dtrace/fbt_arch.h with 55% similarity]
arch/sparc/dtrace/include/dtrace/isa_arch.h [moved from dtrace/include/sparc64/dtrace/isa_arch.h with 92% similarity]
arch/sparc/dtrace/include/dtrace/mod_arch.h [new file with mode: 0644]
arch/sparc/dtrace/include/dtrace/sdt_arch.h [new file with mode: 0644]
arch/sparc/dtrace/sdt_sparc64.c [moved from dtrace/sdt_sparc64.c with 84% similarity]
arch/x86/dtrace/Makefile.arch [new file with mode: 0644]
arch/x86/dtrace/dtrace_asm_x86_64.S [moved from dtrace/dtrace_asm_x86_64.S with 85% similarity]
arch/x86/dtrace/dtrace_isa_x86_64.c [moved from dtrace/dtrace_isa_x86_64.c with 83% similarity]
arch/x86/dtrace/fasttrap_x86_64.c [moved from dtrace/fasttrap_x86_64.c with 66% similarity]
arch/x86/dtrace/fbt_x86_64.c [moved from dtrace/fbt_x86_64.c with 75% similarity]
arch/x86/dtrace/include/dtrace/fasttrap_arch.h [new file with mode: 0644]
arch/x86/dtrace/include/dtrace/fbt_arch.h [moved from dtrace/include/x86_64/dtrace/fbt_arch.h with 54% similarity]
arch/x86/dtrace/include/dtrace/mod_arch.h [new file with mode: 0644]
arch/x86/dtrace/include/dtrace/sdt_arch.h [new file with mode: 0644]
arch/x86/dtrace/sdt_x86_64.c [moved from dtrace/sdt_x86_64.c with 68% similarity]
dtrace/Kbuild [deleted file]
dtrace/Makefile
dtrace/ctf_api.h
dtrace/dt_perf.h
dtrace/dt_perf_dev.c
dtrace/dt_perf_mod.c
dtrace/dt_test.h
dtrace/dt_test_dev.c
dtrace/dt_test_mod.c
dtrace/dtrace-module.spec [deleted file]
dtrace/dtrace.h
dtrace/dtrace_actdesc.c
dtrace/dtrace_anon.c
dtrace/dtrace_buffer.c
dtrace/dtrace_debug.h
dtrace/dtrace_dev.c
dtrace/dtrace_dev.h
dtrace/dtrace_dif.c
dtrace/dtrace_dof.c
dtrace/dtrace_ecb.c
dtrace/dtrace_enable.c
dtrace/dtrace_fmt.c
dtrace/dtrace_hash.c
dtrace/dtrace_isa.c
dtrace/dtrace_match.c
dtrace/dtrace_mod.c
dtrace/dtrace_predicate.c
dtrace/dtrace_priv.c
dtrace/dtrace_probe.c
dtrace/dtrace_probe_ctx.c
dtrace/dtrace_ptofapi.c
dtrace/dtrace_spec.c
dtrace/dtrace_state.c
dtrace/dtrace_util.c
dtrace/fasttrap_dev.c
dtrace/fasttrap_impl.h
dtrace/fasttrap_mod.c
dtrace/fbt_dev.c
dtrace/fbt_impl.h
dtrace/fbt_mod.c
dtrace/include/dtrace/provider_defines.h [deleted file]
dtrace/include/sparc64/dtrace/fasttrap_arch.h [deleted file]
dtrace/include/sparc64/dtrace/mod_arch.h [deleted file]
dtrace/include/sparc64/dtrace/sdt_arch.h [deleted file]
dtrace/include/uapi/linux/dtrace/actions.h [deleted file]
dtrace/include/uapi/linux/dtrace/arg_defines.h [deleted file]
dtrace/include/uapi/linux/dtrace/buffer_defines.h [deleted file]
dtrace/include/uapi/linux/dtrace/conf.h [deleted file]
dtrace/include/uapi/linux/dtrace/conf_defines.h [deleted file]
dtrace/include/uapi/linux/dtrace/difo_defines.h [deleted file]
dtrace/include/uapi/linux/dtrace/dtrace.h [deleted file]
dtrace/include/uapi/linux/dtrace/enabling_defines.h [deleted file]
dtrace/include/uapi/linux/dtrace/fasttrap_defines.h [deleted file]
dtrace/include/uapi/linux/dtrace/fasttrap_ioctl.h [deleted file]
dtrace/include/uapi/linux/dtrace/faults.h [deleted file]
dtrace/include/uapi/linux/dtrace/helpers_defines.h [deleted file]
dtrace/include/uapi/linux/dtrace/ioctl_debug.h [deleted file]
dtrace/include/uapi/linux/dtrace/metadesc_defines.h [deleted file]
dtrace/include/uapi/linux/dtrace/options.h [deleted file]
dtrace/include/x86_64/dtrace/fasttrap_arch.h [deleted file]
dtrace/include/x86_64/dtrace/mod_arch.h [deleted file]
dtrace/include/x86_64/dtrace/sdt_arch.h [deleted file]
dtrace/profile.h
dtrace/profile_dev.c
dtrace/profile_mod.c
dtrace/sdt_dev.c
dtrace/sdt_impl.h
dtrace/sdt_mod.c
dtrace/systrace.h
dtrace/systrace_dev.c
dtrace/systrace_mod.c
include/dtrace/dtrace_impl.h [moved from dtrace/include/dtrace/dtrace_impl.h with 97% similarity]
include/dtrace/dtrace_impl_defines.h [moved from dtrace/include/dtrace/dtrace_impl_defines.h with 84% similarity]
include/dtrace/provider.h [moved from dtrace/include/dtrace/provider.h with 97% similarity]
include/dtrace/provider_defines.h [new file with mode: 0644]
include/dtrace/types.h [moved from dtrace/include/dtrace/types.h with 79% similarity]
include/linux/dtrace/cpu_defines.h [new file with mode: 0644]
include/linux/dtrace_cpu_defines.h
include/uapi/linux/Kbuild
include/uapi/linux/dtrace/Kbuild [new file with mode: 0644]
include/uapi/linux/dtrace/actions.h [new file with mode: 0644]
include/uapi/linux/dtrace/actions_defines.h [moved from dtrace/include/uapi/linux/dtrace/actions_defines.h with 84% similarity]
include/uapi/linux/dtrace/arg.h [moved from dtrace/include/uapi/linux/dtrace/arg.h with 59% similarity]
include/uapi/linux/dtrace/arg_defines.h [new file with mode: 0644]
include/uapi/linux/dtrace/buffer.h [moved from dtrace/include/uapi/linux/dtrace/buffer.h with 61% similarity]
include/uapi/linux/dtrace/buffer_defines.h [new file with mode: 0644]
include/uapi/linux/dtrace/conf.h [new file with mode: 0644]
include/uapi/linux/dtrace/conf_defines.h [new file with mode: 0644]
include/uapi/linux/dtrace/cpu_defines.h [new file with mode: 0644]
include/uapi/linux/dtrace/dif.h [moved from dtrace/include/uapi/linux/dtrace/dif.h with 63% similarity]
include/uapi/linux/dtrace/dif_defines.h [moved from dtrace/include/uapi/linux/dtrace/dif_defines.h with 91% similarity]
include/uapi/linux/dtrace/difo.h [moved from dtrace/include/uapi/linux/dtrace/difo.h with 68% similarity]
include/uapi/linux/dtrace/difo_defines.h [new file with mode: 0644]
include/uapi/linux/dtrace/dof.h [moved from dtrace/include/uapi/linux/dtrace/dof.h with 90% similarity]
include/uapi/linux/dtrace/dof_defines.h [moved from dtrace/include/uapi/linux/dtrace/dof_defines.h with 88% similarity]
include/uapi/linux/dtrace/dtrace.h [new file with mode: 0644]
include/uapi/linux/dtrace/enabling.h [moved from dtrace/include/uapi/linux/dtrace/enabling.h with 73% similarity]
include/uapi/linux/dtrace/enabling_defines.h [new file with mode: 0644]
include/uapi/linux/dtrace/fasttrap.h [moved from dtrace/include/uapi/linux/dtrace/fasttrap.h with 55% similarity]
include/uapi/linux/dtrace/fasttrap_defines.h [new file with mode: 0644]
include/uapi/linux/dtrace/fasttrap_ioctl.h [new file with mode: 0644]
include/uapi/linux/dtrace/faults.h [new file with mode: 0644]
include/uapi/linux/dtrace/faults_defines.h [moved from dtrace/include/uapi/linux/dtrace/faults_defines.h with 56% similarity]
include/uapi/linux/dtrace/helpers.h [moved from dtrace/include/uapi/linux/dtrace/helpers.h with 83% similarity]
include/uapi/linux/dtrace/helpers_defines.h [new file with mode: 0644]
include/uapi/linux/dtrace/ioctl.h [moved from dtrace/include/uapi/linux/dtrace/ioctl.h with 62% similarity]
include/uapi/linux/dtrace/metadesc.h [moved from dtrace/include/uapi/linux/dtrace/metadesc.h with 76% similarity]
include/uapi/linux/dtrace/metadesc_defines.h [new file with mode: 0644]
include/uapi/linux/dtrace/options.h [new file with mode: 0644]
include/uapi/linux/dtrace/options_defines.h [moved from dtrace/include/uapi/linux/dtrace/options_defines.h with 75% similarity]
include/uapi/linux/dtrace/stability.h [moved from dtrace/include/uapi/linux/dtrace/stability.h with 61% similarity]
include/uapi/linux/dtrace/stability_defines.h [moved from dtrace/include/uapi/linux/dtrace/stability_defines.h with 65% similarity]
include/uapi/linux/dtrace/status.h [moved from dtrace/include/uapi/linux/dtrace/status.h with 67% similarity]
include/uapi/linux/dtrace/universal.h [moved from dtrace/include/uapi/linux/dtrace/universal.h with 62% similarity]
kernel/ctf/Kconfig
kernel/dtrace/Kconfig
kernel/dtrace/Makefile
kernel/dtrace/cyclic.c
kernel/dtrace/dtrace_cpu.c
kernel/dtrace/dtrace_fbt_core.c
kernel/dtrace/dtrace_os.c
kernel/dtrace/dtrace_sdt_core.c
scripts/package/mkspec

index 3150e032c814dd1d1bb29d2457fee13d0930d7f9..ba6da1cd85c959096851e4dd8f55be2660a9209f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -560,6 +560,7 @@ drivers-y   := drivers/ sound/ firmware/
 net-y          := net/
 libs-y         := lib/
 core-y         := usr/
+dtrace-y       := dtrace/
 endif # KBUILD_EXTMOD
 
 ifeq ($(dot-config),1)
@@ -888,14 +889,17 @@ core-y            += kernel/ mm/ fs/ ipc/ security/ crypto/ block/
 
 vmlinux-dirs   := $(patsubst %/,%,$(filter %/, $(init-y) $(init-m) \
                     $(core-y) $(core-m) $(drivers-y) $(drivers-m) \
-                    $(net-y) $(net-m) $(libs-y) $(libs-m)))
+                    $(net-y) $(net-m) $(libs-y) $(libs-m) \
+                    $(dtrace-y) $(dtrace-m)))
 
 vmlinux-alldirs        := $(sort $(vmlinux-dirs) $(patsubst %/,%,$(filter %/, \
-                    $(init-) $(core-) $(drivers-) $(net-) $(libs-))))
+                    $(init-) $(core-) $(drivers-) $(net-) $(libs-) \
+                    $(dtrace-))))
 
 init-y         := $(patsubst %/, %/built-in.o, $(init-y))
 core-y         := $(patsubst %/, %/built-in.o, $(core-y))
 drivers-y      := $(patsubst %/, %/built-in.o, $(drivers-y))
+dtrace-y       := $(patsubst %/, %/built-in.o, $(dtrace-y))
 net-y          := $(patsubst %/, %/built-in.o, $(net-y))
 libs-y1                := $(patsubst %/, %/lib.a, $(libs-y))
 libs-y2                := $(patsubst %/, %/built-in.o, $(libs-y))
@@ -903,11 +907,11 @@ libs-y            := $(libs-y1) $(libs-y2)
 
 # Externally visible symbols (used by link-vmlinux.sh)
 export KBUILD_VMLINUX_INIT := $(head-y) $(init-y)
-export KBUILD_VMLINUX_MAIN := $(core-y) $(libs-y) $(drivers-y) $(net-y)
+export KBUILD_VMLINUX_MAIN := $(core-y) $(libs-y) $(drivers-y) $(net-y) $(dtrace-y)
 export KBUILD_LDS          := arch/$(SRCARCH)/kernel/vmlinux.lds
 export LDFLAGS_vmlinux
 # used by scripts/pacmage/Makefile
-export KBUILD_ALLDIRS := $(sort $(filter-out arch/%,$(vmlinux-alldirs)) arch Documentation include samples scripts tools virt)
+export KBUILD_ALLDIRS := $(sort $(filter-out arch/%,$(vmlinux-alldirs)) arch Documentation include samples scripts tools virt dtrace)
 
 vmlinux-deps := $(KBUILD_LDS) $(KBUILD_VMLINUX_INIT) $(KBUILD_VMLINUX_MAIN)
 
diff --git a/arch/sparc/dtrace/Makefile.arch b/arch/sparc/dtrace/Makefile.arch
new file mode 100644 (file)
index 0000000..7f9e969
--- /dev/null
@@ -0,0 +1,17 @@
+#
+# Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
+#
+
+DTARCHDIR = ../arch/sparc/dtrace
+
+ccflags-y      += -Iarch/sparc/dtrace/include -Idtrace
+
+dtrace-obj     += dtrace_asm_sparc64.o dtrace_isa_sparc64.o
+fasttrap-obj   += fasttrap_sparc64.o
+fbt-obj                += fbt_sparc64.o
+sdt-obj                += sdt_sparc64.o
+
+dtrace-y       += $(addprefix $(DTARCHDIR)/, $(dtrace-obj))
+fasttrap-y     += $(addprefix $(DTARCHDIR)/, $(fasttrap-obj))
+fbt-y          += $(addprefix $(DTARCHDIR)/, $(fbt-obj))
+sdt-y          += $(addprefix $(DTARCHDIR)/, $(sdt-obj))
similarity index 84%
rename from dtrace/dtrace_asm_sparc64.S
rename to arch/sparc/dtrace/dtrace_asm_sparc64.S
index c0522e15b8a77315d0681a51fffb9dd3b5c4b43a..393078942c9d57b7acdf351198830c7ca11b296b 100644 (file)
@@ -1,26 +1,17 @@
 /*
- * CDDL HEADER START
+ * Dynamic Tracing for Linux - sparc64 specific assembly
  *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
+ * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
  *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*
- * Copyright 2010-2017 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/linkage.h>
similarity index 79%
rename from dtrace/dtrace_isa_sparc64.c
rename to arch/sparc/dtrace/dtrace_isa_sparc64.c
index 66f0a9f9fcea5d5a6dd06f68ba3bac57e52109bc..f191741a8d41863272b238821d397b1c53c1a2b0 100644 (file)
@@ -1,27 +1,18 @@
 /*
  * FILE:       dtrace_isa_sparc64.c
- * DESCRIPTION:        Dynamic Tracing: sparc64 arch-specific support functions
+ * DESCRIPTION:        DTrace - sparc64 architecture specific support functions
  *
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
+ * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
  *
- * CDDL HEADER END
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/dtrace_cpu.h>
similarity index 70%
rename from dtrace/fasttrap_sparc64.c
rename to arch/sparc/dtrace/fasttrap_sparc64.c
index 732e7a2c42b55170cd1ecaae06a02c7b1d194ef0..a8e79cb3f9975283b61c4425e8860e21f0a0339b 100644 (file)
@@ -1,28 +1,18 @@
 /*
  * FILE:       fasttrap_sparc64.c
- * DESCRIPTION:        Fasttrap Tracing: arch support (sparc64)
+ * DESCRIPTION:        DTrace - fasttrap provider implementation for sparc64
  *
- * CDDL HEADER START
+ * Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
  *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2010, 2011, 2012, 2013, 2016 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/uaccess.h>
similarity index 92%
rename from dtrace/fbt_sparc64.c
rename to arch/sparc/dtrace/fbt_sparc64.c
index 3a6367cd4debefc35bda1de8753d6a30cc7bb8ab..1bc522138c4db5ac8b3720ec7b2468a8a94cbf77 100644 (file)
@@ -1,27 +1,18 @@
 /*
  * FILE:       fbt_sparc64.c
- * DESCRIPTION:        Function Boundary Tracing: architecture-specific implementation
+ * DESCRIPTION:        DTrace - FBT provider implementation for sparc64
  *
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
+ * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
  *
- * CDDL HEADER END
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/vmalloc.h>
diff --git a/arch/sparc/dtrace/include/dtrace/fasttrap_arch.h b/arch/sparc/dtrace/include/dtrace/fasttrap_arch.h
new file mode 100644 (file)
index 0000000..eff3607
--- /dev/null
@@ -0,0 +1,27 @@
+/*
+ * Dynamic Tracing for Linux - Fasttrap Implementation defines
+ *
+ * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+/*
+ * Note: The contents of this file are private to the implementation of the
+ * DTrace subsystem and are subject to change at any time without notice.
+ */
+
+#ifndef _SPARC64_FASTTRAP_ARCH_H
+#define _SPARC64_FASTTRAP_ARCH_H
+
+#define FASTTRAP_OFFSET_AFRAMES        0
+
+#endif /* _SPARC64_FASTTRAP_ARCH_H */
similarity index 55%
rename from dtrace/include/sparc64/dtrace/fbt_arch.h
rename to arch/sparc/dtrace/include/dtrace/fbt_arch.h
index 173a10734958317306be9cfe740ac4b2a86287f6..6cf668879f867475bf7a5965151574957b82e71d 100644 (file)
@@ -1,36 +1,27 @@
-#ifndef _SPARC64_FBT_ARCH_H
-#define _SPARC64_FBT_ARCH_H
-
 /*
- * Function Boundary Tracing Implementation defines
+ * Dynamic Tracing for Linux - FBT Implementation defines
  *
- * Note: The contents of this file are private to the implementation of the
- * DTrace subsystem and are subject to change at any time without notice.
+ * Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 /*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Note: The contents of this file are private to the implementation of the
+ * DTrace subsystem and are subject to change at any time without notice.
  */
 
+#ifndef _SPARC64_FBT_ARCH_H
+#define _SPARC64_FBT_ARCH_H
+
 #define FBT_AFRAMES    1
 
 typedef struct fbt_probe {
similarity index 92%
rename from dtrace/include/sparc64/dtrace/isa_arch.h
rename to arch/sparc/dtrace/include/dtrace/isa_arch.h
index 3a762769be3bb99e2ea13dd8d3a09c78cf677265..fc411373febce44890031d160741c1a399ee138f 100644 (file)
@@ -1,32 +1,23 @@
-#ifndef _SPARC64_ISA_ARCH_H
-#define _SPARC64_ISA_ARCH_H
-
 /*
  * FILE:        isa_arch.c
- * DESCRIPTION: Dynamic Tracing: sparc64 ISA-specific definitions
- *
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
+ * DESCRIPTION: DTrace - sparc64 ISA-specific definitions
  *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
+ * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
  *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * CDDL HEADER END
- *
- * Copyrigt (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
+#ifndef _SPARC64_ISA_ARCH_H
+#define _SPARC64_ISA_ARCH_H
+
 
 /* Register indices */
 #define ASM_REG_G0             0
diff --git a/arch/sparc/dtrace/include/dtrace/mod_arch.h b/arch/sparc/dtrace/include/dtrace/mod_arch.h
new file mode 100644 (file)
index 0000000..d461096
--- /dev/null
@@ -0,0 +1,38 @@
+/*
+ * Dynamic Tracing for Linux - Framework per-module data
+ *
+ * Copyright (c) 2009, 2016, Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef _SPARC64_MOD_ARCH_H
+#define _SPARC64_MOD_ARCH_H
+
+#include <asm/dtrace_arch.h>
+
+/*
+ * Structure to hold DTrace specific information about modules (including the
+ * core kernel module).  Note that each module (and the main kernel) already
+ * has three fields that relate to probing:
+ *     - sdt_probes: description of SDT probes in the module
+ *     - sdt_probec: number of SDT probes in the module
+ *     - pdata: pointer to a dtrace_module struct (for DTrace)
+ */
+typedef struct dtrace_module {
+       int             enabled_cnt;
+       size_t          sdt_probe_cnt;
+       asm_instr_t     *sdt_tab;
+       size_t          fbt_probe_cnt;
+       asm_instr_t     *fbt_tab;
+} dtrace_module_t;
+
+#endif /* _SPARC64_MOD_ARCH_H */
diff --git a/arch/sparc/dtrace/include/dtrace/sdt_arch.h b/arch/sparc/dtrace/include/dtrace/sdt_arch.h
new file mode 100644 (file)
index 0000000..da95715
--- /dev/null
@@ -0,0 +1,27 @@
+/*
+ * Dynamic Tracing for Linux - SDT Implementation defines
+ *
+ * Copyright (c) 2009, 2015, Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+/*
+ * Note: The contents of this file are private to the implementation of the
+ * DTrace subsystem and are subject to change at any time without notice.
+ */
+
+#ifndef _SPARC64_SDT_ARCH_H
+#define _SPARC64_SDT_ARCH_H
+
+#define SDT_AFRAMES    1
+
+#endif /* _SPARC64_SDT_ARCH_H */
similarity index 84%
rename from dtrace/sdt_sparc64.c
rename to arch/sparc/dtrace/sdt_sparc64.c
index 3a40518bbee0ef11e780a4a7e4de58bafb0a6d1c..5578965c5fa18689012a68e825fa8c84958cd66f 100644 (file)
@@ -1,27 +1,18 @@
 /*
  * FILE:       sdt_sparc64.c
- * DESCRIPTION:        Statically Defined Tracing: arch support (sparc64)
+ * DESCRIPTION:        DTrace - SDT provider implementation for sparc64
  *
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
+ * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
  *
- * CDDL HEADER END
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/sdt.h>
diff --git a/arch/x86/dtrace/Makefile.arch b/arch/x86/dtrace/Makefile.arch
new file mode 100644 (file)
index 0000000..0ff2b1e
--- /dev/null
@@ -0,0 +1,17 @@
+#
+# Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
+#
+
+DTARCHDIR = ../arch/x86/dtrace
+
+ccflags-y      += -Iarch/x86/dtrace/include -Idtrace
+
+dtrace-obj     += dtrace_asm_x86_64.o dtrace_isa_x86_64.o
+fasttrap-obj   += fasttrap_x86_64.o
+fbt-obj                += fbt_x86_64.o
+sdt-obj                += sdt_x86_64.o
+
+dtrace-y       += $(addprefix $(DTARCHDIR)/, $(dtrace-obj))
+fasttrap-y     += $(addprefix $(DTARCHDIR)/, $(fasttrap-obj))
+fbt-y          += $(addprefix $(DTARCHDIR)/, $(fbt-obj))
+sdt-y          += $(addprefix $(DTARCHDIR)/, $(sdt-obj))
similarity index 85%
rename from dtrace/dtrace_asm_x86_64.S
rename to arch/x86/dtrace/dtrace_asm_x86_64.S
index c8b6977d8ea1609d37e42a5ff004c85dd20a87f7..69f0cc52bc0cbe249b709f15935f8418b59a04d9 100644 (file)
@@ -1,26 +1,17 @@
 /*
- * CDDL HEADER START
+ * Dynamic Tracing for Linux - x86 specific assembly
  *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
+ * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
  *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*
- * Copyright 2010-2017 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/linkage.h>
similarity index 83%
rename from dtrace/dtrace_isa_x86_64.c
rename to arch/x86/dtrace/dtrace_isa_x86_64.c
index 1e99b0653759029d66f338db66348f8add1bf228..6b7b34cecce8c5413c63c7825ef93276fa862470 100644 (file)
@@ -1,28 +1,18 @@
 /*
  * FILE:       dtrace_isa_x86_64.c
- * DESCRIPTION:        Dynamic Tracing: x86_64 architecture specific support functions
+ * DESCRIPTION:        DTrace - x86_64 architecture specific support functions
  *
- * CDDL HEADER START
+ * Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
  *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2010-2014 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/dtrace_cpu.h>
similarity index 66%
rename from dtrace/fasttrap_x86_64.c
rename to arch/x86/dtrace/fasttrap_x86_64.c
index d48cf42a11728e95ec67ad64a180b1f36bf28094..054412b1a62492db21dd089492be9d69e70c90cb 100644 (file)
@@ -1,28 +1,18 @@
 /*
  * FILE:       fasttrap_x86_64.c
- * DESCRIPTION:        Fasttrap Tracing: arch support (x86_64)
+ * DESCRIPTION:        DTrace - fasttrap provider implementation for x86
  *
- * CDDL HEADER START
+ * Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
  *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2010, 2011, 2012, 2013, 2016 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/uaccess.h>
similarity index 75%
rename from dtrace/fbt_x86_64.c
rename to arch/x86/dtrace/fbt_x86_64.c
index 378ff133df4572b73b9b1b3dd79e11f288072b1b..04b4e72d2745ff952929d471b44c2c7f8415b95b 100644 (file)
@@ -1,27 +1,18 @@
 /*
  * FILE:       fbt_x86_64.c
- * DESCRIPTION:        Function Boundary Tracing: architecture-specific implementation
+ * DESCRIPTION:        DTrace - FBT provider implementation for x86
  *
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
+ * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
  *
- * CDDL HEADER END
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/dtrace_fbt.h>
diff --git a/arch/x86/dtrace/include/dtrace/fasttrap_arch.h b/arch/x86/dtrace/include/dtrace/fasttrap_arch.h
new file mode 100644 (file)
index 0000000..8a00fbd
--- /dev/null
@@ -0,0 +1,27 @@
+/*
+ * Dynamic Tracing for Linux - Fasttrap provider implementation defines
+ *
+ * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+/*
+ * Note: The contents of this file are private to the implementation of the
+ * DTrace subsystem and are subject to change at any time without notice.
+ */
+
+#ifndef _X86_64_FASTTRAP_ARCH_H
+#define _X86_64_FASTTRAP_ARCH_H
+
+#define FASTTRAP_OFFSET_AFRAMES        3
+
+#endif /* _X86_64_FASTTRAP_ARCH_H */
similarity index 54%
rename from dtrace/include/x86_64/dtrace/fbt_arch.h
rename to arch/x86/dtrace/include/dtrace/fbt_arch.h
index afda80b523894eb644536923fdf8687961f1f466..c81ba389e89cced02754343222d54a664772fe0b 100644 (file)
@@ -1,36 +1,27 @@
-#ifndef _X86_64_FBT_ARCH_H
-#define _X86_64_FBT_ARCH_H
-
 /*
- * Function Boundary Tracing Implementation defines
+ * Dynamic Tracing for Linux - FBT Implementation defines
  *
- * Note: The contents of this file are private to the implementation of the
- * DTrace subsystem and are subject to change at any time without notice.
+ * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 /*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
+ * Note: The contents of this file are private to the implementation of the
+ * DTrace subsystem and are subject to change at any time without notice.
  */
 
+#ifndef _X86_64_FBT_ARCH_H
+#define _X86_64_FBT_ARCH_H
+
 #define FBT_AFRAMES    9
 
 typedef struct fbt_probe {
diff --git a/arch/x86/dtrace/include/dtrace/mod_arch.h b/arch/x86/dtrace/include/dtrace/mod_arch.h
new file mode 100644 (file)
index 0000000..2ec86c4
--- /dev/null
@@ -0,0 +1,36 @@
+/*
+ * Dynamic Tracing for Linux - Framework per-module data
+ *
+ * Copyright (c) 2009, 2016, Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef _X86_64_MOD_ARCH_H
+#define _X86_64_MOD_ARCH_H
+
+#include <asm/dtrace_arch.h>
+
+/*
+ * Structure to hold DTrace specific information about modules (including the
+ * core kernel module).  Note that each module (and the main kernel) already
+ * has three fields that relate to probing:
+ *     - sdt_probes: description of SDT probes in the module
+ *     - sdt_probec: number of SDT probes in the module
+ *     - pdata: pointer to a dtrace_module struct (for DTrace)
+ */
+typedef struct dtrace_module {
+       int             enabled_cnt;
+       size_t          sdt_probe_cnt;
+       size_t          fbt_probe_cnt;
+} dtrace_module_t;
+
+#endif /* _X86_64_MOD_ARCH_H */
diff --git a/arch/x86/dtrace/include/dtrace/sdt_arch.h b/arch/x86/dtrace/include/dtrace/sdt_arch.h
new file mode 100644 (file)
index 0000000..da9cc5c
--- /dev/null
@@ -0,0 +1,27 @@
+/*
+ * Dynamic Tracing for Linux - SDT Implementation defines
+ *
+ * Copyright (c) 2009, 2015, Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+/*
+ * Note: The contents of this file are private to the implementation of the
+ * DTrace subsystem and are subject to change at any time without notice.
+ */
+
+#ifndef _X86_64_SDT_ARCH_H
+#define _X86_64_SDT_ARCH_H
+
+#define SDT_AFRAMES    4
+
+#endif /* _X86_64_SDT_ARCH_H */
similarity index 68%
rename from dtrace/sdt_x86_64.c
rename to arch/x86/dtrace/sdt_x86_64.c
index c91019eba522fffce2cedfd077b2a28c68821bc1..edfc30f29574f9205fd7038cac3520af24ddc8eb 100644 (file)
@@ -1,28 +1,18 @@
 /*
  * FILE:       sdt_dev.c
- * DESCRIPTION:        Statically Defined Tracing: device file handling
+ * DESCRIPTION:        DTrace - SDT provider implementation for x86
  *
- * CDDL HEADER START
+ * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
  *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2010-2016 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/sdt.h>
diff --git a/dtrace/Kbuild b/dtrace/Kbuild
deleted file mode 100644 (file)
index 6389205..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-#
-# Makefile for DTrace
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License, Version 1.0 only
-# (the "License").  You may not use this file except in compliance
-# with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-# Copyright 2011 -- 2013 Oracle, Inc.  All rights reserved.
-# Use is subject to license terms.
-
-EXTRA_CFLAGS                   := -I$(src)/include -I$(src)/include/uapi \
-                                  -I$(src)/include/$(UTS_MACHINE)
-
-obj-$(CONFIG_DT_CORE)          += dtrace.o
-obj-$(CONFIG_DT_FASTTRAP)      += fasttrap.o
-obj-$(CONFIG_DT_FBT)           += fbt.o
-obj-$(CONFIG_DT_PROFILE)       += profile.o
-obj-$(CONFIG_DT_SDT)           += sdt.o
-obj-$(CONFIG_DT_SYSTRACE)      += systrace.o
-obj-$(CONFIG_DT_DT_TEST)       += dt_test.o
-
-dtrace-y                       := dtrace_mod.o dtrace_dev.o \
-                                  dtrace_asm_$(UTS_MACHINE).o \
-                                  dtrace_isa_$(UTS_MACHINE).o \
-                                  dtrace_actdesc.o dtrace_anon.o \
-                                  dtrace_buffer.o dtrace_dif.o dtrace_dof.o \
-                                  dtrace_ecb.o dtrace_enable.o \
-                                  dtrace_fmt.o dtrace_hash.o dtrace_isa.o \
-                                  dtrace_match.o dtrace_priv.o \
-                                  dtrace_probe.o dtrace_probe_ctx.o \
-                                  dtrace_ptofapi.o dtrace_predicate.o \
-                                  dtrace_spec.o dtrace_state.o dtrace_util.o
-fasttrap-y                     := fasttrap_mod.o fasttrap_dev.o fasttrap_$(UTS_MACHINE).o
-fbt-y                          := fbt_mod.o fbt_dev.o fbt_$(UTS_MACHINE).o
-profile-y                      := profile_mod.o profile_dev.o
-sdt-y                          := sdt_mod.o sdt_dev.o sdt_$(UTS_MACHINE).o
-systrace-y                     := systrace_mod.o systrace_dev.o
-dt_test-y                      := dt_test_mod.o dt_test_dev.o
index d31fdcfd77c1aace2bf8659ede7a800c6f84a2d0..e7aafa74f2ca1b5db98bb9e5955ab4e49bf9e026 100644 (file)
@@ -1,36 +1,29 @@
 #
-# Makefile for DTrace
+# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
 #
 
-KERNELDIR := /lib/modules/`uname -r`/build
+obj-$(CONFIG_DT_CORE)          += dtrace.o
+obj-$(CONFIG_DT_FASTTRAP)      += fasttrap.o
+obj-$(CONFIG_DT_FBT)           += fbt.o
+obj-$(CONFIG_DT_PROFILE)       += profile.o
+obj-$(CONFIG_DT_SDT)           += sdt.o
+obj-$(CONFIG_DT_SYSTRACE)      += systrace.o
+obj-$(CONFIG_DT_DT_TEST)       += dt_test.o
 
-modules::
+dtrace-y                       := dtrace_mod.o dtrace_dev.o \
+                                  dtrace_actdesc.o dtrace_anon.o \
+                                  dtrace_buffer.o dtrace_dif.o dtrace_dof.o \
+                                  dtrace_ecb.o dtrace_enable.o \
+                                  dtrace_fmt.o dtrace_hash.o dtrace_isa.o \
+                                  dtrace_match.o dtrace_priv.o \
+                                  dtrace_probe.o dtrace_probe_ctx.o \
+                                  dtrace_ptofapi.o dtrace_predicate.o \
+                                  dtrace_spec.o dtrace_state.o dtrace_util.o
+fasttrap-y                     := fasttrap_mod.o fasttrap_dev.o
+fbt-y                          := fbt_mod.o fbt_dev.o
+profile-y                      := profile_mod.o profile_dev.o
+sdt-y                          := sdt_mod.o sdt_dev.o
+systrace-y                     := systrace_mod.o systrace_dev.o
+dt_test-y                      := dt_test_mod.o dt_test_dev.o
 
-install:: modules_install
-
-%::
-       $(MAKE) -C $(KERNELDIR) M=`pwd` $@
-
-# Headers named *_ioctl.h have to be compiled in kernel mode so that
-# typechecking is enabled. The rest get compiled in user mode. We go to some
-# lengths to use any ioctl() identifiers, since typechecking only kicks in at
-# time of use.
-
-headers_check:
-       @for name in $(notdir $(wildcard include/uapi/linux/dtrace/*.h)); do \
-               if [[ $$name =~ .*ioctl\.h$$ ]]; then \
-                       INC="-I../arch/x86/include -I../include -I../include/asm-generic -Iinclude -D__KERNEL__ -include linux/types.h -include dtrace/types.h"; \
-               else \
-                       INC="-include sys/types.h -include sys/ctf_types.h -include unistd.h -I../include"; \
-               fi; \
-               echo -e "#include <linux/dtrace/$$name>\nint main (void) { long junk[] = { $$(grep '#define ' include/uapi/linux/dtrace/$$name | grep -E 'IO[RW]' | sed 's@.*#define \([^ \t]*\).*$$@\1,@')};}" | \
-                   $(CC) -c -x c - -o /dev/null -D_GNU_SOURCE -DHEADERS_CHECK \
-                   $$INC -Iinclude/uapi $$INC -include linux/dtrace_os.h || \
-                   { echo "$$name is not standalone." >&2; exit 1; } \
-       done
-
-headers_install:
-       mkdir -p $(INSTALL_HDR_PATH)/usr/include/linux/dtrace
-       for name in include/dtrace/provider*.h include/dtrace/types*.h include/uapi/linux/dtrace/*.h; do \
-               install -m 0644 $$name $(INSTALL_HDR_PATH)/usr/include/linux/dtrace; \
-       done
+include arch/$(SRCARCH)/dtrace/Makefile.arch
index 2916d0e921044bc64682402e373b40fcb5ab9d70..75c6a5d6ad7e1a8c57f87e53e11990b6f9586cca 100644 (file)
@@ -1,3 +1,19 @@
+/*
+ * Compact C Type format
+ *
+ * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
 #ifndef __CTF_API_H_
 #define __CTF_API_H_
 
index b708d3357db303201b435e0c756d54b6aea89ea4..581c4ce3ca495d58b24bcc37c86849e8b54b29d8 100644 (file)
@@ -1,27 +1,18 @@
 /*
- * CDDL HEADER START
+ * Dynamic Tracing for Linux - Perf provider
  *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
+ * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
  *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  *
- * CDDL HEADER END
- */
-
-/*
- * Copyright 2011, 2012, 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
  */
 
 #ifndef _DT_PERF_H_
index 9abd15625847bc0653c30ed91e7ee984bc4717e8..109dc07b689e696016e3c3501f34e8246db6e3d4 100644 (file)
@@ -1,28 +1,18 @@
 /*
  * FILE:       dt_pref_dev.c
- * DESCRIPTION:        DTrace Performance Test Probe: device file handling
+ * DESCRIPTION:        DTrace - perf provider device driver
  *
- * CDDL HEADER START
+ * Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
  *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2011, 2012, 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/fs.h>
index 1365cb4875fe91651601379d3fb6b505dfbf2f0e..9feb77e39fa6f5431c9ae2cacd25451bc1440ef5 100644 (file)
@@ -1,28 +1,18 @@
 /*
  * FILE:       dt_perf_mod.c
- * DESCRIPTION:        DTrace Performance Test Probe: module handling
+ * DESCRIPTION:        DTrace - perf provider kernel module
  *
- * CDDL HEADER START
+ * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
  *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2011, 2012 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/module.h>
@@ -34,7 +24,7 @@
 MODULE_AUTHOR("Kris Van Hees (kris.van.hees@oracle.com)");
 MODULE_DESCRIPTION("DTrace Performance Test Probe");
 MODULE_VERSION("v0.1");
-MODULE_LICENSE("CDDL");
+MODULE_LICENSE("GPL");
 
 static const dtrace_pattr_t dt_perf_attr = {
 { DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_COMMON },
index 4b352891c8b4b4bf5612b47426959b634039e21f..fb164c1d7edbded73e3f706c1fbb503729aca80b 100644 (file)
@@ -1,27 +1,17 @@
 /*
- * CDDL HEADER START
+ * Dynamic Tracing for Linux - test provider
  *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
+ * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
  *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-
-/*
- * Copyright 2011, 2012 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #ifndef _DT_TEST_H_
index 1a6405c892a20ef4e4ca6fbb4f5555209ab17850..756738eb2b7784ab9b627ab4a1b6d9197d0c257b 100644 (file)
@@ -1,28 +1,18 @@
 /*
  * FILE:       dt_test_dev.c
- * DESCRIPTION:        DTrace Test Probe: device file handling
+ * DESCRIPTION:        DTrace - test provider device driver
  *
- * CDDL HEADER START
+ * Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
  *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2011-2016 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/fs.h>
index 57ea5fe9e542d186c6e51b83db1f7b1175a7e0e7..8704a24bf32540365faccb9c74d5886d30b336ee 100644 (file)
@@ -1,27 +1,18 @@
 /*
  * FILE:       dt_test_mod.c
- * DESCRIPTION:        DTrace Test Probe: module handling
+ * DESCRIPTION:        DTrace - test provider kernel module
  *
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
+ * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
  *
- * CDDL HEADER END
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/module.h>
@@ -33,7 +24,7 @@
 MODULE_AUTHOR("Kris Van Hees (kris.van.hees@oracle.com)");
 MODULE_DESCRIPTION("DTrace Test Probe");
 MODULE_VERSION("v0.1");
-MODULE_LICENSE("CDDL");
+MODULE_LICENSE("GPL");
 
 static const dtrace_pattr_t dt_test_attr = {
 { DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_COMMON },
diff --git a/dtrace/dtrace-module.spec b/dtrace/dtrace-module.spec
deleted file mode 100644 (file)
index a9a2dc0..0000000
+++ /dev/null
@@ -1,300 +0,0 @@
-%ifarch i686
-%define karch i686
-%endif
-%ifarch x86_64
-%define karch x86_64
-%endif
-%ifarch sparc64
-%define karch sparc64
-%endif
-
-# Redefine 'build_variant' at build time to create a kernel package named
-# something like 'kernel-uek-dtrace'.
-%define variant %{?build_variant:%{build_variant}}%{!?build_variant:-uek}
-
-# Set this to the version of the kernel this module is compiled against.
-%define kver %{?build_kver:%{build_kver}}%{!?build_kver:4.1.12-43%{dist}uek}
-
-%define _signmodules %{?signmodules: %{signmodules}} %{?!signmodules: 1}
-
-Name: dtrace-modules-%{kver}
-Summary: dtrace module
-Version: 0.6.1
-Release: 3%{dist}
-Provides: dtrace-modules
-Requires: at
-License: CDDL
-Group: System Environment/Kernel
-Source0: @SOURCE_TARBALL@
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires: kernel%{variant}-devel = %{kver}
-BuildRequires: libdtrace-ctf
-ExclusiveArch: x86_64 sparc64
-
-%if %{_signmodules}
-Source1: mod-sign.sh
-%define modsign_cmd %{SOURCE1}
-%endif
-
-%description
-DTrace kernel modules.
-
-This package contains the DTrace core module, and standard provider modules:
-dtrace, profile, syscall, sdt (io, proc,sched), and fasttrap (USDT).
-
-Maintainers:
-------------
-Nick Alcock <nick.alcock@oracle.com>
-Kris Van Hees <kris.van.hees@oracle.com>
-
-# If this package is not removed, but its dependent kernel is, schedule
-# a later removal via at, late enough that this yum job is probably over.
-%triggerun -- kernel%{variant} = %{kver}
-
-at now + 4 hours >/dev/null 2>&1 <<'EOF'
-rpm --quiet -e dtrace-modules-%{kver}
-EOF
-
-%package -n dtrace-modules-shared-headers
-Summary:       Header files for communication with the DTrace kernel module.
-Obsoletes:      dtrace-modules-headers
-Provides:       dtrace-modules-headers 1:1
-
-%description -n dtrace-modules-shared-headers
-This package contains header files describing the protocol used by userspace to
-communicate with the DTrace kernel module.
-
-%package -n dtrace-modules-provider-headers
-Summary:       Header files for implementation of DTrace providers.
-Requires:      dtrace-modules-shared-headers
-%{lua:
-       local obsoleted = {"16.1.1", "16.2.1", "16.2.2", "16.2.3", "16.3.1",
-                           "16.3.2", "16.3.3", "16"}
-
-        for ignore, vers in ipairs(obsoleted) do
-                print("Obsoletes: dtrace-modules-3.8.13-" .. vers ..
-                      "%{dist}uek-provider-headers\n")
-        end
-}
-%description -n dtrace-modules-provider-headers
-This package contains header files defining the API used to implement DTrace
-providers.
-
-%prep
-rm -rf %{BuildRoot}
-
-%setup -c -n %{name}
-
-%build
-cd dtrace
-KSRC=/usr/src/kernels/%{kver}.%{karch}
-make KERNELDIR=$KSRC karch=%{karch} modules
-
-%if %{_signmodules}
-%{modsign_cmd} ${RPM_BUILD_DIR}/%{name}/dtrace
-%endif
-
-%install
-rm -rf %{buildroot}
-mkdir -p %{buildroot}/lib/modules/%{kver}.%{karch}/kernel/drivers/dtrace
-install -m0644 ${RPM_BUILD_DIR}/%{name}/dtrace/*.ko %{buildroot}/lib/modules/%{kver}.%{karch}/kernel/drivers/dtrace/
-mkdir -p %{buildroot}/usr/share/doc/dtrace-modules-%{kver}
-install -m0644 ${RPM_BUILD_DIR}/%{name}/dtrace/NEWS %{buildroot}/usr/share/doc/dtrace-modules-%{kver}
-cd dtrace
-KSRC=/usr/src/kernels/%{kver}.%{karch}
-make KERNELDIR=$KSRC karch=%{karch} headers_install INSTALL_HDR_PATH=%{buildroot}
-
-%post
-depmod -a %{kver}.%{karch} > /dev/null 2> /dev/null
-
-%clean
-rm -rf %{buildroot}
-
-%files
-%defattr(-,root,root,-)
-/lib/modules/%{kver}.%{karch}/kernel/drivers/dtrace*
-/usr/share/doc/dtrace-modules-%{kver}*
-
-%files -n dtrace-modules-shared-headers
-%defattr(-,root,root,-)
-/usr/include/linux/dtrace
-%exclude /usr/include/linux/dtrace/provider*.h
-%exclude /usr/include/linux/dtrace/types.h
-
-%files -n dtrace-modules-provider-headers
-%defattr(-,root,root,-)
-/usr/include/linux/dtrace/provider*.h
-/usr/include/linux/dtrace/types.h
-
-%changelog
-* Fri Jul 14 2017 - <tomas.jedlicka@oracle.com> - 0.6.1-3
-- FBT module support and SPARCs return probes [Orabug: 26384179, 26384765]
-- DTrace state cleanmust use dtrace_sync() [Orabug: 26385102]
-- Make dynamic variable cleanup self-throtling [Orabug: 26385177]
-- Restore deadman original timing values [Orabug: 26385159]
-* Wed Jun 28 2017 - <kris.van.hees@oracle.com> - 0.6.1-2
-- Change FBT entry probes on x86 to use int3 [Orabug: 26324039]
-- Support x86 CPUs with SMAP (Nick Alcock) [Orabug: 26166784]
-* Wed May 24 2017 - <kris.van.hees@oracle.com> - 0.6.1-1
-- Implement link_ntop() DTrace subroutine logic (Nick Alcock) [Orabug: 25931479]
-- Add canload() for input of *_ntop(), *_nto*() (Tomas Jedlicka)
-- Fix implementation of mutex_* subroutines [Orabug: 26044447]
-- Improve probe execution debugging
-- Support passing offset as arg0 to FBT return probes [Orabug: 25949086]
-- Use different probe trigger instruction for entry vs return [Orabug: 25949048]
-- Ensure FBT return probes only run with in_irq() true when in true IRQ context
-  [Orabug: 26089286]
-- Ensure ustackdepth returns correct value [Orabug: 25949692]
-* Wed Apr 12 2017 - <kris.van.hees@oracle.com> - 0.6.0-4
-- Always inline dtrace_dif_variable to ensure consistent aframes count
-  [Orabug: 25872472]
-* Sun Apr  2 2017 - <kris.van.hees@oracle.com> - 0.6.0-3
-- Lockfree walltimestamp implementation (Tomas Jedlicka) [Orabug: 25715256]
-- Corrected aframes values to skip DTrace frames [Orabug: 25727046]
-- Bug fix for stackdepth buffer overrun [Orabug: 25559321]
-* Fri Mar  3 2017 - <kris.van.hees@oracle.com> - 0.6.0-2
-- Further implementation of FBT with fixes to ustack
-  [Orabug: 21220305]
-- Handle modular IPv6 and introduce typedef in6_addr_t
-  (Nick Alcock) [Orabug: 25557554]
-* Mon Dec 19 2016 - <nick.alcock@oracle.com> - 0.6.0-1
-- USDT for SPARC. [Orabug: 24455245]
-- Is-enabled probes for SDT [Orabug: 25143173]
-- Function boundary tracing (FBT) [Orabug: 21220305]
-- Add improved multi-argument DTRACE_PROBE macro [Orabug: 24678897]
-- Detemine SDT (including perf-event) argument types dynamically
-  [Orabug: 24661801]
-* Wed Jul 20 2016 Nick Alcock <nick.alcock@oracle.com> - 0.5.3-2
-- Re-enable 0.5.3 release after bugfix [Orabug: 23344927]
-* Mon May 23 2016 Kris Van Hees <kris.van.hees@oracle.com> - 0.5.3-1
-- Provider 'perf' added to SDT for perf events.
-  (Nick Alcock) [Orabug: 23004534]
-- Fix to ensure that pdata and sdt_tab handling works across module reloads.
-  [Orabug: 23331667]
-- Moving pdata size assertion checking to arch-specific code.
-  (Nick Alcock) [Orabug: 23331667]
-* Thu Feb  4 2016 Kris Van Hees <kris.van.hees@oracle.com> - 0.5.2-1
-- Correct probe disable/enable mechanism for syscalls.
-  [Orabug: 22352636]
-- Fix access to uregs[I_R7] for sparc64.
-  (Nick Alcock) [Orabug: 22602870]
-- Use a more efficient, consistent, and reliable mechanism to read user
-  stack locations.
-  (Nick Alcock) [Orabug: 22629102]
-* Tue Nov 17 2015 Kris Van Hees <kris.van.hees@oracle.com> - 0.5.1-1
-- Remove explicit dependency on kernel RPM.
-  [Orabug: 21669543]
-- Ensure safety checks are enforced on copyout() and copyoutstr().
-  [Orabug: 21930954]
-- Fix device file minor number for dt_perf.
-  [Orabug: 21814949]
-* Fri Sep 18 2015 Kris Van Hees <kris.van.hees@oracle.com> - 0.5.0-3
-- Enable building DTrace modules for SPARC64.
-* Mon Aug 10 2015 Natalya Naumova <natalya.naumova@oracle.com> - 0.5.0-2
-- modules signing support [OL6]
-* Mon Aug 10 2015 Kris Van Hees <kris.van.hees@oracle.com> - 0.5.0-1
-- Use kernel-provided SDT trampoline memory area for SPARC64.
-  [Orabug: 21220344]
-- Add support for sparc64.
-  [Orabug: 19005048]
-- Update uid / gid handling in view of namespaces in UEK4 kernels.
-  [Orabug: 20456825]
-* Mon Jul 6 2015 Natalya Naumova <natalya.naumova@oracle.com> - 0.4.5-3
-- modules signing support [OL7]
-* Tue Jun 23 2015 Kris Van Hees <kris.van.hees@oracle.com> - 0.4.5-2
-- Validate d_path() argument pointer to avoid crash.
-  [Orabug: 21304207]
-* Wed Jun 17 2015 Kris Van Hees <kris.van.hees@oracle.com> - 0.4.5-1
-- Support USDT for 32-bit applications on 64-bit hosts.
-  [Orabug: 21219315]
-- Convert from sdt_instr_t to asm_instr_t.
-  [Orabug: 21219374]
-- Restructuring to support DTrace on multiple architectures.
-  [Orabug: 21273259]
-- Fix dtrace_helptrace_buffer memory leak.
-  [Orabug: 20514336]
-- Add .gitignore file.
-  [Orabug: 20266608]
-* Thu Mar  9 2015 Nick Alcock <nick.alcock@oracle.com> - 0.4.4-1
-- Rename dtrace-modules-headers to dtrace-modules-shared-headers.
-  [Orabug: 20508087]
-* Fri Apr 24 2014 Kris Van Hees <kris.van.hees@oracle.com> - 0.4.3-4
-- Updated NEWS file: test stress/buffering/tst.resize1.d is XFAIL for now.
-- Align with kernel header file change: FOLL_NOFAULT -> FOLL_IMMED.
-  [Orabug: 18653713]
-* Fri Apr 24 2014 Kris Van Hees <kris.van.hees@oracle.com> - 0.4.3-3
-- Rebuild with cleaned up source tree.
-* Thu Apr 24 2014 Nick Alcock <nick.alcock@oracle.com> - 0.4.3-2
-- Various fixes to handle multi-threaded processes.
-  [Orabug: 18412802]
-* Tue Apr 15 2014 Kris Van Hees <kris.van.hees@oracle.com> - 0.4.3-1
-- Implmentation of profile-* probes in the profile provider.
-  [Orabug: 18323513]
-* Wed Jan 29 2014 Nick Alcock <nick.alcock@oracle.com> - 0.4.2-3
-- Obsolete the old provider headers package.
-  [Orabug: 18061595]
-* Mon Jan 27 2014 Nick Alcock <nick.alcock@oracle.com> - 0.4.2-2
-- Change name of provider headers package, to avoid conflicts on yum update.
-  [Orabug: 18061595]
-* Fri Dec 20 2013 Kris Van Hees <kris.van.hees@oracle.com> - 0.4.2-1
-- Fix 'vtimestamp' implementation.
-  [Orabug: 17741477]
-- Support SDT probes points in kernel modules.
-  [Orabug: 17851716]
-* Wed Nov  6 2013 Kris Van Hees <kris.van.hees@oracle.com> - 0.4.1-3
-- Fix 'errno' implementation.
-  [Orabug: 17704568]
-* Wed Oct 26 2013 Kris Van Hees <kris.van.hees@oracle.com> - 0.4.1-2
-- Fix lock ordering issues.
-  [Orabug: 17624236]
-* Thu Oct 17 2013 Nick Alcock <nick.alcock@oracle.com> - 0.4.0-3
-- fix changelog, no code changes
-* Wed Oct 16 2013 Kris Van Hees <kris.van.hees@oracle.com> - 0.4.1-1
-- Align with new cyclic implementation in UEK3 kernel.
-  [Orabug: 17553446]
-- Bugfix for module reference counting.
-- Fix memory leak.
-- Fix race condition in speculative tracing buffer cleaning.
-  [Orabug: 17591351]
-- Ensure safe access to userspace stack memory location.
-  [Orabug: 17591351]
-* Thu Oct 10 2013 Kris Van Hees <kris.van.hees@oracle.com> - 0.4.0-2
-- Bugfix for ustack() to avoid using vma data.
-* Wed Aug  7 2013 Kris Van Hees <kris.van.hees@oracle.com> - 0.4.0-1
-- Bugfix for module unloading.
-- Support meta-providers, USDT, and fasttrap (for USDT only).
-- Export DTrace kernel headers to userspace.
-- Improved ustack() robustness.
-  [Orabug: 17591351]
-- Reimplemented ustack().
-  (Nick Alcock) [Orabug: 17591351]
-- Bugfixes.
-* Fri Nov  2 2012 Nick Alcock <nick.alcock@oracle.com> - 0.3.2
-- Release for new kernel and CTF section layout
-* Mon Oct  1 2012 Kris Van Hees <kris.van.hees@oracle.com> - 0.3.1
-- Skipped version number
-* Mon Sep 17 2012 Kris Van Hees <kris.van.hees@oracle.com> - 0.3.0-2
-- Remove development-only providers because they should not be built/released.
-* Fri Sep 14 2012 Kris Van Hees <kris.van.hees@oracle.com> - 0.3.0
-- Release of the DTrace kernel modules for UEK2 2.6.39-201.0.1 (DTrace kernel).
-* Mon Mar 19 2012 Nick Alcock <nick.alcock@oracle.com> - 0.2.5-2
-- Fix typo causing unconditional depmod at postinstall time
-* Tue Mar 13 2012 Nick Alcock <nick.alcock@oracle.com> - 0.2.5
-- New kernel, new userspace: no module changes.
-* Wed Feb 15 2012 Kris van Hees <kris.van.hees@oracle.com> - 0.2.4
-- Ban unloading of in-use dtrace modules while dtrace is running.
-* Thu Feb  9 2012 Nick Alcock <nick.alcock@oracle.com> - 0.2.3
-- There is one new DTrace option now, used internally by the
-  testsuite.
-* Tue Feb  7 2012 Kris Van Hees <kris.van.hees@oracle.com> - 0.2.2
-- Switch MUTEX_HELD() from using mutex_is_locked() to new mutex_owned().
-* Mon Jan 23 2012 Kris Van Hees <kris.van.hees@oracle.com> - 0.2.1
-- Ensure that allocation attempts are done in atomic fashion so that a failing
-  allocation attempt won't interfere with other allocations.
-- Surpress OOM warnings.
-* Mon Jan 23 2012 Kris Van Hees <kris.van.hees@oracle.com> - 0.2.0
-- Release of the DTrace kernel modules for UEK2 2.6.39-101.0.1 (DTrace kernel).
-* Wed Oct 19 2011 Kris Van Hees <kris.van.hees@oracle.com> - 0.1.0-1.el6
-- Disable stub-based syscalls in the release pending merging in fixes.
-* Thu Sep 29 2011 Maxim Uvarov <maxim.uvarov@oracle.com> - 0.1
-- Initial release.
index c3daaa96a018dbd3f7367dc0afa18eadb0813d1d..7dbe2bb36f5de5efeffafdabf0ba8efa7c28bb40 100644 (file)
@@ -1,3 +1,19 @@
+/*
+ * Dynamic Tracing for Linux
+ *
+ * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
+ * 
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
 #ifndef _DTRACE_H_
 #define _DTRACE_H_
 
index 75a96eddf26a2a2a39389360df68f6fa0cf4a467..340709cf3d66764e8603c3729d7793b0ede91383 100644 (file)
@@ -1,28 +1,18 @@
 /*
  * FILE:       dtrace_actdesc.c
- * DESCRIPTION:        Dynamic Tracing: action description functions
+ * DESCRIPTION:        DTrace - action implementation
  *
- * CDDL HEADER START
+ * Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
  *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2010-2014 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/slab.h>
index 67fc30b684aeffad140aab0c9286480ae3954da0..f1516d1447949f583a0fa51fe19bbcc8cd35d75d 100644 (file)
@@ -1,28 +1,18 @@
 /*
  * FILE:       dtrace_anon.c
- * DESCRIPTION:        Dynamic Tracing: anonymous enabling functions
+ * DESCRIPTION:        DTrace - Anonymous state implementation
  *
- * CDDL HEADER START
+ * Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved.
  *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2010, 2011, 2012 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include "dtrace.h"
index 9722f860b8d4aee702db2d3a2d2f7ca402838131..3f3717a5142c45d77dd8e3c28c8c2ed0ae29e6d9 100644 (file)
@@ -1,28 +1,18 @@
 /*
  * FILE:       dtrace_buffer.c
- * DESCRIPTION:        Dynamic Tracing: buffer functions
+ * DESCRIPTION:        DTrace - buffer implementation
  *
- * CDDL HEADER START
+ * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
  *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2010, 2011, 2012 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/vmalloc.h>
index 81d04650cbe187e84e058017ad525c1986decfd5..fce4cf02578e9641317abeff6dd0af0e6988553d 100644 (file)
@@ -1,3 +1,19 @@
+/*
+ * Dynamic Tracing for Linux
+ *
+ * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
+ * 
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
 #ifndef _DTRACE_DEBUG_H_
 #define _DTRACE_DEBUG_H_
 
index 08006eaa07205fc220a0ce0315ec017da176b442..e399888071e2e33fa7b45226f55e249d3f6d3bb0 100644 (file)
@@ -1,27 +1,18 @@
 /*
  * FILE:       dtrace_dev.c
- * DESCRIPTION:        Dynamic Tracing: device file handling
+ * DESCRIPTION:        DTrace - Framework device driver
  *
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
+ * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
  *
- * CDDL HEADER END
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/delay.h>
@@ -38,7 +29,6 @@
 #include "ctf_api.h"
 #include "dtrace.h"
 #include "dtrace_dev.h"
-#include <linux/dtrace/ioctl_debug.h>
 
 extern char                    *dtrace_helptrace_buffer;
 extern int                     dtrace_helptrace_bufsize;
@@ -91,6 +81,27 @@ int dtrace_enable_nullop(void)
        return 0;
 }
 
+
+#ifdef CONFIG_DT_DEBUG
+static void dtrace_ioctl_sizes(void)
+{
+#define DBG_PRINT(x) dt_dbg_ioctl("Size of %s: %lx\n", #x, sizeof(x))
+       DBG_PRINT(dtrace_providerdesc_t);
+       DBG_PRINT(dtrace_probedesc_t);
+       DBG_PRINT(dtrace_bufdesc_t);
+       DBG_PRINT(dtrace_eprobedesc_t);
+       DBG_PRINT(dtrace_argdesc_t);
+       DBG_PRINT(dtrace_conf_t);
+       DBG_PRINT(dtrace_status_t);
+       DBG_PRINT(processorid_t);
+       DBG_PRINT(dtrace_aggdesc_t);
+       DBG_PRINT(dtrace_fmtdesc_t);
+       DBG_PRINT(dof_hdr_t);
+#undef DBG_PRINT
+}
+
+#endif
+
 static int dtrace_open(struct inode *inode, struct file *file)
 {
        dtrace_state_t  *state;
@@ -958,15 +969,6 @@ static long dtrace_ioctl(struct file *file,
        return -ENOTTY;
 }
 
-#ifdef CONFIG_DT_DEBUG
-
-void dtrace_size_dbg_print(const char *type, size_t size)
-{
-       dt_dbg_ioctl("Size of %s: %lx\n", type, size);
-}
-
-#endif
-
 static int dtrace_close(struct inode *inode, struct file *file)
 {
        dtrace_state_t  *state = file->private_data;
index 670c77169ee12adfc8e2d680345fb6dec9be9465..a7629a1ea63aba925a60b5b4d059d066c85783a4 100644 (file)
@@ -1,3 +1,19 @@
+/*
+ * Dynamic Tracing for Linux
+ *
+ * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
 #ifndef _DTRACE_DEV_H_
 #define _DTRACE_DEV_H_
 
index 62a66c155f657b6c57d23e954bd828bee4a15454..78d288b348d70235128a2e27b503685a16b97a9d 100644 (file)
@@ -1,27 +1,18 @@
 /*
  * FILE:       dtrace_dif.c
- * DESCRIPTION:        Dynamic Tracing: DIF object functions
+ * DESCRIPTION:        DTrace - DIF object implementation
  *
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
+ * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
  *
- * CDDL HEADER END
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/dtrace_cpu.h>
index 4207fcea2b8154956953a1f6d09bf998ac5a4197..e99772ea546fa2e625699e2a0992a7ee84bbbe84 100644 (file)
@@ -1,28 +1,18 @@
 /*
  * FILE:       dtrace_dof.c
- * DESCRIPTION:        Dynamic Tracing: DOF object functions
+ * DESCRIPTION:        DTrace - DOF implementation
  *
- * CDDL HEADER START
+ * Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
  *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2010-2014 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/slab.h>
index 6eaaa3c47becb6ee6cdb98bdb5963d238f3828f5..f26c85213aba98724ef4812f11743472100991f5 100644 (file)
@@ -1,28 +1,18 @@
 /*
  * FILE:       dtrace_ecb.c
- * DESCRIPTION:        Dynamic Tracing: ECB functions
+ * DESCRIPTION:        DTrace - ECB implementation
  *
- * CDDL HEADER START
+ * Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
  *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2010-2014 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/slab.h>
index 7fe1ad10be414cccdf378837d1ca303426de2272..00da5ed0a512381f593d343b27653e8a1707edad 100644 (file)
@@ -1,28 +1,18 @@
 /*
  * FILE:       dtrace_enable.c
- * DESCRIPTION:        Dynamic Tracing: enabling functions
+ * DESCRIPTION:        DTrace - probe enabling implementation
  *
- * CDDL HEADER START
+ * Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
  *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2010-2014 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/kernel.h>
index 939333b5846baf357df01bbf444f73dcd3fdf871..245da55bd7d101719032b8cf145dd6bcfef8fdb7 100644 (file)
@@ -1,28 +1,18 @@
 /*
  * FILE:       dtrace_fmt.c
- * DESCRIPTION:        Dynamic Tracing: format functions
+ * DESCRIPTION:        DTrace - format string implementation
  *
- * CDDL HEADER START
+ * Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
  *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2010-2014 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/slab.h>
index 0ae9dac957d79cfbf09a68aa731a771b068faf3d..79b907757221fec3a41b4b06f8d647d285837a08 100644 (file)
@@ -1,28 +1,18 @@
 /*
  * FILE:       dtrace_hash.c
- * DESCRIPTION:        Dynamic Tracing: probe hashing functions
+ * DESCRIPTION:        DTrace - hash table implementation
  *
- * CDDL HEADER START
+ * Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
  *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2010-2014 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/slab.h>
index f2dcd512388668a8cfa00852820e0483760ccd6f..a0fe47b48f7bbf0b7f63be5374ab52619249b288 100644 (file)
@@ -1,28 +1,18 @@
 /*
  * FILE:       dtrace_isa.c
- * DESCRIPTION:        Dynamic Tracing: architecture specific support functions
+ * DESCRIPTION:        DTrace - architecture specific code
  *
- * CDDL HEADER START
+ * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
  *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2010-2017 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/dtrace_cpu.h>
index 12f8be8ad00662b1ac04a270c8c6b3a55962f72c..e95e69cfb93f25cefdaa1cb3ec1e05e2b98634e0 100644 (file)
@@ -1,28 +1,18 @@
 /*
  * FILE:       dtrace_match.c
- * DESCRIPTION:        Dynamic Tracing: matching functions
+ * DESCRIPTION:        DTrace - probe match implementation
  *
- * CDDL HEADER START
+ * Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
  *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2010, 2011 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include "dtrace.h"
index f5fcace3c2bc86816775757e267bfb98444d2913..bc9e49fa4bb476e86851dc2365ca9a9d8eec2ebc 100644 (file)
@@ -1,28 +1,18 @@
 /*
  * FILE:       dtrace_mod.c
- * DESCRIPTION:        Dynamic Tracing: module handling
+ * DESCRIPTION:        DTrace - framework kernel module
  *
- * CDDL HEADER START
+ * Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
  *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2010, 2011, 2012 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/module.h>
@@ -32,7 +22,7 @@
 MODULE_AUTHOR("Kris Van Hees (kris.van.hees@oracle.com)");
 MODULE_DESCRIPTION("Dynamic Tracing");
 MODULE_VERSION("v0.1");
-MODULE_LICENSE("CDDL");
+MODULE_LICENSE("GPL");
 
 /*
  * Initialize the module.
index c7fa70af41543221f1489012c9ca02a3f3ce0bd9..5a5e5a8263590570b44ebf604a14b1630b705535 100644 (file)
@@ -1,28 +1,18 @@
 /*
  * FILE:       dtrace_predicate.c
- * DESCRIPTION:        Dynamic Tracing: predicate functions
+ * DESCRIPTION:        DTrace - predicate cache implementation
  *
- * CDDL HEADER START
+ * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
  *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2010, 2011 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/slab.h>
index 79930a57eb3d74535ad0ed2b8fddc76fe7fcd542..716383511450c8601cd111ce6eba1ec0226da445 100644 (file)
@@ -1,28 +1,18 @@
 /*
  * FILE:       dtrace_priv.c
- * DESCRIPTION:        Dynamic Tracing: privilege check functions
+ * DESCRIPTION:        DTrace - privilege support implementation
  *
- * CDDL HEADER START
+ * Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
  *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2010, 2011 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/dtrace_cpu.h>
index 08d23e87fc3f87794b56a3727534f45e51f51dcf..7b97f55f04469d1ced059f071a52a870b87e82e5 100644 (file)
@@ -1,28 +1,18 @@
 /*
  * FILE:       dtrace_probe.c
- * DESCRIPTION:        Dynamic Tracing: probe management functions
+ * DESCRIPTION:        DTrace - probe implementation
  *
- * CDDL HEADER START
+ * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
  *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2010-2017 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/dtrace_cpu.h>
index 3d92503f72a8ad35b986643008857c2f2d51a9f6..40e8f5c1d529bdea4da25c809c90bf421d446af8 100644 (file)
@@ -1,28 +1,18 @@
 /*
  * FILE:       dtrace_probe_ctx.c
- * DESCRIPTION:        Dynamic Tracing: probe context functions
+ * DESCRIPTION:        DTrace - probe context safe functions
  *
- * CDDL HEADER START
+ * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
  *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2010, 2011, 2012, 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/dtrace_cpu.h>
index d5e05cd97c8d20b7967616226e974e010e3cbdba..4a523167796dd82604a764a6e98f97627098065b 100644 (file)
@@ -1,27 +1,18 @@
 /*
  * FILE:       dtrace_ptofapi.c
- * DESCRIPTION:        Dynamic Tracing: (meta) provider-to-framework API
+ * DESCRIPTION:        DTrace - (meta) provider-to-framework API
  *
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
+ * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
  *
- * CDDL HEADER END
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/idr.h>
index de124fc81375b55fdc1d6473e1d2e9ca1667139a..03d8d28457464d497d676ac4143b58217f049789 100644 (file)
@@ -1,28 +1,18 @@
 /*
  * FILE:       dtrace_spec.c
- * DESCRIPTION:        Dynamic Tracing: speculation functions
+ * DESCRIPTION:        DTrace - speculation implementation
  *
- * CDDL HEADER START
+ * Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
  *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2010, 2011, 2012 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/dtrace_cpu.h>
index 95455bd27b843cc6de14a643b361ba8ee322b3f3..9c6ec36aaef736cfec34913bdc4c3ab7fd13ae0c 100644 (file)
@@ -1,28 +1,18 @@
 /*
  * FILE:       dtrace_state.c
- * DESCRIPTION:        Dynamic Tracing: consumer state functions
+ * DESCRIPTION:        DTrace - consumer state implementation
  *
- * CDDL HEADER START
+ * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
  *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2010, 2011, 2012 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/cyclic.h>
index c3ff4b6a0a7bdb83ac378d1a39fe81841fb26ab6..a4c636a51bca1a361e450177b013a62757d1380a 100644 (file)
@@ -1,28 +1,18 @@
 /*
  * FILE:       dtrace_util.c
- * DESCRIPTION:        DTrace utility functions
+ * DESCRIPTION:        DTrace utility functions
  *
- * CDDL HEADER START
+ * Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
  *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2010-2014 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/dtrace_cpu.h>
index 25201f41585bb8b6e6919a8fad1f189a0c7a6bb8..bdb28aec3c9734bb38ff8e39ffcd35b9fc62e7f1 100644 (file)
@@ -1,27 +1,18 @@
 /*
  * FILE:       fasttrap_dev.c
- * DESCRIPTION:        Fasttrap Tracing: device file handling
+ * DESCRIPTION:        DTrace - fasttrap provider device driver
  *
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
+ * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
  *
- * CDDL HEADER END
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/atomic.h>
index d2992fa1f71e6a3edd37ce4c3a4f59d24f1e783d..75bfd788fcc6471fe0f7e0dff1398db9e57dc714 100644 (file)
@@ -1,3 +1,19 @@
+/*
+ * Dynamic Tracing for Linux - fasttrap provider
+ *
+ * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
 #ifndef _FASTTRAP_IMPL_H_
 #define _FASTTRAP_IMPL_H_
 
index fc85d48405d50fc8ea241607d1b4625f6f38f20a..7a813eedf95c40b505ef7bdcaf5aaa7ffa872242 100644 (file)
@@ -1,28 +1,18 @@
 /*
  * FILE:       fasttrap_mod.c
- * DESCRIPTION:        Fasttrap Tracing: module handling
+ * DESCRIPTION:        DTrace - fasttrap provider kernel module
  *
- * CDDL HEADER START
+ * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
  *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2010, 2011, 2012, 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/module.h>
@@ -34,7 +24,7 @@
 MODULE_AUTHOR("Kris Van Hees (kris.van.hees@oracle.com)");
 MODULE_DESCRIPTION("Fasttrap Tracing");
 MODULE_VERSION("v0.1");
-MODULE_LICENSE("CDDL");
+MODULE_LICENSE("GPL");
 
 static dtrace_mops_t fasttrap_mops = {
        fasttrap_meta_create_probe,
index d2014cac130f5063e3387f66eb6dbcb37f203550..67d487e7cd6b80aaf0de67f052b66ac1b4ebf911 100644 (file)
@@ -1,27 +1,18 @@
 /*
  * FILE:       fbt_dev.c
- * DESCRIPTION:        Function Boundary Tracing: device file handling
+ * DESCRIPTION:        DTrace - FBT provider device driver
  *
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
+ * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
  *
- * CDDL HEADER END
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/fs.h>
index bda21e096ce78249bb997ce8de4aa65da78690e7..8c6b052b22f1c4074dd175496867e3ae5c3ff0c8 100644 (file)
@@ -1,3 +1,19 @@
+/*
+ * Dynamic Tracing for Linux - Function Boundary Tracing provider
+ *
+ * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
 #ifndef _FBT_H_
 #define _FBT_H_
 
index e7d6fd18f30a459da92826b138d53f1f97ac93a2..22a89ae8444551f1ef1f4377b683447165637772 100644 (file)
@@ -1,27 +1,18 @@
 /*
  * FILE:       fbt_mod.c
- * DESCRIPTION:        Function Boundary Tracing: module handling
+ * DESCRIPTION:        DTrace - FBT provider kernel module
  *
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
+ * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
  *
- * CDDL HEADER END
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/module.h>
@@ -33,7 +24,7 @@
 MODULE_AUTHOR("Kris Van Hees (kris.van.hees@oracle.com)");
 MODULE_DESCRIPTION("Function Boundary Tracing");
 MODULE_VERSION("v0.1");
-MODULE_LICENSE("CDDL");
+MODULE_LICENSE("GPL");
 
 static const dtrace_pattr_t fbt_attr = {
 { DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_COMMON },
diff --git a/dtrace/include/dtrace/provider_defines.h b/dtrace/include/dtrace/provider_defines.h
deleted file mode 100644 (file)
index a21b059..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-#ifndef _DTRACE_PROVIDER_DEFINES_H
-#define _DTRACE_PROVIDER_DEFINES_H
-
-/*
- * DTrace Dynamic Tracing Software: DTrace Provider defines
- *
- * Note: The contents of this file are private to the implementation of the
- * DTrace subsystem and are subject to change at any time without notice.
- */
-
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2009 -- 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-#include <linux/dtrace/universal.h>
-#include <linux/cred.h>
-#include <linux/in6.h>
-
-typedef uintptr_t              dtrace_provider_id_t;
-typedef uintptr_t              dtrace_meta_provider_id_t;
-typedef struct cred    cred_t;
-typedef __be32         ipaddr_t;
-typedef struct in6_addr        in6_addr_t;
-
-struct dtrace_pops;
-struct dtrace_helper_probedesc;
-struct dtrace_helper_provdesc;
-struct dtrace_mops;
-struct dtrace_meta;
-
-#endif /* _DTRACE_PROVIDER_DEFINES_H */
diff --git a/dtrace/include/sparc64/dtrace/fasttrap_arch.h b/dtrace/include/sparc64/dtrace/fasttrap_arch.h
deleted file mode 100644 (file)
index c2dd1f1..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-#ifndef _SPARC64_FASTTRAP_ARCH_H
-#define _SPARC64_FASTTRAP_ARCH_H
-
-/*
- * Fasttrap Tracing Implementation defines
- *
- * Note: The contents of this file are private to the implementation of the
- * DTrace subsystem and are subject to change at any time without notice.
- */
-
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2016 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-#define FASTTRAP_OFFSET_AFRAMES        0
-
-#endif /* _SPARC64_FASTTRAP_ARCH_H */
diff --git a/dtrace/include/sparc64/dtrace/mod_arch.h b/dtrace/include/sparc64/dtrace/mod_arch.h
deleted file mode 100644 (file)
index b61fc3e..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-#ifndef _SPARC64_MOD_ARCH_H
-#define _SPARC64_MOD_ARCH_H
-
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2009-2014 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-#include <asm/dtrace_arch.h>
-
-/*
- * Structure to hold DTrace specific information about modules (including the
- * core kernel module).  Note that each module (and the main kernel) already
- * has three fields that relate to probing:
- *     - sdt_probes: description of SDT probes in the module
- *     - sdt_probec: number of SDT probes in the module
- *     - pdata: pointer to a dtrace_module struct (for DTrace)
- */
-typedef struct dtrace_module {
-        int             enabled_cnt;
-        size_t          sdt_probe_cnt;
-       asm_instr_t     *sdt_tab;
-        size_t          fbt_probe_cnt;
-       asm_instr_t     *fbt_tab;
-} dtrace_module_t;
-
-#endif /* _SPARC64_MOD_ARCH_H */
diff --git a/dtrace/include/sparc64/dtrace/sdt_arch.h b/dtrace/include/sparc64/dtrace/sdt_arch.h
deleted file mode 100644 (file)
index 096b9ae..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-#ifndef _SPARC64_SDT_ARCH_H
-#define _SPARC64_SDT_ARCH_H
-
-/*
- * Statically Defined Tracing Implementation defines
- *
- * Note: The contents of this file are private to the implementation of the
- * DTrace subsystem and are subject to change at any time without notice.
- */
-
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2009-2014 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-#define SDT_AFRAMES    1
-
-#endif /* _SPARC64_SDT_ARCH_H */
diff --git a/dtrace/include/uapi/linux/dtrace/actions.h b/dtrace/include/uapi/linux/dtrace/actions.h
deleted file mode 100644 (file)
index 304c01d..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-#ifndef _LINUX_DTRACE_ACTIONS_H
-#define _LINUX_DTRACE_ACTIONS_H
-
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2009 -- 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-#include <linux/dtrace/actions_defines.h>
-
-#endif /* _LINUX_DTRACE_ACTIONS_H */
diff --git a/dtrace/include/uapi/linux/dtrace/arg_defines.h b/dtrace/include/uapi/linux/dtrace/arg_defines.h
deleted file mode 100644 (file)
index 28dad98..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-#ifndef _LINUX_DTRACE_ARG_DEFINES_H
-#define _LINUX_DTRACE_ARG_DEFINES_H
-
-/* 
- * DTrace Dynamic Tracing Software: DTrace Argument Types defines
- * 
- * Note: The contents of this file are private to the implementation of the
- * DTrace subsystem and are subject to change at any time without notice.
- */
-
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2009 -- 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-#include <linux/dtrace/universal.h>
-
-struct dtrace_argdesc;
-
-#endif /* _LINUX_DTRACE_ARG_DEFINES_H */
diff --git a/dtrace/include/uapi/linux/dtrace/buffer_defines.h b/dtrace/include/uapi/linux/dtrace/buffer_defines.h
deleted file mode 100644 (file)
index eaa12ab..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-#ifndef _LINUX_DTRACE_BUFFER_DEFINES_H
-#define _LINUX_DTRACE_BUFFER_DEFINES_H
-
-/* 
- * DTrace Dynamic Tracing Software: DTrace Buffer Interface
- * 
- * Note: The contents of this file are private to the implementation of the
- * DTrace subsystem and are subject to change at any time without notice.
- */
-
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2009 -- 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-#include <linux/dtrace/universal.h>
-
-struct dtrace_bufdesc;
-
-#endif /* _LINUX_DTRACE_BUFFER_DEFINES_H */
diff --git a/dtrace/include/uapi/linux/dtrace/conf.h b/dtrace/include/uapi/linux/dtrace/conf.h
deleted file mode 100644 (file)
index 06bcdc0..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-#ifndef _LINUX_DTRACE_CONF_H
-#define _LINUX_DTRACE_CONF_H
-
-/* 
- * DTrace Dynamic Tracing Software: DTrace Configuration
- * 
- * Note: The contents of this file are private to the implementation of the
- * DTrace subsystem and are subject to change at any time without notice.
- */
-
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2009 -- 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-#include <linux/dtrace/universal.h>
-#include <linux/dtrace/conf_defines.h>
-
-/*
- * User-level may need to understand some elements of the kernel DTrace
- * configuration in order to generate correct DIF.  This information is
- * conveyed via the dtrace_conf structure.
- */
-typedef struct dtrace_conf {
-       uint_t dtc_difversion;                  /* supported DIF version */
-       uint_t dtc_difintregs;                  /* # of DIF integer registers */
-       uint_t dtc_diftupregs;                  /* # of DIF tuple registers */
-       uint_t dtc_ctfmodel;                    /* CTF data model */
-       /* Deviation from Solaris...  Used to just be 8 padding entries. */
-       uint_t dtc_maxbufs;                     /* max # of buffers */
-       uint_t dtc_pad[7];                      /* reserved for future use */
-} dtrace_conf_t;
-
-#endif /* _LINUX_DTRACE_CONF_H */
diff --git a/dtrace/include/uapi/linux/dtrace/conf_defines.h b/dtrace/include/uapi/linux/dtrace/conf_defines.h
deleted file mode 100644 (file)
index 950b347..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-#ifndef _LINUX_DTRACE_CONF_DEFINES_H
-#define _LINUX_DTRACE_CONF_DEFINES_H
-
-/* 
- * DTrace Dynamic Tracing Software: DTrace Configuration defines
- * 
- * Note: The contents of this file are private to the implementation of the
- * DTrace subsystem and are subject to change at any time without notice.
- */
-
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2009 -- 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-#include <linux/dtrace/universal.h>
-
-struct dtrace_conf;
-
-#endif /* _LINUX_DTRACE_CONF_DEFINES_H */
diff --git a/dtrace/include/uapi/linux/dtrace/difo_defines.h b/dtrace/include/uapi/linux/dtrace/difo_defines.h
deleted file mode 100644 (file)
index ee5a854..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-#ifndef _LINUX_DTRACE_DIFO_DEFINES_H
-#define _LINUX_DTRACE_DIFO_DEFINES_H
-
-/* 
- * DTrace Dynamic Tracing Software: DTrace Intermediate Format Object (DIFO) defines
- * 
- * Note: The contents of this file are private to the implementation of the
- * DTrace subsystem and are subject to change at any time without notice.
- */
-
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2009 -- 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-#include <linux/dtrace/universal.h>
-
-struct dtrace_difo;
-
-#endif /* _LINUX_DTRACE_DIFO_DEFINES_H */
diff --git a/dtrace/include/uapi/linux/dtrace/dtrace.h b/dtrace/include/uapi/linux/dtrace/dtrace.h
deleted file mode 100644 (file)
index 6f30bc4..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-#ifndef _LINUX_DTRACE_H_
-#define _LINUX_DTRACE_H_
-
-/*
- * DTrace Dynamic Tracing Software: Kernel Interfaces
- *
- * Note: The contents of this file are private to the implementation of the
- * DTrace subsystem and are subject to change at any time without notice.
- */
-
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2009 -- 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <linux/dtrace/universal.h>
-#include <linux/dtrace/dif.h>
-#include <linux/dtrace/actions.h>
-#include <linux/dtrace/dof.h>
-#include <linux/dtrace/difo.h>
-#include <linux/dtrace/enabling.h>
-#include <linux/dtrace/metadesc.h>
-#include <linux/dtrace/options.h>
-#include <linux/dtrace/buffer.h>
-#include <linux/dtrace/status.h>
-#include <linux/dtrace/conf.h>
-#include <linux/dtrace/faults.h>
-#include <linux/dtrace/arg.h>
-#include <linux/dtrace/stability.h>
-#include <linux/dtrace/helpers.h>
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _LINUX_DTRACE_H_ */
diff --git a/dtrace/include/uapi/linux/dtrace/enabling_defines.h b/dtrace/include/uapi/linux/dtrace/enabling_defines.h
deleted file mode 100644 (file)
index 6882414..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-#ifndef _LINUX_DTRACE_ENABLING_DEFINES_H
-#define _LINUX_DTRACE_ENABLING_DEFINES_H
-
-/* 
- * DTrace Dynamic Tracing Software: DTrace Enabling Description Structures
- * 
- * Note: The contents of this file are private to the implementation of the
- * DTrace subsystem and are subject to change at any time without notice.
- */
-
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2009 -- 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-#include <linux/dtrace/universal.h>
-
-struct dtrace_probedesc;
-struct dtrace_repldesc;
-struct dtrace_preddesc;
-struct dtrace_actdesc;
-struct dtrace_ecbdesc;
-
-#endif /* _LINUX_DTRACE_ENABLING_DEFINES_H */
diff --git a/dtrace/include/uapi/linux/dtrace/fasttrap_defines.h b/dtrace/include/uapi/linux/dtrace/fasttrap_defines.h
deleted file mode 100644 (file)
index 69e5329..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-#ifndef _LINUX_DTRACE_FASTTRAP_DEFINES_H
-#define _LINUX_DTRACE_FASTTRAP_DEFINES_H
-
-/* 
- * DTrace Dynamic Tracing Software: Fasttrap Provider
- * 
- * Note: The contents of this file are private to the implementation of the
- * DTrace subsystem and are subject to change at any time without notice.
- */
-
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2009 -- 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-#include <linux/dtrace/universal.h>
-
-enum fasttrap_probe_type;
-struct fasttrap_probe_spec;
-struct fasttrap_instr_query;
-
-#endif /* _LINUX_DTRACE_FASTTRAP_DEFINES_H */
diff --git a/dtrace/include/uapi/linux/dtrace/fasttrap_ioctl.h b/dtrace/include/uapi/linux/dtrace/fasttrap_ioctl.h
deleted file mode 100644 (file)
index 556563a..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-/* Copyright (C) 2011, 2012, 2013 Oracle, Inc. */
-
-#ifndef _LINUX_DTRACE_FASTRRAP_IOCTL_H_
-#define _LINUX_DTRACE_FASTTRAP_IOCTL_H_
-
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2009 -- 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-#include <linux/ioctl.h>
-#include <linux/dtrace/fasttrap.h>
-
-#define FASTTRAPIOC            0xf4
-#define FASTTRAPIOC_MAKEPROBE  _IOW(FASTTRAPIOC, 1, fasttrap_probe_spec_t)
-#define FASTTRAPIOC_GETINSTR   _IOR(FASTTRAPIOC, 2, fasttrap_instr_query_t)
-
-#endif /* _LINUX_DTRACE_FASTTRAP_IOCTL_H_ */
diff --git a/dtrace/include/uapi/linux/dtrace/faults.h b/dtrace/include/uapi/linux/dtrace/faults.h
deleted file mode 100644 (file)
index abcbe8e..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-#ifndef _LINUX_DTRACE_FAULTS_H
-#define _LINUX_DTRACE_FAULTS_H
-
-/* 
- * DTrace Dynamic Tracing Software: DTrace Faults
- * 
- * Note: The contents of this file are private to the implementation of the
- * DTrace subsystem and are subject to change at any time without notice.
- */
-
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2009 -- 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-#include <linux/dtrace/universal.h>
-#include <linux/dtrace/faults_defines.h>
-
-#endif /* _LINUX_DTRACE_FAULTS_H */
diff --git a/dtrace/include/uapi/linux/dtrace/helpers_defines.h b/dtrace/include/uapi/linux/dtrace/helpers_defines.h
deleted file mode 100644 (file)
index e8c4aa2..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-#ifndef _LINUX_DTRACE_HELPERS_DEFINES_H
-#define _LINUX_DTRACE_HELPERS_DEFINES_H
-
-/* 
- * DTrace Dynamic Tracing Software: DTrace Helpers defines
- * 
- * Note: The contents of this file are private to the implementation of the
- * DTrace subsystem and are subject to change at any time without notice.
- */
-
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2009 -- 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-#include <linux/dtrace/universal.h>
-
-struct dof_helper;
-
-#endif /* _LINUX_DTRACE_HELPERS_DEFINES_H */
diff --git a/dtrace/include/uapi/linux/dtrace/ioctl_debug.h b/dtrace/include/uapi/linux/dtrace/ioctl_debug.h
deleted file mode 100644 (file)
index 90c326b..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-/* Copyright (C) 2013 Oracle, Inc. */
-
-#ifndef _LINUX_DTRACE_IOCTL_DEBUG_H_
-#define _LINUX_DTRACE_IOCTL_DEBUG_H_
-
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-#include <linux/dtrace/ioctl.h>
-
-void dtrace_size_dbg_print(const char *type, size_t size);
-
-static void dtrace_ioctl_sizes(void) {
-#define DBG_PRINT(x) dtrace_size_dbg_print(#x, sizeof(x))
-       DBG_PRINT(dtrace_providerdesc_t);
-       DBG_PRINT(dtrace_probedesc_t);
-       DBG_PRINT(dtrace_bufdesc_t);
-       DBG_PRINT(dtrace_eprobedesc_t);
-       DBG_PRINT(dtrace_argdesc_t);
-       DBG_PRINT(dtrace_conf_t);
-       DBG_PRINT(dtrace_status_t);
-       DBG_PRINT(processorid_t);
-       DBG_PRINT(dtrace_aggdesc_t);
-       DBG_PRINT(dtrace_fmtdesc_t);
-       DBG_PRINT(dof_hdr_t);
-#undef DBG_PRINT
-}
-
-#endif /* _LINUX_DTRACE_IOCTL_DEBUG_H */
diff --git a/dtrace/include/uapi/linux/dtrace/metadesc_defines.h b/dtrace/include/uapi/linux/dtrace/metadesc_defines.h
deleted file mode 100644 (file)
index 16cb16f..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-#ifndef _LINUX_DTRACE_METADESC_DEFINES_H
-#define _LINUX_DTRACE_METADESC_DEFINES_H
-
-/* 
- * DTrace Dynamic Tracing Software: DTrace Metadata Description Structures defines
- * 
- * Note: The contents of this file are private to the implementation of the
- * DTrace subsystem and are subject to change at any time without notice.
- */
-
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2009 -- 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-#include <linux/dtrace/universal.h>
-
-struct dtrace_recdesc;
-struct dtrace_eprobedesc;
-struct dtrace_aggdesc;
-struct dtrace_fmtdesc;
-
-#endif /* _LINUX_DTRACE_METADESC_DEFINES_H */
diff --git a/dtrace/include/uapi/linux/dtrace/options.h b/dtrace/include/uapi/linux/dtrace/options.h
deleted file mode 100644 (file)
index ef3bf0a..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-#ifndef _LINUX_DTRACE_OPTIONS_H
-#define _LINUX_DTRACE_OPTIONS_H
-
-/* 
- * DTrace Dynamic Tracing Software: DTrace Option Interface
- * 
- * Note: The contents of this file are private to the implementation of the
- * DTrace subsystem and are subject to change at any time without notice.
- */
-
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2009 -- 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-#include <linux/dtrace/universal.h>
-#include <linux/dtrace/options_defines.h>
-
-#endif /* _LINUX_DTRACE_OPTIONS_H */
diff --git a/dtrace/include/x86_64/dtrace/fasttrap_arch.h b/dtrace/include/x86_64/dtrace/fasttrap_arch.h
deleted file mode 100644 (file)
index a839c9e..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-#ifndef _X86_64_FASTTRAP_ARCH_H
-#define _X86_64_FASTTRAP_ARCH_H
-
-/*
- * Fasttrap Tracing Implementation defines
- *
- * Note: The contents of this file are private to the implementation of the
- * DTrace subsystem and are subject to change at any time without notice.
- */
-
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2016 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-#define FASTTRAP_OFFSET_AFRAMES        3
-
-#endif /* _X86_64_FASTTRAP_ARCH_H */
diff --git a/dtrace/include/x86_64/dtrace/mod_arch.h b/dtrace/include/x86_64/dtrace/mod_arch.h
deleted file mode 100644 (file)
index 2aa2220..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-#ifndef _X86_64_MOD_ARCH_H
-#define _X86_64_MOD_ARCH_H
-
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2009-2014 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-#include <asm/dtrace_arch.h>
-
-/*
- * Structure to hold DTrace specific information about modules (including the
- * core kernel module).  Note that each module (and the main kernel) already
- * has three fields that relate to probing:
- *     - sdt_probes: description of SDT probes in the module
- *     - sdt_probec: number of SDT probes in the module
- *     - pdata: pointer to a dtrace_module struct (for DTrace)
- */
-typedef struct dtrace_module {
-        int             enabled_cnt;
-        size_t          sdt_probe_cnt;
-        size_t          fbt_probe_cnt;
-} dtrace_module_t;
-
-#endif /* _X86_64_MOD_ARCH_H */
diff --git a/dtrace/include/x86_64/dtrace/sdt_arch.h b/dtrace/include/x86_64/dtrace/sdt_arch.h
deleted file mode 100644 (file)
index a24ec3c..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-#ifndef _X86_64_SDT_ARCH_H
-#define _X86_64_SDT_ARCH_H
-
-/*
- * Statically Defined Tracing Implementation defines
- *
- * Note: The contents of this file are private to the implementation of the
- * DTrace subsystem and are subject to change at any time without notice.
- */
-
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2009-2014 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-#define SDT_AFRAMES    4
-
-#endif /* _X86_64_SDT_ARCH_H */
index 40949f8dce125bcd13bcd73e41b3644e3d7c7c77..9fd8ed3c081f260e5fc0dd4a6d96ae55aa154f0f 100644 (file)
@@ -1,3 +1,19 @@
+/*
+ * Dynamic Tracing for Linux - profile provider
+ *
+ * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
 #ifndef _PROFILE_H_
 #define _PROFILE_H_
 
index f855ed805db3ece4f6f7e48da5e496958baaf39e..f2abd275f2013b3b06004c2d4d360c815df6b3ce 100644 (file)
@@ -1,28 +1,18 @@
 /*
  * FILE:       profile_dev.c
- * DESCRIPTION:        Profile Interrupt Tracing: device file handling
+ * DESCRIPTION:        DTrace - profile provider device driver
  *
- * CDDL HEADER START
+ * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
  *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2010-2014 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/fs.h>
index a2d9f10519ce8e9e64741e61a1daea699f2026fe..d9eb66c283b90c042ca669e485ac71ba913d004a 100644 (file)
@@ -1,27 +1,18 @@
 /*
  * FILE:       profile_mod.c
- * DESCRIPTION:        Profile Interrupt Tracing: module handling
+ * DESCRIPTION:        DTrace - Profile provider kernel module
  *
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
+ * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
  *
- * CDDL HEADER END
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/module.h>
@@ -33,7 +24,7 @@
 MODULE_AUTHOR("Kris Van Hees (kris.van.hees@oracle.com)");
 MODULE_DESCRIPTION("Profile Interrupt Tracing");
 MODULE_VERSION("v0.1");
-MODULE_LICENSE("CDDL");
+MODULE_LICENSE("GPL");
 
 static const dtrace_pattr_t profile_attr = {
 { DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_COMMON },
index 01a5e16c75571e19e607fe561bd7001c1f355583..e57f85bfb1eab4519f6bd857f2c703f24ecdc402 100644 (file)
@@ -1,27 +1,18 @@
 /*
  * FILE:       sdt_dev.c
- * DESCRIPTION:        Statically Defined Tracing: device file handling
+ * DESCRIPTION:        DTrace - SDT provider device driver
  *
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
+ * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
  *
- * CDDL HEADER END
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/ctype.h>
index 70cd704612cd9fb49504f82210175a09546ea357..4ad25847b004923b4a8d5a29b31cd3cb226d8acc 100644 (file)
@@ -1,3 +1,19 @@
+/*
+ * Dynamic Tracing for Linux - Statically Defined Tracing provider
+ *
+ * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
 #ifndef _SDT_IMPL_H_
 #define _SDT_IMPL_H_
 
index aa45e0c0c72e54d5a112eb04585e0f7bc07f04df..8203878b3b2523fdd5d78769f448d49c173c3f6c 100644 (file)
@@ -1,28 +1,18 @@
 /*
  * FILE:       sdt_mod.c
- * DESCRIPTION:        Statically Defined Tracing: module handling
+ * DESCRIPTION:        DTrace - SDT provider kernel module
  *
+ * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
  *
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/module.h>
@@ -34,7 +24,7 @@
 MODULE_AUTHOR("Kris Van Hees (kris.van.hees@oracle.com)");
 MODULE_DESCRIPTION("Profile Interrupt Tracing");
 MODULE_VERSION("v0.1");
-MODULE_LICENSE("CDDL");
+MODULE_LICENSE("GPL");
 
 static dtrace_pattr_t vtrace_attr = {
 { DTRACE_STABILITY_UNSTABLE, DTRACE_STABILITY_UNSTABLE, DTRACE_CLASS_ISA },
index d726cb3a3282e61c9d8cc5320229a3a8af77f440..c4366018c537da1a1db34adbed1f8b54f77abf80 100644 (file)
@@ -1,26 +1,19 @@
 /*
- * CDDL HEADER START
+ * Dynamic Tracing for Linux - syscall tracing provider
  *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
+ * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
  *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
-/* Copyright (C) 2011 Oracle Corporation */
-
 #ifndef _SYSTRACE_H_
 #define _SYSTRACE_H_
 
index 49ebb4040ce8ceb9931fdf06de57978f925f2eb8..d34e19fb2f43fc9a40acdba7b0efb624bb0556e5 100644 (file)
@@ -1,28 +1,18 @@
 /*
  * FILE:       systrace_dev.c
- * DESCRIPTION:        System Call Tracing: device file handling
+ * DESCRIPTION:        DTrace - systrace provider device driver
  *
- * CDDL HEADER START
+ * Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
  *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2010-2014 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/dtrace_syscall.h>
index 3d1f258f745558e492bb69244a30c4dc3d3f059c..020ef70c0d06cd04608f484d1f2b1f1421f57e2d 100644 (file)
@@ -1,27 +1,18 @@
 /*
  * FILE:       systrace_mod.c
- * DESCRIPTION:        System Call Tracing: module handling
+ * DESCRIPTION:        DTrace - systrace provider kernel module
  *
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
+ * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
  *
- * CDDL HEADER END
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/module.h>
@@ -33,7 +24,7 @@
 MODULE_AUTHOR("Kris Van Hees (kris.van.hees@oracle.com)");
 MODULE_DESCRIPTION("System Call Tracing");
 MODULE_VERSION("v0.1");
-MODULE_LICENSE("CDDL");
+MODULE_LICENSE("GPL");
 
 static const dtrace_pattr_t syscall_attr = {
 { DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_COMMON },
similarity index 97%
rename from dtrace/include/dtrace/dtrace_impl.h
rename to include/dtrace/dtrace_impl.h
index 0eac655974dc48b3420ac8179cb74f7551ec02ad..6df1220fc7312b0e8ec59560e121495f29f1501f 100644 (file)
@@ -1,37 +1,27 @@
-#ifndef _LINUX_DTRACE_IMPL_H
-#define _LINUX_DTRACE_IMPL_H
-
-/* 
- * DTrace Dynamic Tracing Software: DTrace Implementation
- * 
- * Note: The contents of this file are private to the implementation of the
- * DTrace subsystem and are subject to change at any time without notice.
- */
-
 /*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
+ * Dynamic Tracing for Linux - Implementation
  *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
+ * Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved.
  *
- * CDDL HEADER END
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * Copyright 2009-2017 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
+/*
+ * Note: The contents of this file are private to the implementation of the
+ * DTrace subsystem and are subject to change at any time without notice.
+ */
+
+#ifndef _LINUX_DTRACE_IMPL_H
+#define _LINUX_DTRACE_IMPL_H
+
 #include <linux/cyclic.h>
 #include <linux/idr.h>
 
similarity index 84%
rename from dtrace/include/dtrace/dtrace_impl_defines.h
rename to include/dtrace/dtrace_impl_defines.h
index 443df6bffc85c7f941adee9cfc20d8bd7c72432a..1880401bb89fcdb7c65e65bb6fa93ff7c623dfb4 100644 (file)
@@ -1,37 +1,27 @@
-#ifndef _LINUX_DTRACE_IMPL_DEFINES_H
-#define _LINUX_DTRACE_IMPL_DEFINES_H
-
-/* 
- * DTrace Dynamic Tracing Software: DTrace Implementation defines
- * 
- * Note: The contents of this file are private to the implementation of the
- * DTrace subsystem and are subject to change at any time without notice.
- */
-
 /*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
+ * Dynamic Tracing for Linux - Implementation Defines
  *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
+ * Copyright (c) 2009, 2016, Oracle and/or its affiliates. All rights reserved.
  *
- * CDDL HEADER END
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * Copyright 2009-2014 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
+/*
+ * Note: The contents of this file are private to the implementation of the
+ * DTrace subsystem and are subject to change at any time without notice.
+ */
+
+#ifndef _LINUX_DTRACE_IMPL_DEFINES_H
+#define _LINUX_DTRACE_IMPL_DEFINES_H
+
 #include <linux/dtrace/universal.h>
 #include <linux/preempt.h>
 #include <asm/ptrace.h>
similarity index 97%
rename from dtrace/include/dtrace/provider.h
rename to include/dtrace/provider.h
index 7c2a91b35dff01bf4a35e64bf0f1ffd6936c6370..a3c13779c67ba3fa8f5c01922f08dd171202f932 100644 (file)
@@ -1,36 +1,27 @@
-#ifndef _DTRACE_PROVIDER_H
-#define _DTRACE_PROVIDER_H
-
 /*
- * DTrace Dynamic Tracing Software: DTrace Provider API
+ * Dynamic Tracing for Linux - Provider API
  *
- * Note: The contents of this file are private to the implementation of the
- * DTrace subsystem and are subject to change at any time without notice.
+ * Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 /*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Note: The contents of this file are private to the implementation of the
+ * DTrace subsystem and are subject to change at any time without notice.
  */
 
+#ifndef _DTRACE_PROVIDER_H
+#define _DTRACE_PROVIDER_H
+
 /*
  * The following functions are implemented by the DTrace framework and are
  * used to implement separate in-kernel DTrace providers.
diff --git a/include/dtrace/provider_defines.h b/include/dtrace/provider_defines.h
new file mode 100644 (file)
index 0000000..a4c7c60
--- /dev/null
@@ -0,0 +1,41 @@
+/*
+ * Dynamic Tracing for Linux - Provider defines
+ *
+ * Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+/*
+ * Note: The contents of this file are private to the implementation of the
+ * DTrace subsystem and are subject to change at any time without notice.
+ */
+
+#ifndef _DTRACE_PROVIDER_DEFINES_H
+#define _DTRACE_PROVIDER_DEFINES_H
+
+#include <linux/dtrace/universal.h>
+#include <linux/cred.h>
+#include <linux/in6.h>
+
+typedef uintptr_t              dtrace_provider_id_t;
+typedef uintptr_t              dtrace_meta_provider_id_t;
+typedef struct cred    cred_t;
+typedef __be32         ipaddr_t;
+typedef struct in6_addr        in6_addr_t;
+
+struct dtrace_pops;
+struct dtrace_helper_probedesc;
+struct dtrace_helper_provdesc;
+struct dtrace_mops;
+struct dtrace_meta;
+
+#endif /* _DTRACE_PROVIDER_DEFINES_H */
similarity index 79%
rename from dtrace/include/dtrace/types.h
rename to include/dtrace/types.h
index 58f0331b9475f25ba8b6f5b80c236bcc867d3cf9..367406f22eae1dfdcb8ae2ccbd2a4900d98c13cc 100644 (file)
@@ -1,37 +1,27 @@
-#ifndef _DTRACE_TYPES_H
-#define _DTRACE_TYPES_H
-
-/* 
- * DTrace Dynamic Tracing Software: DTrace kernel types
- * 
- * Note: The contents of this file are private to the implementation of the
- * DTrace subsystem and are subject to change at any time without notice.
- */
-
 /*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
+ * Dynamic Tracing for Linux - Kernel Types
  *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
+ * Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved.
  *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * CDDL HEADER END
- *
- * Copyright 2009-2017 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
+/*
+ * Note: The contents of this file are private to the implementation of the
+ * DTrace subsystem and are subject to change at any time without notice.
+ */
+
+#ifndef _DTRACE_TYPES_H
+#define _DTRACE_TYPES_H
+
 /*
  * This file contains types needed to parse the DTrace shared userspace/ kernel
  * headers, and a few others (it has not been gardened to remove constants used
diff --git a/include/linux/dtrace/cpu_defines.h b/include/linux/dtrace/cpu_defines.h
new file mode 100644 (file)
index 0000000..b6f87bd
--- /dev/null
@@ -0,0 +1,62 @@
+/* Copyright (C) 2011-2014 Oracle, Inc. */
+
+#ifndef _LINUX_DTRACE_CPU_DEFINES_H_
+#define _LINUX_DTRACE_CPU_DEFINES_H_
+
+#include <linux/percpu.h>
+
+#define        CPUC_SIZE       (sizeof (uint16_t) + sizeof(uint8_t) + \
+                        sizeof(uintptr_t) + sizeof(struct mutex))
+#define CPUC_PADSIZE   (192 - CPUC_SIZE)
+
+#define per_cpu_core(cpu)      (&per_cpu(dtrace_cpu_core, (cpu)))
+#if 0
+# define this_cpu_core         (this_cpu_ptr(&dtrace_cpu_core))
+#else
+# define this_cpu_core         (per_cpu_core(smp_processor_id()))
+#endif
+
+#define DTRACE_CPUFLAG_ISSET(flag) \
+       (this_cpu_core->cpuc_dtrace_flags & (flag))
+
+#define DTRACE_CPUFLAG_SET(flag) \
+       (this_cpu_core->cpuc_dtrace_flags |= (flag))
+
+#define DTRACE_CPUFLAG_CLEAR(flag) \
+       (this_cpu_core->cpuc_dtrace_flags &= ~(flag))
+
+#define CPU_DTRACE_NOFAULT     0x0001
+#define CPU_DTRACE_DROP                0x0002
+#define CPU_DTRACE_BADADDR     0x0004
+#define CPU_DTRACE_BADALIGN    0x0008
+#define CPU_DTRACE_DIVZERO     0x0010
+#define CPU_DTRACE_ILLOP       0x0020
+#define CPU_DTRACE_NOSCRATCH   0x0040
+#define CPU_DTRACE_KPRIV       0x0080
+#define CPU_DTRACE_UPRIV       0x0100
+#define CPU_DTRACE_TUPOFLOW    0x0200
+#define CPU_DTRACE_ENTRY       0x0800
+#define CPU_DTRACE_BADSTACK    0x1000
+#define CPU_DTRACE_NOPF                0x2000
+#define CPU_DTRACE_PF_TRAPPED  0x4000
+#define CPU_DTRACE_PROBE_CTX   0x8000
+
+#define CPU_DTRACE_FAULT       (CPU_DTRACE_BADADDR | CPU_DTRACE_BADALIGN | \
+                                CPU_DTRACE_DIVZERO | CPU_DTRACE_ILLOP | \
+                                CPU_DTRACE_NOSCRATCH | CPU_DTRACE_KPRIV | \
+                                CPU_DTRACE_UPRIV | CPU_DTRACE_TUPOFLOW | \
+                                CPU_DTRACE_BADSTACK | CPU_DTRACE_PF_TRAPPED)
+#define CPU_DTRACE_ERROR       (CPU_DTRACE_FAULT | CPU_DTRACE_DROP)
+
+typedef uint32_t       processorid_t;
+typedef uint32_t       psetid_t;
+typedef uint32_t       chipid_t;
+typedef uint32_t       lgrp_id_t;
+
+struct cpu_core;
+struct cpuinfo;
+
+#define per_cpu_info(cpu)      (&per_cpu(dtrace_cpu_info, (cpu)))
+#define this_cpu_info          (this_cpu_ptr(&dtrace_cpu_info))
+
+#endif /* _LINUX_DTRACE_CPU_DEFINES_H_ */
index 52e777291788fe3c91a8597ba049c4972843063d..2b8305a2db4b175f89eea3c817414de784bca910 100644 (file)
@@ -1,62 +1 @@
-/* Copyright (C) 2011-2014 Oracle, Inc. */
-
-#ifndef _LINUX_DTRACE_CPU_DEFINES_H_
-#define _LINUX_DTRACE_CPU_DEFINES_H_
-
-#include <linux/percpu.h>
-
-#define CPUC_SIZE      (sizeof (uint16_t) + sizeof(uint8_t) + \
-                        sizeof(uintptr_t) + sizeof(struct mutex))
-#define CPUC_PADSIZE   (192 - CPUC_SIZE)
-
-#define per_cpu_core(cpu)      (&per_cpu(dtrace_cpu_core, (cpu)))
-#if 0
-# define this_cpu_core         (this_cpu_ptr(&dtrace_cpu_core))
-#else
-# define this_cpu_core         (per_cpu_core(smp_processor_id()))
-#endif
-
-#define DTRACE_CPUFLAG_ISSET(flag) \
-       (this_cpu_core->cpuc_dtrace_flags & (flag))
-
-#define DTRACE_CPUFLAG_SET(flag) \
-       (this_cpu_core->cpuc_dtrace_flags |= (flag))
-
-#define DTRACE_CPUFLAG_CLEAR(flag) \
-       (this_cpu_core->cpuc_dtrace_flags &= ~(flag))
-
-#define CPU_DTRACE_NOFAULT     0x0001
-#define CPU_DTRACE_DROP                0x0002
-#define CPU_DTRACE_BADADDR     0x0004
-#define CPU_DTRACE_BADALIGN    0x0008
-#define CPU_DTRACE_DIVZERO     0x0010
-#define CPU_DTRACE_ILLOP       0x0020
-#define CPU_DTRACE_NOSCRATCH   0x0040
-#define CPU_DTRACE_KPRIV       0x0080
-#define CPU_DTRACE_UPRIV       0x0100
-#define CPU_DTRACE_TUPOFLOW    0x0200
-#define CPU_DTRACE_ENTRY       0x0800
-#define CPU_DTRACE_BADSTACK    0x1000
-#define CPU_DTRACE_NOPF                0x2000
-#define CPU_DTRACE_PF_TRAPPED  0x4000
-#define CPU_DTRACE_PROBE_CTX   0x8000
-
-#define CPU_DTRACE_FAULT       (CPU_DTRACE_BADADDR | CPU_DTRACE_BADALIGN | \
-                                CPU_DTRACE_DIVZERO | CPU_DTRACE_ILLOP | \
-                                CPU_DTRACE_NOSCRATCH | CPU_DTRACE_KPRIV | \
-                                CPU_DTRACE_UPRIV | CPU_DTRACE_TUPOFLOW | \
-                                CPU_DTRACE_BADSTACK | CPU_DTRACE_PF_TRAPPED)
-#define CPU_DTRACE_ERROR       (CPU_DTRACE_FAULT | CPU_DTRACE_DROP)
-
-typedef uint32_t       processorid_t;
-typedef uint32_t       psetid_t;
-typedef uint32_t       chipid_t;
-typedef uint32_t       lgrp_id_t;
-
-struct cpu_core;
-struct cpuinfo;
-
-#define per_cpu_info(cpu)      (&per_cpu(dtrace_cpu_info, (cpu)))
-#define this_cpu_info          (this_cpu_ptr(&dtrace_cpu_info))
-
-#endif /* _LINUX_DTRACE_CPU_DEFINES_H_ */
+#include <linux/dtrace/cpu_defines.h>
index 1a0006a76b00a785c62d4bc01959136a6c7ea0e3..3b83b8ebf0b69235c7ef5077ce69bcfd39522283 100644 (file)
@@ -23,6 +23,8 @@ header-y += netfilter_ipv6/
 header-y += usb/
 header-y += wimax/
 
+header-y += dtrace/
+
 genhdr-y += version.h
 
 ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/uapi/asm/a.out.h \
diff --git a/include/uapi/linux/dtrace/Kbuild b/include/uapi/linux/dtrace/Kbuild
new file mode 100644 (file)
index 0000000..0cb5b94
--- /dev/null
@@ -0,0 +1,35 @@
+# UAPI Header export list
+header-y += actions_defines.h
+header-y += actions.h
+header-y += arg_defines.h
+header-y += arg.h
+header-y += buffer_defines.h
+header-y += buffer.h
+header-y += conf_defines.h
+header-y += conf.h
+header-y += cpu_defines.h
+header-y += dif_defines.h
+header-y += dif.h
+header-y += difo_defines.h
+header-y += difo.h
+header-y += dof_defines.h
+header-y += dof.h
+header-y += dtrace.h
+header-y += enabling_defines.h
+header-y += enabling.h
+header-y += fasttrap_defines.h
+header-y += fasttrap.h
+header-y += fasttrap_ioctl.h
+header-y += faults_defines.h
+header-y += faults.h
+header-y += helpers_defines.h
+header-y += helpers.h
+header-y += ioctl.h
+header-y += metadesc_defines.h
+header-y += metadesc.h
+header-y += options_defines.h
+header-y += options.h
+header-y += stability_defines.h
+header-y += stability.h
+header-y += status.h
+header-y += universal.h
diff --git a/include/uapi/linux/dtrace/actions.h b/include/uapi/linux/dtrace/actions.h
new file mode 100644 (file)
index 0000000..51edbc7
--- /dev/null
@@ -0,0 +1,13 @@
+/*
+ * Licensed under the Universal Permissive License v 1.0 as shown at
+ * http://oss.oracle.com/licenses/upl.
+ *
+ * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
+ */
+
+#ifndef _LINUX_DTRACE_ACTIONS_H
+#define _LINUX_DTRACE_ACTIONS_H
+
+#include <linux/dtrace/actions_defines.h>
+
+#endif /* _LINUX_DTRACE_ACTIONS_H */
similarity index 84%
rename from dtrace/include/uapi/linux/dtrace/actions_defines.h
rename to include/uapi/linux/dtrace/actions_defines.h
index 05a5e28518be8435dcdb60b5f706b90aa08f0d36..8a943bfcb7c2371439ad9603b889019d7aa86554 100644 (file)
@@ -1,36 +1,17 @@
-#ifndef _LINUX_DTRACE_ACTIONS_DEFINES_H
-#define _LINUX_DTRACE_ACTIONS_DEFINES_H
+/*
+ * Licensed under the Universal Permissive License v 1.0 as shown at
+ * http://oss.oracle.com/licenses/upl.
+ *
+ * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
+ */
 
-/* 
- * DTrace Dynamic Tracing Software: DTrace Actions defines
- * 
+/*
  * Note: The contents of this file are private to the implementation of the
  * DTrace subsystem and are subject to change at any time without notice.
  */
 
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2009 -- 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
+#ifndef _LINUX_DTRACE_ACTIONS_DEFINES_H
+#define _LINUX_DTRACE_ACTIONS_DEFINES_H
 
 #include <linux/dtrace/universal.h>
 
similarity index 59%
rename from dtrace/include/uapi/linux/dtrace/arg.h
rename to include/uapi/linux/dtrace/arg.h
index 1ee5fc4f01e4a94b2d9095a17a0e79f5310659de..fdc959b8ea5678666e5cf4f866757ab1afae882d 100644 (file)
@@ -1,36 +1,17 @@
-#ifndef _LINUX_DTRACE_ARG_H
-#define _LINUX_DTRACE_ARG_H
+/*
+ * Licensed under the Universal Permissive License v 1.0 as shown at
+ * http://oss.oracle.com/licenses/upl.
+ *
+ * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
+ */
 
-/* 
- * DTrace Dynamic Tracing Software: DTrace Argument Types
- * 
+/*
  * Note: The contents of this file are private to the implementation of the
  * DTrace subsystem and are subject to change at any time without notice.
  */
 
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2009 -- 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
+#ifndef _LINUX_DTRACE_ARG_H
+#define _LINUX_DTRACE_ARG_H
 
 #include <linux/dtrace/universal.h>
 #include <linux/dtrace/arg_defines.h>
diff --git a/include/uapi/linux/dtrace/arg_defines.h b/include/uapi/linux/dtrace/arg_defines.h
new file mode 100644 (file)
index 0000000..c8eab9d
--- /dev/null
@@ -0,0 +1,20 @@
+/*
+ * Licensed under the Universal Permissive License v 1.0 as shown at
+ * http://oss.oracle.com/licenses/upl.
+ *
+ * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
+ */
+
+/*
+ * Note: The contents of this file are private to the implementation of the
+ * DTrace subsystem and are subject to change at any time without notice.
+ */
+
+#ifndef _LINUX_DTRACE_ARG_DEFINES_H
+#define _LINUX_DTRACE_ARG_DEFINES_H
+
+#include <linux/dtrace/universal.h>
+
+struct dtrace_argdesc;
+
+#endif /* _LINUX_DTRACE_ARG_DEFINES_H */
similarity index 61%
rename from dtrace/include/uapi/linux/dtrace/buffer.h
rename to include/uapi/linux/dtrace/buffer.h
index d00cced2cc4d0bd9a1ea3cb32cc0a0c7447cf111..31a8a12df96827d95c322cfe938e7178b7d8ac38 100644 (file)
@@ -1,36 +1,17 @@
-#ifndef _LINUX_DTRACE_BUFFER_H
-#define _LINUX_DTRACE_BUFFER_H
+/*
+ * Licensed under the Universal Permissive License v 1.0 as shown at
+ * http://oss.oracle.com/licenses/upl.
+ *
+ * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
+ */
 
-/* 
- * DTrace Dynamic Tracing Software: DTrace Buffer Interface
- * 
+/*
  * Note: The contents of this file are private to the implementation of the
  * DTrace subsystem and are subject to change at any time without notice.
  */
 
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2009 -- 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
+#ifndef _LINUX_DTRACE_BUFFER_H
+#define _LINUX_DTRACE_BUFFER_H
 
 #include <linux/dtrace/universal.h>
 #include <linux/dtrace/actions_defines.h>
diff --git a/include/uapi/linux/dtrace/buffer_defines.h b/include/uapi/linux/dtrace/buffer_defines.h
new file mode 100644 (file)
index 0000000..136190d
--- /dev/null
@@ -0,0 +1,20 @@
+/*
+ * Licensed under the Universal Permissive License v 1.0 as shown at
+ * http://oss.oracle.com/licenses/upl.
+ *
+ * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
+ */
+
+/*
+ * Note: The contents of this file are private to the implementation of the
+ * DTrace subsystem and are subject to change at any time without notice.
+ */
+
+#ifndef _LINUX_DTRACE_BUFFER_DEFINES_H
+#define _LINUX_DTRACE_BUFFER_DEFINES_H
+
+#include <linux/dtrace/universal.h>
+
+struct dtrace_bufdesc;
+
+#endif /* _LINUX_DTRACE_BUFFER_DEFINES_H */
diff --git a/include/uapi/linux/dtrace/conf.h b/include/uapi/linux/dtrace/conf.h
new file mode 100644 (file)
index 0000000..1a6cc9f
--- /dev/null
@@ -0,0 +1,34 @@
+/*
+ * Licensed under the Universal Permissive License v 1.0 as shown at
+ * http://oss.oracle.com/licenses/upl.
+ *
+ * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
+ */
+
+/*
+ * Note: The contents of this file are private to the implementation of the
+ * DTrace subsystem and are subject to change at any time without notice.
+ */
+
+#ifndef _LINUX_DTRACE_CONF_H
+#define _LINUX_DTRACE_CONF_H
+
+#include <linux/dtrace/universal.h>
+#include <linux/dtrace/conf_defines.h>
+
+/*
+ * User-level may need to understand some elements of the kernel DTrace
+ * configuration in order to generate correct DIF.  This information is
+ * conveyed via the dtrace_conf structure.
+ */
+typedef struct dtrace_conf {
+       uint_t dtc_difversion;                  /* supported DIF version */
+       uint_t dtc_difintregs;                  /* # of DIF integer registers */
+       uint_t dtc_diftupregs;                  /* # of DIF tuple registers */
+       uint_t dtc_ctfmodel;                    /* CTF data model */
+       /* Deviation from Solaris...  Used to just be 8 padding entries. */
+       uint_t dtc_maxbufs;                     /* max # of buffers */
+       uint_t dtc_pad[7];                      /* reserved for future use */
+} dtrace_conf_t;
+
+#endif /* _LINUX_DTRACE_CONF_H */
diff --git a/include/uapi/linux/dtrace/conf_defines.h b/include/uapi/linux/dtrace/conf_defines.h
new file mode 100644 (file)
index 0000000..18c525b
--- /dev/null
@@ -0,0 +1,20 @@
+/*
+ * Licensed under the Universal Permissive License v 1.0 as shown at
+ * http://oss.oracle.com/licenses/upl.
+ *
+ * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
+ */
+
+/*
+ * Note: The contents of this file are private to the implementation of the
+ * DTrace subsystem and are subject to change at any time without notice.
+ */
+
+#ifndef _LINUX_DTRACE_CONF_DEFINES_H
+#define _LINUX_DTRACE_CONF_DEFINES_H
+
+#include <linux/dtrace/universal.h>
+
+struct dtrace_conf;
+
+#endif /* _LINUX_DTRACE_CONF_DEFINES_H */
diff --git a/include/uapi/linux/dtrace/cpu_defines.h b/include/uapi/linux/dtrace/cpu_defines.h
new file mode 100644 (file)
index 0000000..1a4d421
--- /dev/null
@@ -0,0 +1,16 @@
+/*
+ * Licensed under the Universal Permissive License v 1.0 as shown at
+ * http://oss.oracle.com/licenses/upl.
+ *
+ * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
+ */
+
+#ifndef _LINUX_DTRACE_CPU_DEFINES_H_
+#define _LINUX_DTRACE_CPU_DEFINES_H_
+
+typedef uint32_t       processorid_t;
+typedef uint32_t       psetid_t;
+typedef uint32_t       chipid_t;
+typedef uint32_t       lgrp_id_t;
+
+#endif /* _LINUX_DTRACE_CPU_DEFINES_H_ */
similarity index 63%
rename from dtrace/include/uapi/linux/dtrace/dif.h
rename to include/uapi/linux/dtrace/dif.h
index 80c115699dc0988681f46593d139cf43aa016c8e..e04f498c3c5441a3c05936c9d78ba8426225954b 100644 (file)
@@ -1,36 +1,17 @@
-#ifndef _LINUX_DTRACE_DIF_H
-#define _LINUX_DTRACE_DIF_H
+/*
+ * Licensed under the Universal Permissive License v 1.0 as shown at
+ * http://oss.oracle.com/licenses/upl.
+ *
+ * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
+ */
 
-/* 
- * DTrace Dynamic Tracing Software: DTrace Intermediate Format (DIF)
- * 
+/*
  * Note: The contents of this file are private to the implementation of the
  * DTrace subsystem and are subject to change at any time without notice.
  */
 
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2009 -- 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
+#ifndef _LINUX_DTRACE_DIF_H
+#define _LINUX_DTRACE_DIF_H
 
 #include <linux/dtrace/universal.h>
 #include <linux/dtrace/dif_defines.h>
similarity index 91%
rename from dtrace/include/uapi/linux/dtrace/dif_defines.h
rename to include/uapi/linux/dtrace/dif_defines.h
index ea77988b788ef470262c16de25931c540b1daac9..6538a352e81f872b80517ddecc0a35653878f709 100644 (file)
@@ -1,36 +1,17 @@
-#ifndef _LINUX_DTRACE_DIF_DEFINES_H
-#define _LINUX_DTRACE_DIF_DEFINES_H
+/*
+ * Licensed under the Universal Permissive License v 1.0 as shown at
+ * http://oss.oracle.com/licenses/upl.
+ *
+ * Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved.
+ */
 
-/* 
- * DTrace Dynamic Tracing Software: DTrace Intermediate Format (DIF) defines
- * 
+/*
  * Note: The contents of this file are private to the implementation of the
  * DTrace subsystem and are subject to change at any time without notice.
  */
 
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2009 -- 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
+#ifndef _LINUX_DTRACE_DIF_DEFINES_H
+#define _LINUX_DTRACE_DIF_DEFINES_H
 
 #include <linux/dtrace/universal.h>
 
similarity index 68%
rename from dtrace/include/uapi/linux/dtrace/difo.h
rename to include/uapi/linux/dtrace/difo.h
index 10922263f8f2a561390f8ec445effe1f73d3a3e5..d2c1144fbda2f31d199d074931552f7a79da4b8a 100644 (file)
@@ -1,36 +1,17 @@
-#ifndef _LINUX_DTRACE_DIFO_H
-#define _LINUX_DTRACE_DIFO_H
+/*
+ * Licensed under the Universal Permissive License v 1.0 as shown at
+ * http://oss.oracle.com/licenses/upl.
+ *
+ * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
+ */
 
-/* 
- * DTrace Dynamic Tracing Software: DTrace Intermediate Format Object (DIFO)
- * 
+/*
  * Note: The contents of this file are private to the implementation of the
  * DTrace subsystem and are subject to change at any time without notice.
  */
 
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2009 -- 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
+#ifndef _LINUX_DTRACE_DIFO_H
+#define _LINUX_DTRACE_DIFO_H
 
 #include <linux/dtrace/universal.h>
 #include <linux/dtrace/dif.h>
diff --git a/include/uapi/linux/dtrace/difo_defines.h b/include/uapi/linux/dtrace/difo_defines.h
new file mode 100644 (file)
index 0000000..3e95590
--- /dev/null
@@ -0,0 +1,20 @@
+/*
+ * Licensed under the Universal Permissive License v 1.0 as shown at
+ * http://oss.oracle.com/licenses/upl.
+ *
+ * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
+ */
+
+/*
+ * Note: The contents of this file are private to the implementation of the
+ * DTrace subsystem and are subject to change at any time without notice.
+ */
+
+#ifndef _LINUX_DTRACE_DIFO_DEFINES_H
+#define _LINUX_DTRACE_DIFO_DEFINES_H
+
+#include <linux/dtrace/universal.h>
+
+struct dtrace_difo;
+
+#endif /* _LINUX_DTRACE_DIFO_DEFINES_H */
similarity index 90%
rename from dtrace/include/uapi/linux/dtrace/dof.h
rename to include/uapi/linux/dtrace/dof.h
index e6521891d90e9d438f740b91ef02b57fb34fd473..e5dce0b18566156035708df8296ec097bc5ec161 100644 (file)
@@ -1,36 +1,17 @@
-#ifndef _LINUX_DTRACE_DOF_H
-#define _LINUX_DTRACE_DOF_H
+/*
+ * Licensed under the Universal Permissive License v 1.0 as shown at
+ * http://oss.oracle.com/licenses/upl.
+ *
+ * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
+ */
 
-/* 
- * DTrace Dynamic Tracing Software: DTrace Object Format (DOF)
- * 
+/*
  * Note: The contents of this file are private to the implementation of the
  * DTrace subsystem and are subject to change at any time without notice.
  */
 
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2009 -- 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
+#ifndef _LINUX_DTRACE_DOF_H
+#define _LINUX_DTRACE_DOF_H
 
 #include <linux/dtrace/universal.h>
 #include <linux/dtrace/dif.h>
similarity index 88%
rename from dtrace/include/uapi/linux/dtrace/dof_defines.h
rename to include/uapi/linux/dtrace/dof_defines.h
index 68d7e69f7dc7f58ed828e55315beb350f5fe3e5b..15a508af6d01d57f6d414e389e4fbb88eaa76f97 100644 (file)
@@ -1,36 +1,17 @@
-#ifndef _LINUX_DTRACE_DOF_DEFINES_H
-#define _LINUX_DTRACE_DOF_DEFINES_H
+/*
+ * Licensed under the Universal Permissive License v 1.0 as shown at
+ * http://oss.oracle.com/licenses/upl.
+ *
+ * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
+ */
 
-/* 
- * DTrace Dynamic Tracing Software: DTrace Object Format (DOF) defines
- * 
+/*
  * Note: The contents of this file are private to the implementation of the
  * DTrace subsystem and are subject to change at any time without notice.
  */
 
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2009 -- 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
+#ifndef _LINUX_DTRACE_DOF_DEFINES_H
+#define _LINUX_DTRACE_DOF_DEFINES_H
 
 #include <linux/dtrace/universal.h>
 
diff --git a/include/uapi/linux/dtrace/dtrace.h b/include/uapi/linux/dtrace/dtrace.h
new file mode 100644 (file)
index 0000000..09d33e5
--- /dev/null
@@ -0,0 +1,32 @@
+/*
+ * Licensed under the Universal Permissive License v 1.0 as shown at
+ * http://oss.oracle.com/licenses/upl.
+ *
+ * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
+ */
+
+/*
+ * Note: The contents of this file are private to the implementation of the
+ * DTrace subsystem and are subject to change at any time without notice.
+ */
+
+#ifndef _LINUX_DTRACE_H_
+#define _LINUX_DTRACE_H_
+
+#include <linux/dtrace/universal.h>
+#include <linux/dtrace/dif.h>
+#include <linux/dtrace/actions.h>
+#include <linux/dtrace/dof.h>
+#include <linux/dtrace/difo.h>
+#include <linux/dtrace/enabling.h>
+#include <linux/dtrace/metadesc.h>
+#include <linux/dtrace/options.h>
+#include <linux/dtrace/buffer.h>
+#include <linux/dtrace/status.h>
+#include <linux/dtrace/conf.h>
+#include <linux/dtrace/faults.h>
+#include <linux/dtrace/arg.h>
+#include <linux/dtrace/stability.h>
+#include <linux/dtrace/helpers.h>
+
+#endif /* _LINUX_DTRACE_H_ */
similarity index 73%
rename from dtrace/include/uapi/linux/dtrace/enabling.h
rename to include/uapi/linux/dtrace/enabling.h
index 44c00688409c76c737c72ad990e3e65bda5e98ad..13d0e727b57c369979e9fb77ed985386c89a47a3 100644 (file)
@@ -1,36 +1,17 @@
-#ifndef _LINUX_DTRACE_ENABLING_H
-#define _LINUX_DTRACE_ENABLING_H
+/*
+ * Licensed under the Universal Permissive License v 1.0 as shown at
+ * http://oss.oracle.com/licenses/upl.
+ *
+ * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
+ */
 
-/* 
- * DTrace Dynamic Tracing Software: DTrace Enabling Description Structures
- * 
+/*
  * Note: The contents of this file are private to the implementation of the
  * DTrace subsystem and are subject to change at any time without notice.
  */
 
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2009 -- 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
+#ifndef _LINUX_DTRACE_ENABLING_H
+#define _LINUX_DTRACE_ENABLING_H
 
 #include <linux/dtrace/universal.h>
 #include <linux/dtrace/difo_defines.h>
diff --git a/include/uapi/linux/dtrace/enabling_defines.h b/include/uapi/linux/dtrace/enabling_defines.h
new file mode 100644 (file)
index 0000000..c8c7f32
--- /dev/null
@@ -0,0 +1,24 @@
+/*
+ * Licensed under the Universal Permissive License v 1.0 as shown at
+ * http://oss.oracle.com/licenses/upl.
+ *
+ * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
+ */
+
+/*
+ * Note: The contents of this file are private to the implementation of the
+ * DTrace subsystem and are subject to change at any time without notice.
+ */
+
+#ifndef _LINUX_DTRACE_ENABLING_DEFINES_H
+#define _LINUX_DTRACE_ENABLING_DEFINES_H
+
+#include <linux/dtrace/universal.h>
+
+struct dtrace_probedesc;
+struct dtrace_repldesc;
+struct dtrace_preddesc;
+struct dtrace_actdesc;
+struct dtrace_ecbdesc;
+
+#endif /* _LINUX_DTRACE_ENABLING_DEFINES_H */
similarity index 55%
rename from dtrace/include/uapi/linux/dtrace/fasttrap.h
rename to include/uapi/linux/dtrace/fasttrap.h
index f707ed3d67e3b65a67c2004d89980a6842b109f6..41a1cd08af7d3e2bdff0c6f823fa3e8e54ea8c27 100644 (file)
@@ -1,36 +1,17 @@
-#ifndef _LINUX_DTRACE_FASTTRAP_H
-#define _LINUX_DTRACE_FASTTRAP_H
+/*
+ * Licensed under the Universal Permissive License v 1.0 as shown at
+ * http://oss.oracle.com/licenses/upl.
+ *
+ * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
+ */
 
-/* 
- * DTrace Dynamic Tracing Software: Fasttrap Provider
- * 
+/*
  * Note: The contents of this file are private to the implementation of the
  * DTrace subsystem and are subject to change at any time without notice.
  */
 
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2009 -- 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
+#ifndef _LINUX_DTRACE_FASTTRAP_H
+#define _LINUX_DTRACE_FASTTRAP_H
 
 #include <linux/dtrace/universal.h>
 #include <linux/dtrace/fasttrap_defines.h>
diff --git a/include/uapi/linux/dtrace/fasttrap_defines.h b/include/uapi/linux/dtrace/fasttrap_defines.h
new file mode 100644 (file)
index 0000000..905a8c2
--- /dev/null
@@ -0,0 +1,22 @@
+/*
+ * Licensed under the Universal Permissive License v 1.0 as shown at
+ * http://oss.oracle.com/licenses/upl.
+ *
+ * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
+ */
+
+/*
+ * Note: The contents of this file are private to the implementation of the
+ * DTrace subsystem and are subject to change at any time without notice.
+ */
+
+#ifndef _LINUX_DTRACE_FASTTRAP_DEFINES_H
+#define _LINUX_DTRACE_FASTTRAP_DEFINES_H
+
+#include <linux/dtrace/universal.h>
+
+enum fasttrap_probe_type;
+struct fasttrap_probe_spec;
+struct fasttrap_instr_query;
+
+#endif /* _LINUX_DTRACE_FASTTRAP_DEFINES_H */
diff --git a/include/uapi/linux/dtrace/fasttrap_ioctl.h b/include/uapi/linux/dtrace/fasttrap_ioctl.h
new file mode 100644 (file)
index 0000000..1308d67
--- /dev/null
@@ -0,0 +1,18 @@
+/*
+ * Licensed under the Universal Permissive License v 1.0 as shown at
+ * http://oss.oracle.com/licenses/upl.
+ *
+ * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
+ */
+
+#ifndef _LINUX_DTRACE_FASTRRAP_IOCTL_H_
+#define _LINUX_DTRACE_FASTTRAP_IOCTL_H_
+
+#include <linux/ioctl.h>
+#include <linux/dtrace/fasttrap.h>
+
+#define FASTTRAPIOC            0xf4
+#define FASTTRAPIOC_MAKEPROBE  _IOW(FASTTRAPIOC, 1, fasttrap_probe_spec_t)
+#define FASTTRAPIOC_GETINSTR   _IOR(FASTTRAPIOC, 2, fasttrap_instr_query_t)
+
+#endif /* _LINUX_DTRACE_FASTTRAP_IOCTL_H_ */
diff --git a/include/uapi/linux/dtrace/faults.h b/include/uapi/linux/dtrace/faults.h
new file mode 100644 (file)
index 0000000..c4e5658
--- /dev/null
@@ -0,0 +1,19 @@
+/*
+ * Licensed under the Universal Permissive License v 1.0 as shown at
+ * http://oss.oracle.com/licenses/upl.
+ *
+ * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
+ */
+
+/*
+ * Note: The contents of this file are private to the implementation of the
+ * DTrace subsystem and are subject to change at any time without notice.
+ */
+
+#ifndef _LINUX_DTRACE_FAULTS_H
+#define _LINUX_DTRACE_FAULTS_H
+
+#include <linux/dtrace/universal.h>
+#include <linux/dtrace/faults_defines.h>
+
+#endif /* _LINUX_DTRACE_FAULTS_H */
similarity index 56%
rename from dtrace/include/uapi/linux/dtrace/faults_defines.h
rename to include/uapi/linux/dtrace/faults_defines.h
index 4531ced2aeb3bcb00e21d460ff8069cfc145b2a6..88f0fc6c7cb09afb7d7cc4f4fe3cf8969c74eaf3 100644 (file)
@@ -1,36 +1,17 @@
-#ifndef _LINUX_DTRACE_FAULTS_DEFINES_H
-#define _LINUX_DTRACE_FAULTS_DEFINES_H
+/*
+ * Licensed under the Universal Permissive License v 1.0 as shown at
+ * http://oss.oracle.com/licenses/upl.
+ *
+ * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
+ */
 
-/* 
- * DTrace Dynamic Tracing Software: DTrace Faults
- * 
+/*
  * Note: The contents of this file are private to the implementation of the
  * DTrace subsystem and are subject to change at any time without notice.
  */
 
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2009 -- 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
+#ifndef _LINUX_DTRACE_FAULTS_DEFINES_H
+#define _LINUX_DTRACE_FAULTS_DEFINES_H
 
 #include <linux/dtrace/universal.h>
 
similarity index 83%
rename from dtrace/include/uapi/linux/dtrace/helpers.h
rename to include/uapi/linux/dtrace/helpers.h
index 5e61b6f8f494ed4aea3e1b5447f339fd510f463f..ee0336a27b40385b9801b38bf4e5acbc83285144 100644 (file)
@@ -1,36 +1,17 @@
-#ifndef _LINUX_DTRACE_HELPERS_H
-#define _LINUX_DTRACE_HELPERS_H
+/*
+ * Licensed under the Universal Permissive License v 1.0 as shown at
+ * http://oss.oracle.com/licenses/upl.
+ *
+ * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
+ */
 
-/* 
- * DTrace Dynamic Tracing Software: DTrace Helpers
- * 
+/*
  * Note: The contents of this file are private to the implementation of the
  * DTrace subsystem and are subject to change at any time without notice.
  */
 
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2009 -- 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
+#ifndef _LINUX_DTRACE_HELPERS_H
+#define _LINUX_DTRACE_HELPERS_H
 
 #include <linux/dtrace/universal.h>
 #include <linux/dtrace/helpers_defines.h>
diff --git a/include/uapi/linux/dtrace/helpers_defines.h b/include/uapi/linux/dtrace/helpers_defines.h
new file mode 100644 (file)
index 0000000..d853e42
--- /dev/null
@@ -0,0 +1,20 @@
+/*
+ * Licensed under the Universal Permissive License v 1.0 as shown at
+ * http://oss.oracle.com/licenses/upl.
+ *
+ * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
+ */
+
+/*
+ * Note: The contents of this file are private to the implementation of the
+ * DTrace subsystem and are subject to change at any time without notice.
+ */
+
+#ifndef _LINUX_DTRACE_HELPERS_DEFINES_H
+#define _LINUX_DTRACE_HELPERS_DEFINES_H
+
+#include <linux/dtrace/universal.h>
+
+struct dof_helper;
+
+#endif /* _LINUX_DTRACE_HELPERS_DEFINES_H */
similarity index 62%
rename from dtrace/include/uapi/linux/dtrace/ioctl.h
rename to include/uapi/linux/dtrace/ioctl.h
index 80f2cf40ea9c8d0b3e60e8af256326f483047d22..481ecb2b245d3b9f7009a398194ed730ade05f9e 100644 (file)
@@ -1,32 +1,13 @@
-/* Copyright (C) 2011, 2012, 2013 Oracle, Inc. */
-
-#ifndef _LINUX_DTRACE_IOCTL_H_
-#define _LINUX_DTRACE_IOCTL_H_
-
 /*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
+ * Licensed under the Universal Permissive License v 1.0 as shown at
+ * http://oss.oracle.com/licenses/upl.
  *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2009 -- 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
  */
 
+#ifndef _LINUX_DTRACE_IOCTL_H_
+#define _LINUX_DTRACE_IOCTL_H_
+
 #include <linux/ioctl.h>
 #include <linux/dtrace/arg.h>
 #include <linux/dtrace/buffer.h>
@@ -37,7 +18,7 @@
 #include <linux/dtrace/metadesc.h>
 #include <linux/dtrace/stability.h>
 #include <linux/dtrace/status.h>
-#include <linux/dtrace_cpu_defines.h>
+#include <linux/dtrace/cpu_defines.h>
 
 #define DTRACEIOC              0xd4
 #define DTRACEIOC_PROVIDER     _IOR(DTRACEIOC, 1, dtrace_providerdesc_t)
similarity index 76%
rename from dtrace/include/uapi/linux/dtrace/metadesc.h
rename to include/uapi/linux/dtrace/metadesc.h
index ce09f865afac4939597910eb87134c118d461530..193b68f22b6af730eacc94f9c65613fc2329d4e5 100644 (file)
@@ -1,36 +1,17 @@
-#ifndef _LINUX_DTRACE_METADESC_H
-#define _LINUX_DTRACE_METADESC_H
+/*
+ * Licensed under the Universal Permissive License v 1.0 as shown at
+ * http://oss.oracle.com/licenses/upl.
+ *
+ * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
+ */
 
-/* 
- * DTrace Dynamic Tracing Software: DTrace Metadata Description Structures
- * 
+/*
  * Note: The contents of this file are private to the implementation of the
  * DTrace subsystem and are subject to change at any time without notice.
  */
 
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2009 -- 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
+#ifndef _LINUX_DTRACE_METADESC_H
+#define _LINUX_DTRACE_METADESC_H
 
 #include <linux/dtrace/universal.h>
 #include <linux/dtrace/actions_defines.h>
diff --git a/include/uapi/linux/dtrace/metadesc_defines.h b/include/uapi/linux/dtrace/metadesc_defines.h
new file mode 100644 (file)
index 0000000..52419cf
--- /dev/null
@@ -0,0 +1,23 @@
+/*
+ * Licensed under the Universal Permissive License v 1.0 as shown at
+ * http://oss.oracle.com/licenses/upl.
+ *
+ * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
+ */
+
+/*
+ * Note: The contents of this file are private to the implementation of the
+ * DTrace subsystem and are subject to change at any time without notice.
+ */
+
+#ifndef _LINUX_DTRACE_METADESC_DEFINES_H
+#define _LINUX_DTRACE_METADESC_DEFINES_H
+
+#include <linux/dtrace/universal.h>
+
+struct dtrace_recdesc;
+struct dtrace_eprobedesc;
+struct dtrace_aggdesc;
+struct dtrace_fmtdesc;
+
+#endif /* _LINUX_DTRACE_METADESC_DEFINES_H */
diff --git a/include/uapi/linux/dtrace/options.h b/include/uapi/linux/dtrace/options.h
new file mode 100644 (file)
index 0000000..5c7db1a
--- /dev/null
@@ -0,0 +1,19 @@
+/*
+ * Licensed under the Universal Permissive License v 1.0 as shown at
+ * http://oss.oracle.com/licenses/upl.
+ *
+ * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
+ */
+
+/*
+ * Note: The contents of this file are private to the implementation of the
+ * DTrace subsystem and are subject to change at any time without notice.
+ */
+
+#ifndef _LINUX_DTRACE_OPTIONS_H
+#define _LINUX_DTRACE_OPTIONS_H
+
+#include <linux/dtrace/universal.h>
+#include <linux/dtrace/options_defines.h>
+
+#endif /* _LINUX_DTRACE_OPTIONS_H */
similarity index 75%
rename from dtrace/include/uapi/linux/dtrace/options_defines.h
rename to include/uapi/linux/dtrace/options_defines.h
index c6c4cd13245ae47f7a8d9a5a76cf8a947dbe2b99..69b93cadf238362b2974db213d0dcf3563b1f593 100644 (file)
@@ -1,36 +1,17 @@
-#ifndef _LINUX_DTRACE_OPTIONS_DEFINES_H
-#define _LINUX_DTRACE_OPTIONS_DEFINES_H
+/*
+ * Licensed under the Universal Permissive License v 1.0 as shown at
+ * http://oss.oracle.com/licenses/upl.
+ *
+ * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
+ */
 
-/* 
- * DTrace Dynamic Tracing Software: DTrace Option Interface defines
- * 
+/*
  * Note: The contents of this file are private to the implementation of the
  * DTrace subsystem and are subject to change at any time without notice.
  */
 
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2009 -- 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
+#ifndef _LINUX_DTRACE_OPTIONS_DEFINES_H
+#define _LINUX_DTRACE_OPTIONS_DEFINES_H
 
 #include <linux/dtrace/universal.h>
 
similarity index 61%
rename from dtrace/include/uapi/linux/dtrace/stability.h
rename to include/uapi/linux/dtrace/stability.h
index 9b9eb142dcc8ec0c1fddb9920b8135f9eb8bf2d7..a9d3a96d7fa9a4f872234997453e1aab82dd16bb 100644 (file)
@@ -1,36 +1,17 @@
-#ifndef _LINUX_DTRACE_STABILITY_H
-#define _LINUX_DTRACE_STABILITY_H
+/*
+ * Licensed under the Universal Permissive License v 1.0 as shown at
+ * http://oss.oracle.com/licenses/upl.
+ *
+ * Copyright (c) 2009, 2015, Oracle and/or its affiliates. All rights reserved.
+ */
 
-/* 
- * DTrace Dynamic Tracing Software: DTrace Stability Attributes
- * 
+/*
  * Note: The contents of this file are private to the implementation of the
  * DTrace subsystem and are subject to change at any time without notice.
  */
 
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2009 -- 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
+#ifndef _LINUX_DTRACE_STABILITY_H
+#define _LINUX_DTRACE_STABILITY_H
 
 #include <linux/dtrace/universal.h>
 #include <linux/dtrace/stability_defines.h>
similarity index 65%
rename from dtrace/include/uapi/linux/dtrace/stability_defines.h
rename to include/uapi/linux/dtrace/stability_defines.h
index 64f0449a9e3c7732086dd8c90ca78d41025d534b..c7b3381f4eae4a2900abd065088924bfaeb90875 100644 (file)
@@ -1,36 +1,17 @@
-#ifndef _LINUX_DTRACE_STABILITY_DEFINES_H
-#define _LINUX_DTRACE_STABILITY_DEFINES_H
+/*
+ * Licensed under the Universal Permissive License v 1.0 as shown at
+ * http://oss.oracle.com/licenses/upl.
+ *
+ * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
+ */
 
-/* 
- * DTrace Dynamic Tracing Software: DTrace Stability Attributes
- * 
+/*
  * Note: The contents of this file are private to the implementation of the
  * DTrace subsystem and are subject to change at any time without notice.
  */
 
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2009 -- 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
+#ifndef _LINUX_DTRACE_STABILITY_DEFINES_H
+#define _LINUX_DTRACE_STABILITY_DEFINES_H
 
 #include <linux/dtrace/universal.h>
 
similarity index 67%
rename from dtrace/include/uapi/linux/dtrace/status.h
rename to include/uapi/linux/dtrace/status.h
index e9f04af7587671379751bae96bcadea11a4a6217..44df7c5bc23ed023c6b83ad899dc0c6908e4708b 100644 (file)
@@ -1,36 +1,17 @@
-#ifndef _LINUX_DTRACE_STATUS_H
-#define _LINUX_DTRACE_STATUS_H
+/*
+ * Licensed under the Universal Permissive License v 1.0 as shown at
+ * http://oss.oracle.com/licenses/upl.
+ *
+ * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
+ */
 
-/* 
- * DTrace Dynamic Tracing Software: DTrace Status
- * 
+/*
  * Note: The contents of this file are private to the implementation of the
  * DTrace subsystem and are subject to change at any time without notice.
  */
 
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2009 -- 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
+#ifndef _LINUX_DTRACE_STATUS_H
+#define _LINUX_DTRACE_STATUS_H
 
 #include <linux/dtrace/universal.h>
 
similarity index 62%
rename from dtrace/include/uapi/linux/dtrace/universal.h
rename to include/uapi/linux/dtrace/universal.h
index 808cdcf931f35f7e48bbb6426310b6ea9b9716a0..59ca59b2072a29e1fa6631104328e11c163ed265 100644 (file)
@@ -1,37 +1,18 @@
-#ifndef _LINUX_DTRACE_UNIVERSAL_H_
-#define _LINUX_DTRACE_UNIVERSAL_H_
-
 /*
- * DTrace Dynamic Tracing Software: Universal Constants and Typedefs
+ * Licensed under the Universal Permissive License v 1.0 as shown at
+ * http://oss.oracle.com/licenses/upl.
  *
- * Note: The contents of this file are private to the implementation of the
- * DTrace subsystem and are subject to change at any time without notice.
+ * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
  */
 
 /*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- * Copyright 2009 -- 2013 Oracle, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * Note: The contents of this file are private to the implementation of the
+ * DTrace subsystem and are subject to change at any time without notice.
  */
 
+#ifndef _LINUX_DTRACE_UNIVERSAL_H_
+#define _LINUX_DTRACE_UNIVERSAL_H_
+
 #define        DTRACE_CPUALL           -1      /* all CPUs */
 #define        DTRACE_IDNONE           0       /* invalid probe identifier */
 #define        DTRACE_EPIDNONE         0       /* invalid enabled probe identifier */
index 692258af194c28b633cfe9cc8d391c53b46f277f..9aa936eaedb2b9f47b83d1472dd47bcb3eb79abc 100644 (file)
@@ -2,7 +2,7 @@ config CTF
        bool "Compact Type Format generation"
        default n
        select STRIP_ASM_SYMS
-       depends on DEBUG_INFO && !DEBUG_INFO_REDUCED && !DEBUG_INFO_SPLIT && !DEBUG_INFO_DWARF4 && !DT_DISABLE_CTF
+       depends on DEBUG_INFO && !DEBUG_INFO_REDUCED && !DEBUG_INFO_SPLIT && !DEBUG_INFO_DWARF4 && !DT_DISABLE_CTF && DTRACE
        help
          Emit a compact, compressed description of the kernel's datatypes and
          global variables into .ctf sections in kernel modules.  A module
index 60ec8fcd6c1656e6a1e6475f749e6b235e8a22e3..6f41b2dfbf8774b6f1a58630ec8e73f054129a2e 100644 (file)
@@ -1,6 +1,5 @@
 #
-# DTrace Configuration
-# Copyright (C) 2010, 2011, 2012 Oracle Corporation
+# Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
 #
 
 menuconfig DTRACE
index 066bbace957238a4dc64a004aa3f08b2db61d675..a0aeb236a424048c8378c43b96844cd2cdb19c24 100644 (file)
@@ -1,5 +1,5 @@
 #
-# Makefile for DTrace
+# Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
 #
 
 GCOV_PROFILE := y
index 99b23ccf22a5eac21414fabba4be3ad0b21cac50..953245b6ee67f827738099774291f235de041d94 100644 (file)
@@ -3,6 +3,16 @@
  * DESCRIPTION:        Minimal cyclic implementation
  *
  * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/cpu.h>
index 09a05c7d863024965c3c08c50629ee57cbdcd1ea..5187e2909c27bb8565d4f4019ea17f0f8da0f775 100644 (file)
@@ -1,8 +1,18 @@
 /*
  * FILE:       dtrace_cpu.c
- * DESCRIPTION:        Dynamic Tracing: CPU info - part of kernel core
+ * DESCRIPTION:        DTrce - per-CPU state
  *
- * Copyright (C) 2010, 2011 Oracle Corporation
+ * Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/dtrace_cpu.h>
index 3b2ca4432dc5c5eea1452466276fb4499a6768bc..4d4d9c29349291e97eb4736f7c47f81f455de556 100644 (file)
@@ -1,8 +1,18 @@
 /*
  * FILE:        dtrace_fbt_core.c
- * DESCRIPTION: Dynamic Tracing: FBT common code
+ * DESCRIPTION: DTrace - FBT common code
  *
- * Copyright (C) 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/kernel.h>
index 547c6ad8c1b892e5091df99c5ea5a653c4e8d76e..c6962922b8e759c55e51ce84af51af1c76906774 100644 (file)
@@ -1,8 +1,18 @@
 /*
  * FILE:       dtrace_os.c
- * DESCRIPTION:        Dynamic Tracing: OS support functions - part of kernel core
+ * DESCRIPTION:        DTrace - OS support functions
  *
  * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/binfmts.h>
index e80bd6352d1c9faae7fad9c181f85180bc5cc9fd..28fbab2cd6555b65c9a35ebc15f84e0289b472c9 100644 (file)
@@ -1,8 +1,18 @@
 /*
  * FILE:        dtrace_sdt_core.c
- * DESCRIPTION: Dynamic Tracing: SDT probe point registration
+ * DESCRIPTION: DTrace - SDT probes
  *
- * Copyright (C) 2010-2016 Oracle Corporation
+ * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include <linux/kernel.h>
index d9ab94b17de0bc119a6fbf3958886d1735085fdf..7fff59c5f93f02836a2c0511022793718847569c 100755 (executable)
@@ -21,6 +21,13 @@ if [ "`grep CONFIG_DRM=y .config | cut -f2 -d\=`" = "y" ]; then
        PROVIDES=kernel-drm
 fi
 
+#
+if [ "`grep CONFIG_CTF=y .config | cut -f2 -d\=`" = "y" ]; then
+       CTF=true
+else
+       CTF=false
+fi
+
 PROVIDES="$PROVIDES kernel-$KERNELRELEASE"
 __KERNELRELEASE=`echo $KERNELRELEASE | sed -e "s/-/_/g"`
 
@@ -40,6 +47,12 @@ echo "Source: kernel-$__KERNELRELEASE.tar.gz"
 fi
 
 echo "BuildRoot: %{_tmppath}/%{name}-%{PACKAGE_VERSION}-root"
+
+if $CTF; then
+echo "BuildRequires: libdtrace-ctf >= 0.5.0"
+echo "BuildRequires: libdtrace-ctf-devel >= 0.5.0"
+fi
+
 echo "Provides: $PROVIDES"
 echo "%define __spec_install_post /usr/lib/rpm/brp-compress || :"
 echo "%define debug_package %{nil}"
@@ -66,6 +79,11 @@ echo "AutoReqProv: no"
 echo "%description -n kernel-devel"
 echo "This package provides kernel headers and makefiles sufficient to build modules"
 echo "against the $__KERNELRELEASE kernel package."
+
+if $CTF; then
+echo "Requires: libdtrace-ctf >= 0.5.0"
+fi
+
 echo ""
 
 if ! $PREBUILT; then
@@ -152,6 +170,7 @@ echo ""
 echo "%files headers"
 echo '%defattr (-, root, root)'
 echo "/usr/include"
+echo "%exclude /usr/include/linux/dtrace"
 echo ""
 if ! $PREBUILT; then
 echo "%files devel"