From: Mathieu Desnoyers Date: Thu, 17 Mar 2011 13:09:10 +0000 (-0400) Subject: lockdep trace: don't build probe if !CONFIG_LOCKDEP X-Git-Tag: v0.19.9~1 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=be6fbd1868fbdd856e897e8591332d19e7c7da55;p=lttng-modules.git lockdep trace: don't build probe if !CONFIG_LOCKDEP Signed-off-by: Mathieu Desnoyers --- diff --git a/probes/Makefile b/probes/Makefile index bb3aca7a..c6f762b5 100644 --- a/probes/Makefile +++ b/probes/Makefile @@ -5,16 +5,22 @@ CFLAGS_REMOVE_kernel-trace.o = -pg CFLAGS_REMOVE_mm-trace.o = -pg CFLAGS_REMOVE_fs-trace.o = -pg CFLAGS_REMOVE_ipc-trace.o = -pg -CFLAGS_REMOVE_lockdep-trace.o = -pg CFLAGS_REMOVE_rcu-trace.o = -pg CFLAGS_REMOVE_syscall-trace.o = -pg CFLAGS_REMOVE_trap-trace.o = -pg CFLAGS_REMOVE_pm-trace.o = -pg endif -obj-m += kernel-trace.o mm-trace.o fs-trace.o ipc-trace.o lockdep-trace.o \ +obj-m += kernel-trace.o mm-trace.o fs-trace.o ipc-trace.o \ rcu-trace.o syscall-trace.o trap-trace.o pm-trace.o +ifdef CONFIG_LOCKDEP +ifdef CONFIG_FTRACE +CFLAGS_REMOVE_lockdep-trace.o = -pg +endif +obj-m += lockdep-trace.o +endif + ifeq ($(CONFIG_NET),y) ifdef CONFIG_FTRACE CFLAGS_REMOVE_net-trace.o = -pg