From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Waychison Subject: [PATCH v1 10/12] kmsg_dump: Export symbol kmsg_dump() to GPL modules Date: Tue, 02 Nov 2010 18:30:25 -0700 Message-ID: <20101103013024.4641.84452.stgit@crlf.mtv.corp.google.com> References: <20101103012917.4641.57113.stgit@crlf.mtv.corp.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20101103012917.4641.57113.stgit-+dUuAhMFdFN6FDdRrpk8kO4/NqBCd+6Q@public.gmane.org> Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: simon.kagstrom-vI6UBbBVNY+JA8cjQkG2/g@public.gmane.org, davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org Cc: adurbin-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org, akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org, chavey-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-api@vger.kernel.org The netoops driver would like to call this function to initiate software induced kernel dumps. Signed-off-by: Mike Waychison --- This patch can go away if we have a good way to induce a 'soft' kmsg_dump in the core kernel. --- kernel/printk.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/kernel/printk.c b/kernel/printk.c index ad0c74e..2aa0a28 100644 --- a/kernel/printk.c +++ b/kernel/printk.c @@ -1572,4 +1572,5 @@ void kmsg_dump(enum kmsg_dump_reason reason, struct pt_regs *pt_regs) dumper->dump(dumper, reason, pt_regs, s1, l1, s2, l2); spin_unlock_irqrestore(&dump_list_lock, flags); } +EXPORT_SYMBOL_GPL(kmsg_dump); #endif