]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ctf: drop CONFIG_DT_DISABLE_CTF, ctf.ko, and all that it implies
authorNick Alcock <nick.alcock@oracle.com>
Tue, 5 Sep 2017 21:25:34 +0000 (22:25 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Tue, 19 Sep 2017 08:33:38 +0000 (09:33 +0100)
Now that CTF is decoupled from the kernel build and built into a
separate archive, there is no longer any need to drag around a
fake ctf.ko module to contain the shared and built-in CTF info.
Drop it, and kernel/ctf/, and the code to autoload it when
dtrace.ko is loaded, and move its Kconfig contents into
lib/Kconfig (which used to include kernel/ctf/Kconfig).

Furthermore, now that CTF is built on demand and not unconditionally
built every time the kernel is, there is no longer any need for
the speedup hack CONFIG_DT_DISABLE_CTF.  Drop it.

Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
Reviewed-by: Tomas Jedlicka <tomas.jedlicka@oracle.com>
Reviewed-by: Victor Erminpour <victor.erminpour@oracle.com>
Orabug: 25815362

dtrace/dtrace_dev.c
kernel/Makefile
kernel/ctf/Kconfig [deleted file]
kernel/ctf/Makefile [deleted file]
kernel/ctf/ctf.c [deleted file]
kernel/dtrace/Kconfig
lib/Kconfig

index 6e918c2573e68ee08788e4904e7b356811dd1cb0..994a46493815ba62c604d1b7c5abd3e2cc0ed0ae 100644 (file)
@@ -1417,10 +1417,6 @@ int dtrace_dev_init(void)
                return rc;
        }
 
-#if defined(CONFIG_CTF)
-       ctf_forceload();
-#endif
-
        mutex_lock(&cpu_lock);
        mutex_lock(&dtrace_provider_lock);
        mutex_lock(&dtrace_lock);
index 70a54501c7a33ed56055388728597ad0ef85f52f..6e6e12873c437de3f51a8cf285a8a32f1fece68c 100644 (file)
@@ -99,7 +99,6 @@ obj-$(CONFIG_JUMP_LABEL) += jump_label.o
 obj-$(CONFIG_CONTEXT_TRACKING) += context_tracking.o
 obj-$(CONFIG_TORTURE_TEST) += torture.o
 obj-$(CONFIG_DTRACE) += dtrace/
-obj-$(CONFIG_CTF) += ctf/
 
 $(obj)/configs.o: $(obj)/config_data.h
 
diff --git a/kernel/ctf/Kconfig b/kernel/ctf/Kconfig
deleted file mode 100644 (file)
index 9aa936e..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-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 && DTRACE
-       help
-         Emit a compact, compressed description of the kernel's datatypes and
-         global variables into .ctf sections in kernel modules.  A module
-         'ctf.ko' is also generated containing type information for built-in
-         modules, the core kernel, and types shared across multiple kernel
-         modules.
diff --git a/kernel/ctf/Makefile b/kernel/ctf/Makefile
deleted file mode 100644 (file)
index bd73c52..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-#
-# Makefile for Compact Type Format storage
-#
-
-ifdef CONFIG_CTF
-obj-m                          += ctf.o
-endif
diff --git a/kernel/ctf/ctf.c b/kernel/ctf/ctf.c
deleted file mode 100644 (file)
index c04812a..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * FILE:       ctf.c
- * DESCRIPTION:        Dynamic Tracing: CTF container module
- *
- * Copyright (C) 2012 Oracle Corporation
- */
-
-#include <linux/module.h>
-
-MODULE_AUTHOR("Nick Alcock <nick.alcock@oracle.com>");
-MODULE_DESCRIPTION("CTF container module, not for modprobing");
-MODULE_VERSION("v0.2");
-MODULE_LICENSE("GPL");
-
-void ctf_forceload(void) {
-       /* nothing doing */
-}
-
-EXPORT_SYMBOL(ctf_forceload);
index 6f41b2dfbf8774b6f1a58630ec8e73f054129a2e..ce77ed14a9c360b3857f443c4dafe4aa27756207 100644 (file)
@@ -10,7 +10,7 @@ menuconfig DTRACE
        select KALLSYMS
        select KALLMODSYMS
        select WAITFD
-       select CTF if (!DT_DISABLE_CTF)
+       select CTF
        help
          The DTrace dynamic tracing framework.
 
@@ -102,15 +102,6 @@ config DT_DEBUG_MUTEX
          messages whenever a mutex is locked or unlocked within the DTrace
          code (core and providers).
 
-config DT_DISABLE_CTF
-       bool "Disable CTF generation"
-       default n
-       help
-         Disables the time-consuming generation of CTF information.  This is
-         quite a time-consuming process and may not always be desirable.
-         (The modules will still contain CTF sections, but they will be
-         empty.)
-
 endif  # DT_DEBUG
 
 endif  # DT_CORE
index 1788f103b47442d62ea6caa75ecf372dd93af419..2b0e1591002b09b9af1bb3c35131784300c114d5 100644 (file)
@@ -507,7 +507,15 @@ config LIBFDT
 #
 # CTF support is select'ed if needed
 #
-source "kernel/ctf/Kconfig"
+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 && DTRACE
+        help
+          Emit a compact, compressed description of the kernel's datatypes and
+          global variables into the vmlinux.ctfa archive (for in-tree modules)
+          or into .ctf sections in kernel modules (for out-of-tree modules).
 
 config OID_REGISTRY
        tristate