blob: 6fe2f333aecb5a541eb0f78b21263316974161e5 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Dmitry Vyukov5c9a8752016-03-22 14:27:30 -07002# Any varying coverage in these files is non-deterministic
3# and is generally not a function of system call inputs.
4KCOV_INSTRUMENT := n
Peter Zijlstra01768b42013-10-31 18:11:53 +01005
Waiman Long390a0c62019-03-22 10:30:07 -04006obj-y += mutex.o semaphore.o rwsem.o percpu-rwsem.o rwsem-xadd.o
Peter Zijlstra01768b42013-10-31 18:11:53 +01007
8ifdef CONFIG_FUNCTION_TRACER
Heiko Carstensc0a80c02015-01-09 13:06:33 +01009CFLAGS_REMOVE_lockdep.o = $(CC_FLAGS_FTRACE)
10CFLAGS_REMOVE_lockdep_proc.o = $(CC_FLAGS_FTRACE)
11CFLAGS_REMOVE_mutex-debug.o = $(CC_FLAGS_FTRACE)
12CFLAGS_REMOVE_rtmutex-debug.o = $(CC_FLAGS_FTRACE)
Peter Zijlstra01768b42013-10-31 18:11:53 +010013endif
14
15obj-$(CONFIG_DEBUG_MUTEXES) += mutex-debug.o
Peter Zijlstra8eddac32013-10-31 18:14:17 +010016obj-$(CONFIG_LOCKDEP) += lockdep.o
17ifeq ($(CONFIG_PROC_FS),y)
18obj-$(CONFIG_LOCKDEP) += lockdep_proc.o
19endif
Peter Zijlstra60fc2872013-10-31 18:15:36 +010020obj-$(CONFIG_SMP) += spinlock.o
Davidlohr Buesod84b6722015-01-06 11:45:07 -080021obj-$(CONFIG_LOCK_SPIN_ON_OWNER) += osq_lock.o
Peter Zijlstra60fc2872013-10-31 18:15:36 +010022obj-$(CONFIG_PROVE_LOCKING) += spinlock.o
Ingo Molnar62c7a1e2015-05-11 09:47:23 +020023obj-$(CONFIG_QUEUED_SPINLOCKS) += qspinlock.o
Peter Zijlstra1696a8b2013-10-31 18:18:19 +010024obj-$(CONFIG_RT_MUTEXES) += rtmutex.o
25obj-$(CONFIG_DEBUG_RT_MUTEXES) += rtmutex-debug.o
Peter Zijlstra60fc2872013-10-31 18:15:36 +010026obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock.o
27obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock_debug.o
Waiman Longc7114b42015-05-11 13:57:11 -040028obj-$(CONFIG_QUEUED_RWLOCKS) += qrwlock.o
Paul E. McKenney0af3fe12014-02-04 15:51:41 -080029obj-$(CONFIG_LOCK_TORTURE_TEST) += locktorture.o
Chris Wilsonf2a5fec2016-12-01 11:47:06 +000030obj-$(CONFIG_WW_MUTEX_SELFTEST) += test-ww_mutex.o
Waiman Longfb346fd2019-04-04 13:43:17 -040031obj-$(CONFIG_LOCK_EVENT_COUNTS) += lock_events.o