Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Dmitry Vyukov | 5c9a875 | 2016-03-22 14:27:30 -0700 | [diff] [blame] | 2 | # Any varying coverage in these files is non-deterministic |
| 3 | # and is generally not a function of system call inputs. |
| 4 | KCOV_INSTRUMENT := n |
Peter Zijlstra | 01768b4 | 2013-10-31 18:11:53 +0100 | [diff] [blame] | 5 | |
Waiman Long | 390a0c6 | 2019-03-22 10:30:07 -0400 | [diff] [blame] | 6 | obj-y += mutex.o semaphore.o rwsem.o percpu-rwsem.o rwsem-xadd.o |
Peter Zijlstra | 01768b4 | 2013-10-31 18:11:53 +0100 | [diff] [blame] | 7 | |
| 8 | ifdef CONFIG_FUNCTION_TRACER |
Heiko Carstens | c0a80c0 | 2015-01-09 13:06:33 +0100 | [diff] [blame] | 9 | CFLAGS_REMOVE_lockdep.o = $(CC_FLAGS_FTRACE) |
| 10 | CFLAGS_REMOVE_lockdep_proc.o = $(CC_FLAGS_FTRACE) |
| 11 | CFLAGS_REMOVE_mutex-debug.o = $(CC_FLAGS_FTRACE) |
| 12 | CFLAGS_REMOVE_rtmutex-debug.o = $(CC_FLAGS_FTRACE) |
Peter Zijlstra | 01768b4 | 2013-10-31 18:11:53 +0100 | [diff] [blame] | 13 | endif |
| 14 | |
| 15 | obj-$(CONFIG_DEBUG_MUTEXES) += mutex-debug.o |
Peter Zijlstra | 8eddac3 | 2013-10-31 18:14:17 +0100 | [diff] [blame] | 16 | obj-$(CONFIG_LOCKDEP) += lockdep.o |
| 17 | ifeq ($(CONFIG_PROC_FS),y) |
| 18 | obj-$(CONFIG_LOCKDEP) += lockdep_proc.o |
| 19 | endif |
Peter Zijlstra | 60fc287 | 2013-10-31 18:15:36 +0100 | [diff] [blame] | 20 | obj-$(CONFIG_SMP) += spinlock.o |
Davidlohr Bueso | d84b672 | 2015-01-06 11:45:07 -0800 | [diff] [blame] | 21 | obj-$(CONFIG_LOCK_SPIN_ON_OWNER) += osq_lock.o |
Peter Zijlstra | 60fc287 | 2013-10-31 18:15:36 +0100 | [diff] [blame] | 22 | obj-$(CONFIG_PROVE_LOCKING) += spinlock.o |
Ingo Molnar | 62c7a1e | 2015-05-11 09:47:23 +0200 | [diff] [blame] | 23 | obj-$(CONFIG_QUEUED_SPINLOCKS) += qspinlock.o |
Peter Zijlstra | 1696a8b | 2013-10-31 18:18:19 +0100 | [diff] [blame] | 24 | obj-$(CONFIG_RT_MUTEXES) += rtmutex.o |
| 25 | obj-$(CONFIG_DEBUG_RT_MUTEXES) += rtmutex-debug.o |
Peter Zijlstra | 60fc287 | 2013-10-31 18:15:36 +0100 | [diff] [blame] | 26 | obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock.o |
| 27 | obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock_debug.o |
Waiman Long | c7114b4 | 2015-05-11 13:57:11 -0400 | [diff] [blame] | 28 | obj-$(CONFIG_QUEUED_RWLOCKS) += qrwlock.o |
Paul E. McKenney | 0af3fe1 | 2014-02-04 15:51:41 -0800 | [diff] [blame] | 29 | obj-$(CONFIG_LOCK_TORTURE_TEST) += locktorture.o |
Chris Wilson | f2a5fec | 2016-12-01 11:47:06 +0000 | [diff] [blame] | 30 | obj-$(CONFIG_WW_MUTEX_SELFTEST) += test-ww_mutex.o |
Waiman Long | fb346fd | 2019-04-04 13:43:17 -0400 | [diff] [blame] | 31 | obj-$(CONFIG_LOCK_EVENT_COUNTS) += lock_events.o |