relayfs - remove klog debugging channel
PATCH 1/1 relayfs - remove klog debugging channel
Andrew,
This patch removes from relayfs the 'klog debugging channel', which is a relayfs 'application' that doesn't belong in the main code. Please apply.
Signed-off-by Tom Zanussi <[email protected]>
fs/Kconfig +1 -33
@@ -923,8 +923,7 @@ config RELAYFS_FS an efficient mechanism for tools and facilities to relay large amounts of data from kernel space to user space. It's not useful on its own, and should only be enabled if other facilities that - need it are enabled, such as for example klog or the Linux Trace - Toolkit. + need it are enabled, such as for example the Linux Trace Toolkit. See <file:Documentation/filesystems/relayfs.txt> for further information.
@@ -935,37 +934,6 @@ config RELAYFS_FS module, say M here and read <file:Documentation/modules.txt>. If unsure, say N. - -config KLOG_CHANNEL - bool "Enable klog debugging support" - depends on RELAYFS_FS - default n - help - If you say Y to this, a relayfs channel named klog will be created - in the root of the relayfs file system. You can write to the klog - channel using klog() or klog_raw() from within the kernel or - kernel modules, and read from the klog channel by mounting relayfs - and using read(2) to read from it (or using cat). If you're not - sure, say N. - -config KLOG_CHANNEL_AUTOENABLE - bool "Enable klog logging on startup" - depends on KLOG_CHANNEL - default y - help - If you say Y to this, the klog channel will be automatically enabled - on startup. Otherwise, to turn klog logging on, you need use - sysctl (fs.relayfs.klog_enabled). This option is used in cases where - you don't actually want the channel to be written to until it's - enabled. If you're not sure, say Y. - -config KLOG_CHANNEL_SHIFT - depends on KLOG_CHANNEL - int "klog debugging channel size (14 => 16KB, 22 => 4MB)" - range 14 22 - default 21 - help - Select klog debugging channel size as a power of 2. endmenu
fs/relayfs/Makefile +1 -1
@@ -5,4 +5,4 @@ obj-$(CONFIG_RELAYFS_FS) += relayfs.o relayfs-y := relay.o relay_lockless.o relay_locking.o inode.o resize.o -relayfs-$(CONFIG_KLOG_CHANNEL) += klog.o +
fs/relayfs/inode.c +0 -7
@@ -604,19 +604,12 @@ static int __initinit_relayfs_fs (void) {int err =register_filesystem (&relayfs_fs_type); -#ifdef CONFIG_KLOG_CHANNEL -if (!err) -create_klog_channel (); -#endif return err; } static void __exitexit_relayfs_fs (void ) { -#ifdef CONFIG_KLOG_CHANNEL -remove_klog_channel (); -#endif unregister_filesystem (&relayfs_fs_type); }
fs/relayfs/klog.c +0 -206
206 lines not on this page · raw message
include/linux/klog.h +0 -24
@@ -1,24 +0,0 @@ -/* -* KLOG Generic Logging facility built upon the relayfs infrastructure -* -* Authors: Hubertus Frankeh ([email protected]) -* Tom Zanussi ([email protected]) -* -* Please direct all questions/comments to [email protected] -* -* Copyright (C) 2003, IBM Corp -* -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License -* as published by the Free Software Foundation; either version -* 2 of the License, or (at your option) any later version. -*/ - -#ifndef _LINUX_KLOG_H -#define _LINUX_KLOG_H - -extern int klog (const char *fmt, ...); -extern int klog_raw (const char *buf,int len); - -#endif /* _LINUX_KLOG_H */
Signature · 4 lines
Regards, Tom Zanussi <[email protected]> IBM Linux Technology Center/RAS