lockdep trace: don't build probe if !CONFIG_LOCKDEP
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Thu, 17 Mar 2011 13:09:10 +0000 (09:09 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Thu, 17 Mar 2011 13:09:10 +0000 (09:09 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
probes/Makefile

index bb3aca7aeece8f8f9756abd1902aee4c127a3e22..c6f762b5d102d41a447900c85b055d211bb85984 100644 (file)
@@ -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
This page took 0.027536 seconds and 4 git commands to generate.