From c6f44352abedb12b4102449dd492734aaa7d5c4a Mon Sep 17 00:00:00 2001 From: Ziyi Cui Date: Mon, 29 Aug 2022 23:09:23 +0000 Subject: [PATCH] ANDROID: softirq: Add EXPORT_SYMBOL_GPL for softirq and tasklet The purpose of these symbols is for getting irq/softirq latency. Currently we only have symbols for irq_handler_entry and irq_handler_exit. We would use these latency for further monitoring and debugging. The related tracepoints were defined in trace/events/irq.h. We would use these tracepoints in vendor kernel module. Bug: 411464711 Bug: 344782968 Bug: 227809911 Signed-off-by: Ziyi Cui Change-Id: Idf4ccdede5232689b2752283539aee54a5f67866 (cherry picked from commit 69b689971ac64f412d7dfbbbcc6cd7a09e221c10) Signed-off-by: Qais Yousef Signed-off-by: Qinmwu Fang --- kernel/softirq.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel/softirq.c b/kernel/softirq.c index 147ec36eece2..fa43bc6fec8e 100644 --- a/kernel/softirq.c +++ b/kernel/softirq.c @@ -36,6 +36,10 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(irq_handler_entry); EXPORT_TRACEPOINT_SYMBOL_GPL(irq_handler_exit); +EXPORT_TRACEPOINT_SYMBOL_GPL(softirq_entry); +EXPORT_TRACEPOINT_SYMBOL_GPL(softirq_exit); +EXPORT_TRACEPOINT_SYMBOL_GPL(tasklet_entry); +EXPORT_TRACEPOINT_SYMBOL_GPL(tasklet_exit); /* - No shared variables, all the data are CPU local.