summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorMartin Baulig <martin@src.gnome.org>1999-03-21 18:05:22 +0000
committerMartin Baulig <martin@src.gnome.org>1999-03-21 18:05:22 +0000
commitddc496cdaad2ef66a61cc4da8804cb436730990b (patch)
treec7d2468e394f303f6222b863f226313bec30d0d1 /kernel
parent746981611b804156d3280bf1978cbf8ce3e300de (diff)
downloadlibgtop-ddc496cdaad2ef66a61cc4da8804cb436730990b.tar.gz
This is a kernel patch against 2.2.1 which you need to apply to
use the code here.
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sysctl/patch-2.2.181
1 files changed, 81 insertions, 0 deletions
diff --git a/kernel/sysctl/patch-2.2.1 b/kernel/sysctl/patch-2.2.1
new file mode 100644
index 00000000..1781b921
--- /dev/null
+++ b/kernel/sysctl/patch-2.2.1
@@ -0,0 +1,81 @@
+diff -ru linux-2.2.1/Makefile hacker/Makefile
+--- linux-2.2.1/Makefile Sun Jan 31 22:45:42 1999
++++ hacker/Makefile Sun Mar 21 16:10:41 1999
+@@ -109,6 +109,7 @@
+ DRIVERS =drivers/block/block.a \
+ drivers/char/char.a \
+ drivers/misc/misc.a
++EXTRAS =
+ LIBS =$(TOPDIR)/lib/lib.a
+ SUBDIRS =kernel drivers mm fs net ipc lib
+
+@@ -186,6 +187,11 @@
+ DRIVERS := $(DRIVERS) drivers/net/irda/irda_drivers.a
+ endif
+
++ifdef CONFIG_LIBGTOP
++SUBDIRS := $(SUBDIRS) libgtop
++EXTRAS := $(EXTRAS) libgtop/kernel.o
++endif
++
+ include arch/$(ARCH)/Makefile
+
+ .S.s:
+@@ -206,6 +212,7 @@
+ $(FILESYSTEMS) \
+ $(NETWORKS) \
+ $(DRIVERS) \
++ $(EXTRAS) \
+ $(LIBS) \
+ --end-group \
+ -o vmlinux
+diff -ru linux-2.2.1/arch/i386/config.in hacker/arch/i386/config.in
+--- linux-2.2.1/arch/i386/config.in Sun Jan 31 22:25:25 1999
++++ hacker/arch/i386/config.in Sat Mar 20 18:26:18 1999
+@@ -84,6 +84,9 @@
+ bool 'System V IPC' CONFIG_SYSVIPC
+ bool 'BSD Process Accounting' CONFIG_BSD_PROCESS_ACCT
+ bool 'Sysctl support' CONFIG_SYSCTL
++if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then
++ tristate 'LibGTop support' CONFIG_LIBGTOP
++fi
+ tristate 'Kernel support for a.out binaries' CONFIG_BINFMT_AOUT
+ tristate 'Kernel support for ELF binaries' CONFIG_BINFMT_ELF
+ tristate 'Kernel support for MISC binaries' CONFIG_BINFMT_MISC
+diff -ru linux-2.2.1/include/linux/sysctl.h hacker/include/linux/sysctl.h
+--- linux-2.2.1/include/linux/sysctl.h Sun Jan 31 22:24:14 1999
++++ hacker/include/linux/sysctl.h Sat Mar 20 19:12:54 1999
+@@ -56,7 +56,8 @@
+ CTL_PROC=4, /* Process info */
+ CTL_FS=5, /* Filesystems */
+ CTL_DEBUG=6, /* Debugging */
+- CTL_DEV=7 /* Devices */
++ CTL_DEV=7, /* Devices */
++ CTL_LIBGTOP=408 /* LibGTop */
+ };
+
+
+diff -ru linux-2.2.1/kernel/sysctl.c hacker/kernel/sysctl.c
+--- linux-2.2.1/kernel/sysctl.c Sun Jan 31 22:24:43 1999
++++ hacker/kernel/sysctl.c Sat Mar 20 19:24:34 1999
+@@ -82,7 +82,9 @@
+ static ctl_table fs_table[];
+ static ctl_table debug_table[];
+ static ctl_table dev_table[];
+-
++#ifdef CONFIG_LIBGTOP
++extern ctl_table libgtop_table[];
++#endif
+
+ /* /proc declarations: */
+
+@@ -148,6 +150,9 @@
+ {CTL_FS, "fs", NULL, 0, 0555, fs_table},
+ {CTL_DEBUG, "debug", NULL, 0, 0555, debug_table},
+ {CTL_DEV, "dev", NULL, 0, 0555, dev_table},
++#ifdef CONFIG_LIBGTOP
++ {CTL_LIBGTOP, "libgtop", NULL, 0, 0555, libgtop_table},
++#endif
+ {0}
+ };
+