From nobody Tue Sep 29 02:33:20 2026 Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [80.241.56.152]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 72F0237AA65; Thu, 13 Aug 2026 03:50:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.241.56.152 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786593032; cv=none; b=k2w8lnJuGXOFbz+c5hKkdSNHMZvpZ3QjNEv1MUrKHw4IirA06tnKYDjQ4u+YMz3tYV7wCkfjf9Qt0I59l8mY5OM9BbiW+12IRAIlplmVciHo1DsZFeyXxzRuZ8JVQQzj0xorQJvjQ2fb78yHNykH6eT1c9QeJdX96tV4HWK1VFw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786593032; c=relaxed/simple; bh=/DyJ/Pt5HgNY+1AYXZ1YsFD8V1gs37HPB1lvRPBQOWM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YJFEcAKtS+AaciJa3kgslC7R8iQNA6i9R+V7UqfhzIWHPFZwMH2rwhS/czaWCFEE6xNjNPY+c+9/7xkOSgLRYUNJ2WJGh1qdtmOzRlJntOIrThIUrK720Z87cPzCKh2eudoWFVzrdG77ABw8caNL3oM6435ZprYQ0OCnJHjQ/mA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mavick.dev; spf=pass smtp.mailfrom=mavick.dev; dkim=pass (2048-bit key) header.d=mavick.dev header.i=@mavick.dev header.b=xHgBGCEm; arc=none smtp.client-ip=80.241.56.152 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mavick.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mavick.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mavick.dev header.i=@mavick.dev header.b="xHgBGCEm" Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4hLBG92N6QzKw1y; Thu, 13 Aug 2026 05:50:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mavick.dev; s=MBO0001; t=1786593025; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bEXWfsEWtFFEp+0efKsBCvQdDR44+02Pu5SRRh4WvD8=; b=xHgBGCEm+3b1/xWePC0fKvD2X+/AktKduhbs5J/5JXXpF4UF5K0KM4vKDypjx3SNJqUMEi 3i1lzTbnGNvLvW/7YTNM3TgYF08OSnvSew8OTOdxenB6arH4tzF/tR5uBe/ITZ6iIftFUU 6Bj181XPQeoFyxwaNDO3sVN4KGxWNAjI694DaD8CZQY5/NcLdvl8eOC0M3jzqUxcdAZeAr F26NLiE321S3EGYlq82BDro0jhkZtOwCvmr4DcGWj3C55ZdZ5z7/OO8OetIGrUvp6SaKlS 8tNTuhqnDI8FLqI5IbXgkNQdjbkUKR6a0QiDO56RByl5dNasyYahRzTX8C3yjA== Authentication-Results: outgoing_mbo_mout; dkim=none; spf=pass (outgoing_mbo_mout: domain of m@mavick.dev designates 2001:67c:2050:b231:465::2 as permitted sender) smtp.mailfrom=m@mavick.dev From: Eugene Mavick Date: Thu, 13 Aug 2026 11:49:07 +0800 Subject: [PATCH v5 1/5] tracing: add refcount_final_put tracepoint Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260813-refcount-final-put-trace-v5-1-6e8bf8a38b31@mavick.dev> References: <20260813-refcount-final-put-trace-v5-0-6e8bf8a38b31@mavick.dev> In-Reply-To: <20260813-refcount-final-put-trace-v5-0-6e8bf8a38b31@mavick.dev> To: Will Deacon , Peter Zijlstra , Boqun Feng , Mark Rutland , Gary Guo , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , Andrew Morton , Dennis Zhou , Tejun Heo , Christoph Lameter , Dmitry Vyukov , Andrey Konovalov , Alexander Potapenko , Marco Elver , Andrey Ryabinin Cc: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-mm@kvack.org, kasan-dev@googlegroups.com, Eugene Mavick X-Developer-Signature: v=1; a=openpgp-sha256; l=5562; i=m@mavick.dev; h=from:subject:message-id; bh=/DyJ/Pt5HgNY+1AYXZ1YsFD8V1gs37HPB1lvRPBQOWM=; b=owGbwMvMwCU2V/5U3e1aE3/G02pJDFm1dgen8J9b9fMDq5pp/aWjMaqSlwrVjvyJExR7IlwSw x+7edvUjlIWBjEuBlkxRZaarAT3jJWzEo2PTuqBmcPKBDKEgYtTACYyk4Hhf85WLaft4Zf2337d 8+ov+3LnJ8W3rkutXaDnWt3yw/GXgjnD/6j9k78unJKeydLcfe7ijGt/JdQTJC3jXd43MvmsrXe I5gMA X-Developer-Key: i=m@mavick.dev; a=openpgp; fpr=7C6A604768A99A6133C5928C9D1FCA7EDB7D344F X-Rspamd-Queue-Id: 4hLBG92N6QzKw1y Add refcount_final_put tracepoint and related core infrastructure refcount_final_put fires when a reference count reaches zero and the object enters its final release path. The tracepoint records three fields: - caller: function that called the refcounting function(refcount_sub_and_test, percpu_ref_put_many) - ip: return address of trace wrapper macro call - obj: refcount object(struct percpu_ref, refcount_t) Signed-off-by: Eugene Mavick --- include/linux/refcount_trace.h | 33 +++++++++++++++++++++++++ include/trace/events/refcount.h | 55 +++++++++++++++++++++++++++++++++++++= ++++ lib/Kconfig | 8 ++++++ lib/Makefile | 2 ++ lib/refcount_trace.c | 14 +++++++++++ 5 files changed, 112 insertions(+) diff --git a/include/linux/refcount_trace.h b/include/linux/refcount_trace.h new file mode 100644 index 000000000000..6f8d0ba910f0 --- /dev/null +++ b/include/linux/refcount_trace.h @@ -0,0 +1,33 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _LINUX_REFCOUNT_TRACE_H +#define _LINUX_REFCOUNT_TRACE_H + +#include +#include + +#ifdef CONFIG_REFCOUNT_TRACE_FINAL_PUT +/* Declare the tracepoint so tracepoint_enabled() can be used */ +DECLARE_TRACEPOINT(refcount_final_put); + +/* Wrapper function implemented in lib/ref_trace.c */ +extern void do_refcount_trace_final_put(unsigned long caller, unsigned lon= g ip, const void *obj); + +#define do_trace_refcount_final_put(obj) \ + do { \ + if (tracepoint_enabled(refcount_final_put)) \ + do_refcount_trace_final_put(_RET_IP_, _THIS_IP_, obj); \ + } while (0) + +#define do_trace_refcount_final_put_cond(cond, obj) \ + do { \ + if (tracepoint_enabled(refcount_final_put) && cond) \ + do_refcount_trace_final_put(_RET_IP_, _THIS_IP_, obj); \ + } while (0) + +#else /* !CONFIG_REFCOUNT_TRACE_FINAL_PUT */ +extern void do_refcount_trace_final_put(unsigned long caller, unsigned lon= g ip, const void *obj); +#define do_trace_refcount_final_put(obj) do { } while (0) +#define do_trace_refcount_final_put_cond(cond, obj) do { } while (0) +#endif + +#endif /* _LINUX_REFCOUNT_TRACE_H */ diff --git a/include/trace/events/refcount.h b/include/trace/events/refcoun= t.h new file mode 100644 index 000000000000..a4dc23aff93b --- /dev/null +++ b/include/trace/events/refcount.h @@ -0,0 +1,55 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#undef TRACE_SYSTEM +#define TRACE_SYSTEM refcount + +#if !defined(_TRACE_REFCOUNT_H) || defined(TRACE_HEADER_MULTI_READ) +#define _TRACE_REFCOUNT_H + +#include + +#ifdef CONFIG_REFCOUNT_TRACE_FINAL_PUT + +/** + * refcount_final_put - trace when a reference count reaches zero + * @caller: return address of refcount + * function(refcount_sub_and_test, percpu_ref_put_many) + * @ip: return address of trace wrapper macro call, + * inlining may cause it to be something else tho + * @obj: refcount object(struct percpu_ref, refcount_t) + * + * Tracepoint instrumentation can be added using the do_refcount_trace_fin= al_put + * macro defined in include/linux/refcount_trace.h + * which uses _RET_IP_ and _THIS_IP_ for caller and ip arguments respectiv= ely, + * thus only requiring obj arg to be supplied + */ +TRACE_EVENT(refcount_final_put, + + TP_PROTO(unsigned long caller, unsigned long ip, const void *obj), + + TP_ARGS(caller, ip, obj), + + TP_STRUCT__entry( + __field( unsigned long, caller ) + __field( unsigned long, ip ) + __field( const void *, obj ) + ), + + TP_fast_assign( + __entry->caller =3D caller; + __entry->ip =3D ip; + __entry->obj =3D obj; + ), + + TP_printk("caller=3D%pS ip=3D%pS obj=3D%p", + (void *)__entry->caller, + (void *)__entry->ip, + __entry->obj + ) +); + +#endif /* CONFIG_REFCOUNT_TRACE_FINAL_PUT */ + +#endif /* _TRACE_REFCOUNT_H */ + +/* This part must be outside protection */ +#include diff --git a/lib/Kconfig b/lib/Kconfig index 00a9509636c1..12bc59515a3e 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -52,6 +52,14 @@ config PACKING_KUNIT_TEST =20 When in doubt, say N. =20 +config REFCOUNT_TRACE_FINAL_PUT + bool "Trace final puts on multiple refcount implementations" + depends on TRACEPOINTS && DEBUG_KERNEL + help + Trace when a refcount implementation considers refcounted object dead. + + If unsure, say N. + config BITREVERSE tristate =20 diff --git a/lib/Makefile b/lib/Makefile index f33a24bf1c19..e75e88f0c870 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -335,3 +335,5 @@ CONTEXT_ANALYSIS_test_context-analysis.o :=3D y obj-$(CONFIG_CONTEXT_ANALYSIS_TEST) +=3D test_context-analysis.o =20 subdir-$(CONFIG_FORTIFY_SOURCE) +=3D test_fortify + +obj-$(CONFIG_REFCOUNT_TRACE_FINAL_PUT) +=3D refcount_trace.o diff --git a/lib/refcount_trace.c b/lib/refcount_trace.c new file mode 100644 index 000000000000..2476bb5f2f60 --- /dev/null +++ b/lib/refcount_trace.c @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0 +#define CREATE_TRACE_POINTS +#include +#include + +//Wrapper function for functions defined entirely in header files +void do_refcount_trace_final_put(unsigned long caller, + unsigned long ip, + const void *obj) +{ + trace_call__refcount_final_put(caller, ip, obj); +} +EXPORT_SYMBOL_GPL(do_refcount_trace_final_put); +EXPORT_TRACEPOINT_SYMBOL_GPL(refcount_final_put); --=20 2.51.2 From nobody Tue Sep 29 02:33:20 2026 Received: from mout-p-103.mailbox.org (mout-p-103.mailbox.org [80.241.56.161]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EE2662DF6F4; Thu, 13 Aug 2026 03:50:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.241.56.161 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786593041; cv=none; b=lOndmBGuarmq5WDfSNHue/JoHwlUqQZeN5UCh3Z5WqKfDXB93qgPp/80jBQ8aYxnswjG1jJHkHT1IWwA/hJQZie1SdHGrMus+ZeWyZmFFCJsar7udJMcXcxNm7TJddmJbBhcORj1dCTfvEmjB2QU2OmuLqkZ71tSgWEsDNHTCoE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786593041; c=relaxed/simple; bh=d7MkGq8H8zm5dfWimycwfqvz6dfqxiscpXO2Kan5j58=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=WGJKFac0Jc3Oa/1trlFPveNmvmzHgm73HxIHItutKdO/Kb9ZK/4HvirI2zjRZpFRBVdfxMh/TAdzPKtcs7zyQCBiAojxXi1zkP4ibViXiRcPjxuBQLC42eoCBr/EUse7DJKeH6ChnTsS6hoLgGk6Ghkqf4uhyHifZrXqxYW+zMM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mavick.dev; spf=pass smtp.mailfrom=mavick.dev; dkim=pass (2048-bit key) header.d=mavick.dev header.i=@mavick.dev header.b=TZqm343h; arc=none smtp.client-ip=80.241.56.161 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mavick.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mavick.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mavick.dev header.i=@mavick.dev header.b="TZqm343h" Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4hLBGM4VzszKnY1; Thu, 13 Aug 2026 05:50:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mavick.dev; s=MBO0001; t=1786593035; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=p2aTAtzaBo15r45rnzIKt1YFOff3C6zZQXKjs0RwoRE=; b=TZqm343hlculBz0/mBe/XsJsfy+PMuEIL3W+5wlpU8uIMlx0O46lcF619P32GunYbacwFs TeeUeDLDtFPaezUjj5SBiSJimQy8ZIhi2XdulZ1eImEiZrA/GpMiFSOTRVHNWeyC6QCdx6 QbO9bt6qfKrjYqUzUjEfz2RRG4Gzs3aOUrHjmMcAdkGiZ0dDFTxTypaf3BSAXcbM6fzCa6 wR/lbVUE1UkljwahXAQXZGQj/7iSoUEjraQqXJsiEC5i9VsqKAlsmcRscgAvXEqPJmLP+0 4Nwwba/54kF+8tfVB36DF60kN2PoPSJeGQVkoJQkv3oXfbgifeMzXllaBNrv3w== Authentication-Results: outgoing_mbo_mout; dkim=none; spf=pass (outgoing_mbo_mout: domain of m@mavick.dev designates 2001:67c:2050:b231:465::2 as permitted sender) smtp.mailfrom=m@mavick.dev From: Eugene Mavick Date: Thu, 13 Aug 2026 11:49:08 +0800 Subject: [PATCH v5 2/5] refcount: add refcount_final_put tracepoint Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260813-refcount-final-put-trace-v5-2-6e8bf8a38b31@mavick.dev> References: <20260813-refcount-final-put-trace-v5-0-6e8bf8a38b31@mavick.dev> In-Reply-To: <20260813-refcount-final-put-trace-v5-0-6e8bf8a38b31@mavick.dev> To: Will Deacon , Peter Zijlstra , Boqun Feng , Mark Rutland , Gary Guo , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , Andrew Morton , Dennis Zhou , Tejun Heo , Christoph Lameter , Dmitry Vyukov , Andrey Konovalov , Alexander Potapenko , Marco Elver , Andrey Ryabinin Cc: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-mm@kvack.org, kasan-dev@googlegroups.com, Eugene Mavick X-Developer-Signature: v=1; a=openpgp-sha256; l=1864; i=m@mavick.dev; h=from:subject:message-id; bh=d7MkGq8H8zm5dfWimycwfqvz6dfqxiscpXO2Kan5j58=; b=owGbwMvMwCU2V/5U3e1aE3/G02pJDFm1dgdz7yiFsoXdCuBP27WwbKaA23lGK6eAT2uWZLFe2 6Esz7C5o5SFQYyLQVZMkaUmK8E9Y+WsROOjk3pg5rAygQxh4OIUgImk32VkOOZ8vPf03WBZ4UPP ZI918QdanD+88ExExZbmxdV3eO8v2cjI8Fl23sdTzSbrHypN7AvnWfM46qyDoZEu1+MnfrGJ253 28QMA X-Developer-Key: i=m@mavick.dev; a=openpgp; fpr=7C6A604768A99A6133C5928C9D1FCA7EDB7D344F X-Rspamd-Queue-Id: 4hLBGM4VzszKnY1 Add the refcount_final_put tracepoint to __refcount_sub_and_test() and refcount_dec_if_one() refcount_final_put fires when a reference count reaches zero and the object enters its final release path. refcount_final_put records three fields: - caller: function that called the refcounting function(refcount_sub_and_test, percpu_ref_put_many) - ip: return address of trace wrapper macro call - obj: refcount object(struct percpu_ref, refcount_t) Signed-off-by: Eugene Mavick --- include/linux/refcount.h | 2 ++ lib/refcount.c | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/include/linux/refcount.h b/include/linux/refcount.h index ba7657ced281..23291a31d1be 100644 --- a/include/linux/refcount.h +++ b/include/linux/refcount.h @@ -107,6 +107,7 @@ #include #include #include +#include =20 struct mutex; =20 @@ -393,6 +394,7 @@ bool __refcount_sub_and_test(int i, refcount_t *r, int = *oldp) =20 if (old > 0 && old =3D=3D i) { smp_acquire__after_ctrl_dep(); + do_trace_refcount_final_put(r); return true; } =20 diff --git a/lib/refcount.c b/lib/refcount.c index a207a8f22b3c..8b148b576503 100644 --- a/lib/refcount.c +++ b/lib/refcount.c @@ -7,6 +7,7 @@ #include #include #include +#include =20 #define REFCOUNT_WARN(str) WARN_ONCE(1, "refcount_t: " str ".\n") =20 @@ -56,7 +57,10 @@ bool refcount_dec_if_one(refcount_t *r) { int val =3D 1; =20 - return atomic_try_cmpxchg_release(&r->refs, &val, 0); + bool ret =3D atomic_try_cmpxchg_release(&r->refs, &val, 0); + + do_trace_refcount_final_put_cond(ret, r); + return ret; } EXPORT_SYMBOL(refcount_dec_if_one); =20 --=20 2.51.2 From nobody Tue Sep 29 02:33:20 2026 Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [80.241.56.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5DFCA33E34E; Thu, 13 Aug 2026 03:50:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.241.56.151 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786593051; cv=none; b=LkRHfQMbLJa0Y0ySAGG+DySBiuDkhALD5SiAK63Yu6qUwhoK2gcyyfJZ6oIaWF3NsW0vHt8z0nyDPLOOVXRGb2dBn2Uqu9M7EQ0wntZLny34ca+xY3T8Ccsj3ZBHsDukVUyEWzOyCk1aDwwYdqJmaItWdLNtAvsfD03AcMPndSk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786593051; c=relaxed/simple; bh=h9+L+Ie+ahOzZJ0p77dLgmKslR+819Hu82i3Gm1bQ7c=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=b7dk65bUH10IKLgBV1Wkkele37i2y9PWYZFNJdZS/17F6EGUiu5VGwbjKpyKX8+4BOcObMikiRSs8qILv/itQr0UnWri7PKbv6ZTxi9a3mjPjaExqKmE2DdD7Ul+nSxVNw1pfkyWQ8PMeRKdHoy1q4joN8KEjrFe130BWRMbbIA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mavick.dev; spf=pass smtp.mailfrom=mavick.dev; dkim=pass (2048-bit key) header.d=mavick.dev header.i=@mavick.dev header.b=dYmKnJeS; arc=none smtp.client-ip=80.241.56.151 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mavick.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mavick.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mavick.dev header.i=@mavick.dev header.b="dYmKnJeS" Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4hLBGY1Xvfz8txG; Thu, 13 Aug 2026 05:50:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mavick.dev; s=MBO0001; t=1786593045; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=d2nbvdvUXZ2bcKFVdCqAMhlt7dahLAQjc/Eewymj1aE=; b=dYmKnJeSbmhsSN8xaUg5TWfGokwgTCmkfyDM1gUK/Mlp6FKTXRupNI3oQLiPnsbQiII28y 0LOfBc4MCfXuNf2NjXQWo+2cAj7BbqUi+2yzVLQjJJx3YmrhHtylOmmFIb0fi0ckWD8rxJ YfV/tTSNIF53624kluAI0Cu3XLw3pVvA0NR4wSdPK/ZY7JcIUnCWeWm3HDv4egOKhmAD7Z y15aJY30icZtAFMoqiRChRwSSJnFQNDcmN9RlIq1hwytqzBtuBpnHlw1SnPAjB8+wTzRtc Mnp+5T2qi2pgt641Qz4OUqwdzl2JpRW1C41rnfTjFlgb21YIJHdhmpZWR7iUvQ== From: Eugene Mavick Date: Thu, 13 Aug 2026 11:49:09 +0800 Subject: [PATCH v5 3/5] percpu-refcount: add refcount_final_put tracepoint Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260813-refcount-final-put-trace-v5-3-6e8bf8a38b31@mavick.dev> References: <20260813-refcount-final-put-trace-v5-0-6e8bf8a38b31@mavick.dev> In-Reply-To: <20260813-refcount-final-put-trace-v5-0-6e8bf8a38b31@mavick.dev> To: Will Deacon , Peter Zijlstra , Boqun Feng , Mark Rutland , Gary Guo , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , Andrew Morton , Dennis Zhou , Tejun Heo , Christoph Lameter , Dmitry Vyukov , Andrey Konovalov , Alexander Potapenko , Marco Elver , Andrey Ryabinin Cc: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-mm@kvack.org, kasan-dev@googlegroups.com, Eugene Mavick X-Developer-Signature: v=1; a=openpgp-sha256; l=1460; i=m@mavick.dev; h=from:subject:message-id; bh=h9+L+Ie+ahOzZJ0p77dLgmKslR+819Hu82i3Gm1bQ7c=; b=owGbwMvMwCU2V/5U3e1aE3/G02pJDFm1dgcNpzLPPVhwRDyp4oLsy4zFJmqF/dfzGa5vcz+T9 7j5WFp8RykLgxgXg6yYIktNVoJ7xspZicZHJ/XAzGFlAhnCwMUpABOZ+ZrhD8ddnQoj44suWa43 Qt885Hoct+bWshvFt/xddTbxXrD2MWD4Z+yjdXqtQDmfUx3/vT1/kntFjk8Ntq4x23Gynjlk2r/ rHAA= X-Developer-Key: i=m@mavick.dev; a=openpgp; fpr=7C6A604768A99A6133C5928C9D1FCA7EDB7D344F Add the refcount_final_put tracepoint to percpu_ref_put_many(). The tracepoint fires when the atomic counter reaches zero in the atomic fallback path (after percpu_ref_kill() has been called). refcount_final_put records three fields: - caller: function that called the refcounting function(refcount_sub_and_test, percpu_ref_put_many) - ip: return address of trace wrapper macro call - obj: refcount object(struct percpu_ref, refcount_t) Signed-off-by: Eugene Mavick --- include/linux/percpu-refcount.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/linux/percpu-refcount.h b/include/linux/percpu-refcoun= t.h index d73a1c08c3e3..244992b2f746 100644 --- a/include/linux/percpu-refcount.h +++ b/include/linux/percpu-refcount.h @@ -55,6 +55,7 @@ #include #include #include +#include =20 struct percpu_ref; typedef void (percpu_ref_func_t)(struct percpu_ref *); @@ -331,8 +332,10 @@ static inline void percpu_ref_put_many(struct percpu_r= ef *ref, unsigned long nr) =20 if (__ref_is_percpu(ref, &percpu_count)) this_cpu_sub(*percpu_count, nr); - else if (unlikely(atomic_long_sub_and_test(nr, &ref->data->count))) + else if (unlikely(atomic_long_sub_and_test(nr, &ref->data->count))) { + do_trace_refcount_final_put(ref); ref->data->release(ref); + } =20 rcu_read_unlock(); } --=20 2.51.2 From nobody Tue Sep 29 02:33:20 2026 Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org [80.241.56.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A9F6633E34E; Thu, 13 Aug 2026 03:50:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.241.56.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786593060; cv=none; b=qBqJ5ps6ncSVsb6A5mbUvj0Y23Bzi2MIyEz8YlQJvOaG02ox5iuv0HtgiB9qUImcfgsjC9cNZJ1GPFAUabP+jghbyV/e4RrFetUgIVFMIhWFlq8X7UE4tMkafHcsdOkHXc6IQ/Y9ghDufdtRlYRiZwK97c/ff5WeoMBebCOYUfk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786593060; c=relaxed/simple; bh=NWF4Jo4Ftrstc2NjsEJ9G79wJ3MSn8vYx7m8NL0MlZU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=pRc4mWG7+TICF70UGiMhG0T1HWY2AbU0CJuuA4gTYuWP/d56BiP1NECADPkm8b95P6FX+EJqzps1b+EuEiiQHdPre5TdG/A0Cgxr4EszaupMZbepj0wDE3XnaQXDS9J0ybnbkggFbRDjbewGqr/5J0lAmU/rpgq0pfKaaA6H/iY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mavick.dev; spf=pass smtp.mailfrom=mavick.dev; dkim=pass (2048-bit key) header.d=mavick.dev header.i=@mavick.dev header.b=TZnbSlZy; arc=none smtp.client-ip=80.241.56.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mavick.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mavick.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mavick.dev header.i=@mavick.dev header.b="TZnbSlZy" Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4hLBGl3g1tzMlLg; Thu, 13 Aug 2026 05:50:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mavick.dev; s=MBO0001; t=1786593055; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=erDbb09ucbowlxh+KqIe/GemWupH5L/Xw8pXiywX4aU=; b=TZnbSlZy7HIOS8R8ZtKog7gJNViTtXeo/MPHBlX60HXcjV7GAOcyfS9aQKirBkB+91lkav wdg8opz1yyEhh/JtOpRDQmBbm+NBSWaJuG28GTwUs4XvNRgdhbqIPJloN4C3SlVw+JhNn0 24/mx0S2n8BC1WP0cdH+gHy1928bZplm2D5JNkbTN9tj+sF+dNBTgUpRuYmSrPbdqsi5Eu /U/8fm8gKxM+HBFTrRWJ+VPYbtK5kIuFSW5BK87BsSHFIulOwHrZ6kA6FT80W4zKKjzwMJ DIpfWfWW4njO4lEnCKCriDtWE4qN5h5WwV15W5eESREiXbAwdWHY+FekY7Ax/Q== From: Eugene Mavick Date: Thu, 13 Aug 2026 11:49:10 +0800 Subject: [PATCH v5 4/5] kunit: add test for refcount_final_put Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260813-refcount-final-put-trace-v5-4-6e8bf8a38b31@mavick.dev> References: <20260813-refcount-final-put-trace-v5-0-6e8bf8a38b31@mavick.dev> In-Reply-To: <20260813-refcount-final-put-trace-v5-0-6e8bf8a38b31@mavick.dev> To: Will Deacon , Peter Zijlstra , Boqun Feng , Mark Rutland , Gary Guo , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , Andrew Morton , Dennis Zhou , Tejun Heo , Christoph Lameter , Dmitry Vyukov , Andrey Konovalov , Alexander Potapenko , Marco Elver , Andrey Ryabinin Cc: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-mm@kvack.org, kasan-dev@googlegroups.com, Eugene Mavick X-Developer-Signature: v=1; a=openpgp-sha256; l=5310; i=m@mavick.dev; h=from:subject:message-id; bh=NWF4Jo4Ftrstc2NjsEJ9G79wJ3MSn8vYx7m8NL0MlZU=; b=kA0DAAoWnR/Kftt9NE8ByyZiAGp9PsHI80dHxtCLyQgRi2utuXrj/DrJAEEYHmKk0Ar8vJSYD oh1BAAWCgAdFiEEfGpgR2ipmmEzxZKMnR/Kftt9NE8FAmp9PsEACgkQnR/Kftt9NE8TpAD/TJ6T /Xft03kCAMYvjSLws92XtG6nUkPg2Ko2+XTnBc4A/ikVItApitgXnzGR+92IsQG0l48gW0o+Jdy x9AXn1jMB X-Developer-Key: i=m@mavick.dev; a=openpgp; fpr=7C6A604768A99A6133C5928C9D1FCA7EDB7D344F Add a KUnit test suite for the refcount_final_put tracepoint. The test registers a probe function and triggers both refcount_t and percpu_ref final put paths, verifying that the tracepoint fires correctly and that the recorded fields match expected values. Signed-off-by: Eugene Mavick --- lib/Kconfig | 10 +++ lib/tests/Makefile | 1 + lib/tests/refcount_trace_kunit.c | 141 +++++++++++++++++++++++++++++++++++= ++++ 3 files changed, 152 insertions(+) diff --git a/lib/Kconfig b/lib/Kconfig index 12bc59515a3e..ee12e8f95158 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -60,6 +60,16 @@ config REFCOUNT_TRACE_FINAL_PUT =20 If unsure, say N. =20 +config REFCOUNT_TRACE_KUNIT_TEST + tristate "refcount trace kunit test" if !KUNIT_ALL_TESTS + depends on REFCOUNT_TRACE_FINAL_PUT && KUNIT && TRACEPOINTS + default KUNIT_ALL_TESTS + help + This option enables the KUnit test suite for the refcount_final_put + tracepoint. + + If unsure, say N. + config BITREVERSE tristate =20 diff --git a/lib/tests/Makefile b/lib/tests/Makefile index 7e9c2fa52e35..1ef41c0b6a0c 100644 --- a/lib/tests/Makefile +++ b/lib/tests/Makefile @@ -57,5 +57,6 @@ obj-$(CONFIG_USERCOPY_KUNIT_TEST) +=3D usercopy_kunit.o obj-$(CONFIG_UTIL_MACROS_KUNIT) +=3D util_macros_kunit.o obj-$(CONFIG_RATELIMIT_KUNIT_TEST) +=3D test_ratelimit.o obj-$(CONFIG_UUID_KUNIT_TEST) +=3D uuid_kunit.o +obj-$(CONFIG_REFCOUNT_TRACE_KUNIT_TEST) +=3D refcount_trace_kunit.o =20 obj-$(CONFIG_TEST_RUNTIME_MODULE) +=3D module/ diff --git a/lib/tests/refcount_trace_kunit.c b/lib/tests/refcount_trace_ku= nit.c new file mode 100644 index 000000000000..a57e9e4cfa42 --- /dev/null +++ b/lib/tests/refcount_trace_kunit.c @@ -0,0 +1,141 @@ +// SPDX-License-Identifier: GPL-2.0 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +struct data { + unsigned long caller; + unsigned long ip; + const void *obj; + atomic_t count; +}; + +struct data capture; + +const void *chk_obj; + +#define test_init() \ + do { \ + KUNIT_EXPECT_FALSE( \ + test, register_trace_refcount_final_put(probe, NULL)); \ + \ + atomic_set_release(&capture.count, 0); \ + \ + chk_obj =3D &obj; \ + } while (0) + + +#define test_exit() \ + do { \ + /* wait for probe completion */ \ + int notimeout =3D wait_var_event_timeout( \ + &capture.count, \ + atomic_read_acquire(&capture.count), \ + msecs_to_jiffies(10000) \ + ); \ + \ + unregister_trace_refcount_final_put(probe, NULL); \ + tracepoint_synchronize_unregister(); \ + \ + KUNIT_ASSERT_TRUE(test, notimeout); \ + \ + KUNIT_EXPECT_EQ(test, atomic_read_acquire(&capture.count), 1); \ + \ + KUNIT_EXPECT_TRUE(test, __kernel_text_address(capture.caller)); \ + KUNIT_EXPECT_TRUE(test, __kernel_text_address(capture.ip)); \ + \ + KUNIT_EXPECT_PTR_EQ(test, capture.obj, &obj); \ + } while (0) + +static void probe( + void *ignore, + unsigned long caller, + unsigned long ip, + const void *obj) +{ + //prevent non test func final_puts from changing captured values + if (chk_obj !=3D obj) + return; + + capture.caller =3D caller; + capture.ip =3D ip; + capture.obj =3D obj; + + atomic_inc_return_release(&capture.count); //increase count +} + +static void test_refcount_sub_and_test(struct kunit *test) +{ + refcount_t obj; + + test_init(); + refcount_set(&obj, 2); + + KUNIT_EXPECT_FALSE(test, refcount_dec_and_test(&obj)); + KUNIT_EXPECT_TRUE(test, refcount_dec_and_test(&obj)); + + test_exit(); +} + +static void test_refcount_dec_if_one(struct kunit *test) +{ + refcount_t obj; + + test_init(); + refcount_set(&obj, 2); + + KUNIT_EXPECT_FALSE(test, refcount_dec_and_test(&obj)); + KUNIT_EXPECT_TRUE(test, refcount_dec_if_one(&obj)); + + test_exit(); +} +static void dummy_release(struct percpu_ref *ref) {} + +static void test_percpu_ref_put_many(struct kunit *test) +{ + struct percpu_ref obj; + + test_init(); + + KUNIT_ASSERT_FALSE(test, percpu_ref_init(&obj, dummy_release, 0, GFP_KERN= EL)); + + percpu_ref_get(&obj); + percpu_ref_get(&obj); + + percpu_ref_put(&obj); + percpu_ref_put(&obj); + + percpu_ref_switch_to_atomic_sync(&obj); + + percpu_ref_put(&obj); + + test_exit(); + percpu_ref_exit(&obj); +} + +static struct kunit_case refcount_trace_test_cases[] =3D { + KUNIT_CASE(test_refcount_sub_and_test), + KUNIT_CASE(test_refcount_dec_if_one), + KUNIT_CASE(test_percpu_ref_put_many), + {} +}; + +static struct kunit_suite refcount_trace_test_suite =3D { + .name =3D "refcount-trace", + .test_cases =3D refcount_trace_test_cases +}; + +kunit_test_suites(&refcount_trace_test_suite); + +MODULE_AUTHOR("Eugene Mavick "); +MODULE_DESCRIPTION("KUnit test for ref_trace"); +MODULE_LICENSE("GPL"); --=20 2.51.2 From nobody Tue Sep 29 02:33:20 2026 Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F39AB341062; Thu, 13 Aug 2026 03:51:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.241.56.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786593070; cv=none; b=UDHkOlJJUkaQ0UAeK1DjWHg3zRI9NC/2eJOFBy2r/PIZY17+xid/4zgMabN3SiXKQowv83mk3bHKIgxuigG1xAwHiyBEZIPRW4+8l+mAx9n471WTDiqt4X2iUYBtV7FZ4RVSAq+QIbd5RFKEOqezxRQj5f73THV8Hh+Vg/r3ad0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786593070; c=relaxed/simple; bh=0mtxE/WEsIHruPQpODluMt+xs1Gkb+zYSYfoyG1vQss=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nqk2n8x33dISRu3XjFEouzgeg87cW8U9DeVzNDWhkX5En0rA4StvoNdAmk37NDyG1fV7NdpLvajsKxNlq5dwe9jAEX4ivhFVRT83TSb9s7nP8QAiHx9lP0jLKxaxrDBkou/a1EMauNGWBFcCc6yFeesIMv2uw6C2FcxSXtA0vsI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mavick.dev; spf=pass smtp.mailfrom=mavick.dev; dkim=pass (2048-bit key) header.d=mavick.dev header.i=@mavick.dev header.b=MzfwnqSH; arc=none smtp.client-ip=80.241.56.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mavick.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mavick.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mavick.dev header.i=@mavick.dev header.b="MzfwnqSH" Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4hLBGx30BCzMlLk; Thu, 13 Aug 2026 05:51:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mavick.dev; s=MBO0001; t=1786593065; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=P8Jl8v7uhIYg0BWuM9zYsmcifoKGiiRIRhrZEbo+mEQ=; b=MzfwnqSHOYD5YM5aCrRFniW1OfkUeCU06L/n+43NoY1fVjkCGlzdsXMlgJPPfQBs1W8yZq D/lY82jW4YI/Eesc2eJBZhws8aafwSAGu+MBEubTcFqpZeY8Bxtt3PTi7E3XhqbTJi3ZXS WwwPUtcShTv8T/hFl3pt+O48G9rGGjvRYZrzqyRTSMCo4zi3SDcHfZdjt7TVZPrlkzTnvQ R34OT7PiMu2oKWIJ6qEBDjlg6x6JidqwIkxS9vlRy9I6YT7xYjbzf228K55w2Ompy09vw2 eJlzTCI6tr3Z+/V+zTAwfGbvwPwJS1PnIvZQjQNlNBWtfoxxWb/9jf/eqZmZYw== Authentication-Results: outgoing_mbo_mout; dkim=none; spf=pass (outgoing_mbo_mout: domain of m@mavick.dev designates 2001:67c:2050:b231:465::2 as permitted sender) smtp.mailfrom=m@mavick.dev From: Eugene Mavick Date: Thu, 13 Aug 2026 11:49:11 +0800 Subject: [PATCH v5 5/5] MAINTAINERS: add entries for refcount_final_put trace Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260813-refcount-final-put-trace-v5-5-6e8bf8a38b31@mavick.dev> References: <20260813-refcount-final-put-trace-v5-0-6e8bf8a38b31@mavick.dev> In-Reply-To: <20260813-refcount-final-put-trace-v5-0-6e8bf8a38b31@mavick.dev> To: Will Deacon , Peter Zijlstra , Boqun Feng , Mark Rutland , Gary Guo , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , Andrew Morton , Dennis Zhou , Tejun Heo , Christoph Lameter , Dmitry Vyukov , Andrey Konovalov , Alexander Potapenko , Marco Elver , Andrey Ryabinin Cc: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-mm@kvack.org, kasan-dev@googlegroups.com, Eugene Mavick X-Developer-Signature: v=1; a=openpgp-sha256; l=642; i=m@mavick.dev; h=from:subject:message-id; bh=0mtxE/WEsIHruPQpODluMt+xs1Gkb+zYSYfoyG1vQss=; b=owGbwMvMwCU2V/5U3e1aE3/G02pJDFm1dgf1+nxWHu2zCrJQKOCau/GT8f4nLE8lNvmssjN7K PdTdq1jRykLgxgXg6yYIktNVoJ7xspZicZHJ/XAzGFlAhnCwMUpABO58JLhn374JIufT99E1jUv 3r3d6GZUuF0ek2Hf3BmdHl08F1wydBn+R+xLW/NC4qv5s9D3F1SThVWNJdW/zdtdb8XGZc8i7qv GDwA= X-Developer-Key: i=m@mavick.dev; a=openpgp; fpr=7C6A604768A99A6133C5928C9D1FCA7EDB7D344F X-Rspamd-Queue-Id: 4hLBGx30BCzMlLk Add new files added in the patch series to MAINTAINERS Signed-off-by: Eugene Mavick --- MAINTAINERS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 10e8253181d3..c37e4cd0e4ff 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4210,7 +4210,10 @@ S: Maintained F: Documentation/atomic_*.txt F: arch/*/include/asm/atomic*.h F: include/*/atomic*.h +F: include/linux/refcount_trace.h F: include/linux/refcount.h +F: lib/refcount_trace.c +F: lib/tests/refcount_trace_kunit.c F: scripts/atomic/ F: rust/kernel/sync/atomic.rs F: rust/kernel/sync/atomic/ --=20 2.51.2