Release 4.15 kernel/livepatch/core.h
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _LIVEPATCH_CORE_H
#define _LIVEPATCH_CORE_H
#include <linux/livepatch.h>
extern struct mutex klp_mutex;
static inline bool klp_is_object_loaded(struct klp_object *obj)
{
return !obj->name || obj->mod;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Joe Lawrence | 22 | 100.00% | 1 | 100.00% |
Total | 22 | 100.00% | 1 | 100.00% |
static inline int klp_pre_patch_callback(struct klp_object *obj)
{
int ret = 0;
if (obj->callbacks.pre_patch)
ret = (*obj->callbacks.pre_patch)(obj);
obj->callbacks.post_unpatch_enabled = !ret;
return ret;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Joe Lawrence | 44 | 86.27% | 1 | 50.00% |
Petr Mladek | 7 | 13.73% | 1 | 50.00% |
Total | 51 | 100.00% | 2 | 100.00% |
static inline void klp_post_patch_callback(struct klp_object *obj)
{
if (obj->callbacks.post_patch)
(*obj->callbacks.post_patch)(obj);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Joe Lawrence | 32 | 100.00% | 1 | 100.00% |
Total | 32 | 100.00% | 1 | 100.00% |
static inline void klp_pre_unpatch_callback(struct klp_object *obj)
{
if (obj->callbacks.pre_unpatch)
(*obj->callbacks.pre_unpatch)(obj);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Joe Lawrence | 32 | 100.00% | 1 | 100.00% |
Total | 32 | 100.00% | 1 | 100.00% |
static inline void klp_post_unpatch_callback(struct klp_object *obj)
{
if (obj->callbacks.post_unpatch_enabled &&
obj->callbacks.post_unpatch)
(*obj->callbacks.post_unpatch)(obj);
obj->callbacks.post_unpatch_enabled = false;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Joe Lawrence | 38 | 82.61% | 1 | 50.00% |
Petr Mladek | 8 | 17.39% | 1 | 50.00% |
Total | 46 | 100.00% | 2 | 100.00% |
#endif /* _LIVEPATCH_CORE_H */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Joe Lawrence | 171 | 85.07% | 1 | 25.00% |
Petr Mladek | 15 | 7.46% | 1 | 25.00% |
Jiri Kosina | 14 | 6.97% | 1 | 25.00% |
Greg Kroah-Hartman | 1 | 0.50% | 1 | 25.00% |
Total | 201 | 100.00% | 4 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.