Skip to contentSkip to conversation

KMON - kmon build infrastrcuture ...

PATCH In review Davide Libenzi 1 participant 1 message May 6, 2007 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 4/4 KMON - kmon build infrastrcuture ...

Adds the kmon interface to the build infrastrcuture.

- Davide

init/Kconfig +6 -0
Index: linux-2.6.21.scdev/init/Kconfig
===================================================================
@@ -492,6 +492,12 @@
 	  on EMBEDDED systems.  /proc/vmstat will only show page counts
 	  if VM event counters are disabled.
 
+config KMON
+	default n
+	bool "Enable Kernel Monitor interface"
+	help
+	  Enable the kernel monitor interface through the /dev/kmon device.
+
 endmenu		# General setup
 
 config RT_MUTEXES
drivers/char/Makefile +1 -0
Index: linux-2.6.21.scdev/drivers/char/Makefile
===================================================================
@@ -56,6 +56,7 @@
 obj-$(CONFIG_HVCS)		+= hvcs.o
 obj-$(CONFIG_SGI_MBCS)		+= mbcs.o
 obj-$(CONFIG_BRIQ_PANEL)	+= briq_panel.o
+obj-$(CONFIG_KMON)		+= kmon-dev.o
 
 obj-$(CONFIG_PRINTER)		+= lp.o
 obj-$(CONFIG_TIPAR)		+= tipar.o
kernel/Makefile +1 -0
Index: linux-2.6.21.scdev/kernel/Makefile
===================================================================
@@ -51,6 +51,7 @@
 obj-$(CONFIG_UTS_NS) += utsname.o
 obj-$(CONFIG_TASK_DELAY_ACCT) += delayacct.o
 obj-$(CONFIG_TASKSTATS) += taskstats.o tsacct.o
+obj-$(CONFIG_KMON) += kmon.o kmon-stats.o
 
 ifneq ($(CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER),y)
 # According to Alan Modra <[email protected]>, the -fno-omit-frame-pointer is
include/linux/Kbuild +1 -0
Index: linux-2.6.21.scdev/include/linux/Kbuild
===================================================================
@@ -246,6 +246,7 @@
 unifdef-y += kernelcapi.h
 unifdef-y += kernel.h
 unifdef-y += keyboard.h
+unifdef-y += kmon.h
 unifdef-y += llc.h
 unifdef-y += loop.h
 unifdef-y += lp.h