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
return rc;
}
-#if defined(CONFIG_CTF)
- ctf_forceload();
-#endif
-
mutex_lock(&cpu_lock);
mutex_lock(&dtrace_provider_lock);
mutex_lock(&dtrace_lock);
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
+++ /dev/null
-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.
+++ /dev/null
-#
-# Makefile for Compact Type Format storage
-#
-
-ifdef CONFIG_CTF
-obj-m += ctf.o
-endif
+++ /dev/null
-/*
- * 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);
select KALLSYMS
select KALLMODSYMS
select WAITFD
- select CTF if (!DT_DISABLE_CTF)
+ select CTF
help
The DTrace dynamic tracing framework.
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
#
# 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