public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] printk: export symbols for debug modules
@ 2023-08-15  2:07 Yunlong Xing
  2023-08-15 13:55 ` Petr Mladek
  2023-08-28  7:18 ` Christoph Hellwig
  0 siblings, 2 replies; 7+ messages in thread
From: Yunlong Xing @ 2023-08-15  2:07 UTC (permalink / raw)
  To: pmladek, senozhatsky, rostedt, john.ogness
  Cc: linux-kernel, enlinmu, enlin.mu, yunlong.xing23

From: Enlin Mu <enlin.mu@unisoc.com>

the module is out-of-tree, it saves kernel logs when panic

Signed-off-by: Enlin Mu <enlin.mu@unisoc.com>
---
 kernel/printk/printk.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
index 357a4d18f638..f381442512b3 100644
--- a/kernel/printk/printk.c
+++ b/kernel/printk/printk.c
@@ -538,12 +538,14 @@ char *log_buf_addr_get(void)
 {
 	return log_buf;
 }
+EXPORT_SYMBOL_GPL(log_buf_addr_get);
 
 /* Return log buffer size */
 u32 log_buf_len_get(void)
 {
 	return log_buf_len;
 }
+EXPORT_SYMBOL_GPL(log_buf_len_get);
 
 /*
  * Define how much of the log buffer we could take at maximum. The value
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-08-28  7:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-15  2:07 [PATCH] printk: export symbols for debug modules Yunlong Xing
2023-08-15 13:55 ` Petr Mladek
2023-08-15 15:04   ` Sergey Senozhatsky
2023-08-16  1:24   ` Enlin Mu
2023-08-16  9:31     ` Petr Mladek
2023-08-17  4:14       ` Enlin Mu
2023-08-28  7:18 ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox