ftrace: use the new kbuild CFLAGS_REMOVE for kernel directory
This patch removes the Makefile turd and uses the nice CFLAGS_REMOVE macro in the kernel directory. Signed-off-by: Steven Rostedt <srostedt@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
Родитель
656ee82cc8
Коммит
6ec562328f
|
@ -11,12 +11,16 @@ obj-y = sched.o fork.o exec_domain.o panic.o printk.o profile.o \
|
||||||
hrtimer.o rwsem.o nsproxy.o srcu.o semaphore.o \
|
hrtimer.o rwsem.o nsproxy.o srcu.o semaphore.o \
|
||||||
notifier.o ksysfs.o pm_qos_params.o sched_clock.o
|
notifier.o ksysfs.o pm_qos_params.o sched_clock.o
|
||||||
|
|
||||||
|
CFLAGS_REMOVE_sched.o = -pg -mno-spe
|
||||||
|
|
||||||
ifdef CONFIG_FTRACE
|
ifdef CONFIG_FTRACE
|
||||||
# Do not profile debug utilities
|
# Do not trace debug files and internal ftrace files
|
||||||
ORIG_CFLAGS := $(KBUILD_CFLAGS)
|
CFLAGS_REMOVE_lockdep.o = -pg
|
||||||
KBUILD_CFLAGS = $(if $(filter-out lockdep% %debug,$(basename $(notdir $@))), \
|
CFLAGS_REMOVE_lockdep_proc.o = -pg
|
||||||
$(ORIG_CFLAGS), \
|
CFLAGS_REMOVE_mutex-debug.o = -pg
|
||||||
$(subst -pg,,$(ORIG_CFLAGS)))
|
CFLAGS_REMOVE_rtmutex-debug.o = -pg
|
||||||
|
CFLAGS_REMOVE_cgroup-debug.o = -pg
|
||||||
|
CFLAGS_REMOVE_sched_clock.o = -pg
|
||||||
endif
|
endif
|
||||||
|
|
||||||
obj-$(CONFIG_SYSCTL_SYSCALL_CHECK) += sysctl_check.o
|
obj-$(CONFIG_SYSCTL_SYSCALL_CHECK) += sysctl_check.o
|
||||||
|
|
Загрузка…
Ссылка в новой задаче