livepatch: function,sympos scheme in livepatch sysfs directory
authorChris J Arges <chris.j.arges@canonical.com>
Wed, 2 Dec 2015 02:40:56 +0000 (20:40 -0600)
committerJiri Kosina <jkosina@suse.cz>
Thu, 3 Dec 2015 22:01:27 +0000 (23:01 +0100)
commit444f9e99a840c4050c0530cfef81801a21a59f4c
tree72d000288180fa3d6312965110a26ea3b06fa09e
parent064c89df6247cd829a7880cc8a87b7ed2cdfccd8
livepatch: function,sympos scheme in livepatch sysfs directory

The following directory structure will allow for cases when the same
function name exists in a single object.
/sys/kernel/livepatch/<patch>/<object>/<function,sympos>

The sympos number corresponds to the nth occurrence of the symbol name in
kallsyms for the patched object.

An example of patching multiple symbols can be found here:
https://github.com/dynup/kpatch/issues/493

Signed-off-by: Chris J Arges <chris.j.arges@canonical.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Documentation/ABI/testing/sysfs-kernel-livepatch
kernel/livepatch/core.c