Re: [RFC 05/16] kgr: update Kconfig documentation

From: Randy Dunlap
Date: Sat May 03 2014 - 10:32:38 EST


On 04/30/2014 07:30 AM, Jiri Slaby wrote:
This is based on Udo's text which were augmented in this patch.

Signed-off-by: Jiri Slaby <jslaby@xxxxxxx>
Cc: Udo Seidel <udoseidel@xxxxxx>
Cc: Vojtech Pavlik <vojtech@xxxxxxx>
---
kernel/Kconfig.kgr | 3 +++
samples/Kconfig | 4 ++++
2 files changed, 7 insertions(+)

diff --git a/kernel/Kconfig.kgr b/kernel/Kconfig.kgr
index af9125f27b6d..f66fa2c20656 100644
--- a/kernel/Kconfig.kgr
+++ b/kernel/Kconfig.kgr
@@ -5,3 +5,6 @@ config KGR
tristate "Kgr infrastructure"
depends on DYNAMIC_FTRACE_WITH_REGS
depends on HAVE_KGR
+ help
+ Select this to enable kGraft online kernel patching. The
+ runtime price is zero, so it is safe to say Y here.

Please indent help text 2 spaces instead of 1 to be consistent and to
follow CodingStyle.

Also, I would prefer that this feature be referred to as kgraft (with
any capital letters that you prefer) instead of kgr.
kgr is too meaningless to me.

diff --git a/samples/Kconfig b/samples/Kconfig
index a923510443de..29eba4b77812 100644
--- a/samples/Kconfig
+++ b/samples/Kconfig
@@ -58,6 +58,10 @@ config SAMPLE_KDB
config SAMPLE_KGR_PATCHER
tristate "Build kgr patcher example -- loadable modules only"
depends on KGR && m
+ help
+ Sample code to replace sys_iopl() and sys_capable() via
+ kGraft. This is only for presentation purposes. It is safe to
+ say Y here.

config SAMPLE_RPMSG_CLIENT
tristate "Build rpmsg client sample -- loadable modules only"



--
~Randy
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/