[PATCH v2 0/2] locking/lockdep: Disable KASAN instrumentation of lockdep.c

From: Waiman Long
Date: Tue Feb 04 2025 - 20:30:45 EST


It is found that disabling KASAN instrumentation when compiling
lockdep.c can significantly improve the performance of RT debug kernel
while the performance benefit of non-RT debug kernel is relatively
modest.

This series also include a patch to add locking events to the rtmutex
slow paths for better analysis of the different performance behavior
between RT and non-RT debug kernels.

Waiman Long (2):
locking/lock_events: Add locking events for rtmutex slow paths
locking/lockdep: Disable KASAN instrumentation of lockdep.c

kernel/locking/Makefile | 3 ++-
kernel/locking/lock_events_list.h | 21 +++++++++++++++++++++
kernel/locking/rtmutex.c | 29 ++++++++++++++++++++++++-----
3 files changed, 47 insertions(+), 6 deletions(-)

--
2.48.1