livepatch: samples: add sample live patching module
authorSeth Jennings <sjenning@redhat.com>
Tue, 16 Dec 2014 17:58:20 +0000 (11:58 -0600)
committerJiri Kosina <jkosina@suse.cz>
Mon, 22 Dec 2014 14:40:49 +0000 (15:40 +0100)
Add a sample live patching module.

Signed-off-by: Seth Jennings <sjenning@redhat.com>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Reviewed-by: Petr Mladek <pmladek@suse.cz>
Reviewed-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
MAINTAINERS
samples/Kconfig
samples/Makefile
samples/livepatch/Makefile [new file with mode: 0644]
samples/livepatch/livepatch-sample.c [new file with mode: 0644]

index df6a078..afe93ea 100644 (file)
@@ -5795,6 +5795,7 @@ F:        include/linux/livepatch.h
 F:     arch/x86/include/asm/livepatch.h
 F:     arch/x86/kernel/livepatch.c
 F:     Documentation/ABI/testing/sysfs-kernel-livepatch
+F:     samples/livepatch/
 L:     live-patching@vger.kernel.org
 
 LLC (802.2)
index 6181c2c..0aed20d 100644 (file)
@@ -63,4 +63,11 @@ config SAMPLE_RPMSG_CLIENT
          to communicate with an AMP-configured remote processor over
          the rpmsg bus.
 
+config SAMPLE_LIVE_PATCHING
+       tristate "Build live patching sample -- loadable modules only"
+       depends on LIVE_PATCHING && m
+       help
+         Builds a sample live patch that replaces the procfs handler
+         for /proc/cmdline to print "this has been live patched".
+
 endif # SAMPLES
index 1a60c62..f00257b 100644 (file)
@@ -1,4 +1,4 @@
 # Makefile for Linux samples code
 
-obj-$(CONFIG_SAMPLES)  += kobject/ kprobes/ trace_events/ \
+obj-$(CONFIG_SAMPLES)  += kobject/ kprobes/ trace_events/ livepatch/ \
                           hw_breakpoint/ kfifo/ kdb/ hidraw/ rpmsg/ seccomp/
Simple merge
Simple merge