summaryrefslogtreecommitdiffstats
path: root/samples/Kconfig
diff options
context:
space:
mode:
authorJoe Lawrence <joe.lawrence@redhat.com>2017-08-31 16:37:41 -0400
committerJiri Kosina <jkosina@suse.cz>2017-09-14 17:06:12 -0400
commit439e7271dc2b63de379e37971dc2f64d71e24f8a (patch)
treec3dd63d08e743a63936c24949b456d4522003022 /samples/Kconfig
parentdcba71086e0d1abf4f00cd381530b11d0db7fa1d (diff)
livepatch: introduce shadow variable API
Add exported API for livepatch modules: klp_shadow_get() klp_shadow_alloc() klp_shadow_get_or_alloc() klp_shadow_free() klp_shadow_free_all() that implement "shadow" variables, which allow callers to associate new shadow fields to existing data structures. This is intended to be used by livepatch modules seeking to emulate additions to data structure definitions. See Documentation/livepatch/shadow-vars.txt for a summary of the new shadow variable API, including a few common use cases. See samples/livepatch/livepatch-shadow-* for example modules that demonstrate shadow variables. [jkosina@suse.cz: fix __klp_shadow_get_or_alloc() comment as spotted by Josh] Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com> Acked-by: Josh Poimboeuf <jpoimboe@redhat.com> Acked-by: Miroslav Benes <mbenes@suse.cz> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'samples/Kconfig')
-rw-r--r--samples/Kconfig5
1 files changed, 2 insertions, 3 deletions
diff --git a/samples/Kconfig b/samples/Kconfig
index 9cb63188d3ef..c332a3b9de05 100644
--- a/samples/Kconfig
+++ b/samples/Kconfig
@@ -71,11 +71,10 @@ config SAMPLE_RPMSG_CLIENT
71 the rpmsg bus. 71 the rpmsg bus.
72 72
73config SAMPLE_LIVEPATCH 73config SAMPLE_LIVEPATCH
74 tristate "Build live patching sample -- loadable modules only" 74 tristate "Build live patching samples -- loadable modules only"
75 depends on LIVEPATCH && m 75 depends on LIVEPATCH && m
76 help 76 help
77 Builds a sample live patch that replaces the procfs handler 77 Build sample live patch demonstrations.
78 for /proc/cmdline to print "this has been live patched".
79 78
80config SAMPLE_CONFIGFS 79config SAMPLE_CONFIGFS
81 tristate "Build configfs patching sample -- loadable modules only" 80 tristate "Build configfs patching sample -- loadable modules only"