From d7aa7636d95384f87b3076aa0125d8ec51c1f178 Mon Sep 17 00:00:00 2001 From: Donghyeok Choe Date: Wed, 4 Dec 2024 09:02:41 +0900 Subject: [PATCH] ANDROID: hrtimer: Export hrtimer_expire_entry/exit tracepoints Export hrtimer_expire_entry/exit tracepoints, so that vendor modules can register probes for these tracepoints. To debug hrtimer-related issue, hrtimer_expire_entry/exit can be the core debugging data when hrtimer bug is included when panic occurs in multiple cores at the same time. And hrtimer_expire_entry/exit also check that hrtimer is operated normally or not. Bug: 382155299 Change-Id: Ib960141e4af2c21f54efda3bd4b11644d48291ac Signed-off-by: Donghyeok Choe --- kernel/time/hrtimer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/time/hrtimer.c b/kernel/time/hrtimer.c index cddcd08ea827..f62e8de0da85 100644 --- a/kernel/time/hrtimer.c +++ b/kernel/time/hrtimer.c @@ -49,6 +49,9 @@ #include "tick-internal.h" +EXPORT_TRACEPOINT_SYMBOL_GPL(hrtimer_expire_entry); +EXPORT_TRACEPOINT_SYMBOL_GPL(hrtimer_expire_exit); + /* * Masks for selecting the soft and hard context timers from * cpu_base->active