blob: 6d11cfb9b41f28ebab4cc0b980a7a42b7c3b358c [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 Long5dec94d2019-05-20 16:59:03 -04006obj-y += mutex.o semaphore.o rwsem.o percpu-rwsem.o
Peter Zijlstra01768b42013-10-31 18:11:53 +01007
Marco Elverf1bc9622020-01-15 17:25:12 +01008# Avoid recursion lockdep -> KCSAN -> ... -> lockdep.
9KCSAN_SANITIZE_lockdep.o := n
10
Peter Zijlstra01768b42013-10-31 18:11:53 +010011ifdef CONFIG_FUNCTION_TRACER
Heiko Carstensc0a80c02015-01-09 13:06:33 +010012CFLAGS_REMOVE_lockdep.o = $(CC_FLAGS_FTRACE)
13CFLAGS_REMOVE_lockdep_proc.o = $(CC_FLAGS_FTRACE)
14CFLAGS_REMOVE_mutex-debug.o = $(CC_FLAGS_FTRACE)
15CFLAGS_REMOVE_rtmutex-debug.o = $(CC_FLAGS_FTRACE)
Peter Zijlstra01768b42013-10-31 18:11:53 +010016endif
17
18obj-$(CONFIG_DEBUG_MUTEXES) += mutex-debug.o
Peter Zijlstra8eddac32013-10-31 18:14:17 +010019obj-$(CONFIG_LOCKDEP) += lockdep.o
20ifeq ($(CONFIG_PROC_FS),y)
21obj-$(CONFIG_LOCKDEP) += lockdep_proc.o
22endif
Peter Zijlstra60fc2872013-10-31 18:15:36 +010023obj-$(CONFIG_SMP) += spinlock.o
Davidlohr Buesod84b6722015-01-06 11:45:07 -080024obj-$(CONFIG_LOCK_SPIN_ON_OWNER) += osq_lock.o
Peter Zijlstra60fc2872013-10-31 18:15:36 +010025obj-$(CONFIG_PROVE_LOCKING) += spinlock.o
Ingo Molnar62c7a1e2015-05-11 09:47:23 +020026obj-$(CONFIG_QUEUED_SPINLOCKS) += qspinlock.o
Peter Zijlstra1696a8b2013-10-31 18:18:19 +010027obj-$(CONFIG_RT_MUTEXES) += rtmutex.o
28obj-$(CONFIG_DEBUG_RT_MUTEXES) += rtmutex-debug.o
Peter Zijlstra60fc2872013-10-31 18:15:36 +010029obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock.o
30obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock_debug.o
Waiman Longc7114b42015-05-11 13:57:11 -040031obj-$(CONFIG_QUEUED_RWLOCKS) += qrwlock.o
Paul E. McKenney0af3fe12014-02-04 15:51:41 -080032obj-$(CONFIG_LOCK_TORTURE_TEST) += locktorture.o
Chris Wilsonf2a5fec2016-12-01 11:47:06 +000033obj-$(CONFIG_WW_MUTEX_SELFTEST) += test-ww_mutex.o
Waiman Longfb346fd2019-04-04 13:43:17 -040034obj-$(CONFIG_LOCK_EVENT_COUNTS) += lock_events.o