v3
2026-07-11
跟踪引用计数最终释放 · v3
Eugene Mavick 提交 v3 补丁系列,添加 ref_trace_final_put tracepoint 及相关基础设施和 KUnit 测试。
原始补丁链接
子 Patch(5)
1/5
tracing: add ref_trace_final_put tracepoint
Add ref_trace_final_put tracepoint and related core infrastructure ref_trace_final_put fires when a reference count reaches zero and the object enters its final release path. The tracepoint records
2/5
refcount: add ref_trace_final_put tracepoint
Add the ref_trace_final_put tracepoint to __refcount_sub_and_test() and refcount_dec_if_one() This tracepoint fires when a refcount_t reaches zero, capturing the caller address, the function name, an
3/5
percpu-refcount: add ref_trace_final_put trace
Add the ref_trace_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). Signe
4/5
kunit: add test for ref_trace_final_put
Add a KUnit test suite for the ref_trace_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 cor
5/5
MAINTAINERS: add entries for ref_trace_final_put
Add new files added in the patch series to MAINTAINERS Signed-off-by: Eugene Mavick m@mavick.dev — MAINTAINERS | 3 +++ 1 file changed , 3 insertions(+) diff –git a/MAINTAINERS b/MAINTAINERS in