Home
last modified time | relevance | path

Searched refs:klp_object (Results 1 – 20 of 20) sorted by relevance

/linux/kernel/livepatch/
H A Dcore.c49 static bool klp_is_module(struct klp_object *obj) in klp_is_module()
55 static void klp_find_object_module(struct klp_object *obj) in klp_find_object_module()
87 static struct klp_func *klp_find_func(struct klp_object *obj, in klp_find_func()
102 static struct klp_object *klp_find_object(struct klp_patch *patch, in klp_find_object()
103 struct klp_object *old_obj) in klp_find_object()
105 struct klp_object *obj; in klp_find_object()
471 struct klp_object *obj; in patched_show()
473 obj = container_of(kobj, struct klp_object, kobj); in patched_show()
482 ATTRIBUTE_GROUPS(klp_object);
484 static void klp_free_object_dynamic(struct klp_object *obj) in klp_free_object_dynamic()
[all …]
H A Dcore.h21 static inline bool klp_is_object_loaded(struct klp_object *obj) in klp_is_object_loaded()
26 static inline int klp_pre_patch_callback(struct klp_object *obj) in klp_pre_patch_callback()
38 static inline void klp_post_patch_callback(struct klp_object *obj) in klp_post_patch_callback()
44 static inline void klp_pre_unpatch_callback(struct klp_object *obj) in klp_pre_unpatch_callback()
50 static inline void klp_post_unpatch_callback(struct klp_object *obj) in klp_post_unpatch_callback()
H A Dpatch.h30 int klp_patch_object(struct klp_object *obj);
31 void klp_unpatch_object(struct klp_object *obj);
H A Dpatch.c230 static void __klp_unpatch_object(struct klp_object *obj, bool nops_only) in __klp_unpatch_object()
247 void klp_unpatch_object(struct klp_object *obj) in klp_unpatch_object()
252 int klp_patch_object(struct klp_object *obj) in klp_patch_object()
274 struct klp_object *obj; in __klp_unpatch_objects()
H A Dtransition.c92 struct klp_object *obj; in klp_complete_transition()
266 struct klp_object *obj; in klp_check_stack()
577 struct klp_object *obj; in klp_init_transition()
/linux/tools/testing/selftests/livepatch/test_modules/
H A Dtest_klp_callbacks_demo2.c21 static void callback_info(const char *callback, struct klp_object *obj) in callback_info()
31 static int pre_patch_callback(struct klp_object *obj) in pre_patch_callback()
38 static void post_patch_callback(struct klp_object *obj) in post_patch_callback()
44 static void pre_unpatch_callback(struct klp_object *obj) in pre_unpatch_callback()
50 static void post_unpatch_callback(struct klp_object *obj) in post_unpatch_callback()
59 static struct klp_object objs[] = {
H A Dtest_klp_callbacks_demo.c21 static void callback_info(const char *callback, struct klp_object *obj) in callback_info()
31 static int pre_patch_callback(struct klp_object *obj) in pre_patch_callback()
38 static void post_patch_callback(struct klp_object *obj) in post_patch_callback()
44 static void pre_unpatch_callback(struct klp_object *obj) in pre_unpatch_callback()
50 static void post_unpatch_callback(struct klp_object *obj) in post_unpatch_callback()
71 static struct klp_object objs[] = {
H A Dtest_klp_state.c23 static void callback_info(const char *callback, struct klp_object *obj) in callback_info()
90 static int pre_patch_callback(struct klp_object *obj) in pre_patch_callback()
97 static void post_patch_callback(struct klp_object *obj) in post_patch_callback()
104 static void pre_unpatch_callback(struct klp_object *obj) in pre_unpatch_callback()
111 static void post_unpatch_callback(struct klp_object *obj) in post_unpatch_callback()
121 static struct klp_object objs[] = {
H A Dtest_klp_state2.c23 static void callback_info(const char *callback, struct klp_object *obj) in callback_info()
119 static int pre_patch_callback(struct klp_object *obj) in pre_patch_callback()
126 static void post_patch_callback(struct klp_object *obj) in post_patch_callback()
133 static void pre_unpatch_callback(struct klp_object *obj) in pre_unpatch_callback()
140 static void post_unpatch_callback(struct klp_object *obj) in post_unpatch_callback()
150 static struct klp_object objs[] = {
H A Dtest_klp_livepatch.c25 static struct klp_object objs[] = {
H A Dtest_klp_atomic_replace.c29 static struct klp_object objs[] = {
H A Dtest_klp_syscall.c69 static struct klp_object objs[] = {
/linux/samples/livepatch/
H A Dlivepatch-callbacks-demo.c98 static void callback_info(const char *callback, struct klp_object *obj) in callback_info()
108 static int pre_patch_callback(struct klp_object *obj) in pre_patch_callback()
115 static void post_patch_callback(struct klp_object *obj) in post_patch_callback()
121 static void pre_unpatch_callback(struct klp_object *obj) in pre_unpatch_callback()
127 static void post_unpatch_callback(struct klp_object *obj) in post_unpatch_callback()
148 static struct klp_object objs[] = {
H A Dlivepatch-sample.c46 static struct klp_object objs[] = {
H A Dlivepatch-shadow-fix2.c106 static struct klp_object objs[] = {
H A Dlivepatch-shadow-fix1.c147 static struct klp_object objs[] = {
/linux/include/linux/
H A Dlivepatch.h80 struct klp_object;
97 int (*pre_patch)(struct klp_object *obj);
98 void (*post_patch)(struct klp_object *obj);
99 void (*pre_unpatch)(struct klp_object *obj);
100 void (*post_unpatch)(struct klp_object *obj);
117 struct klp_object { struct
161 struct klp_object *objs;
/linux/Documentation/livepatch/
H A Dcallbacks.rst30 Callbacks are part of the klp_object structure and their implementation
31 is specific to that klp_object. Other livepatch objects may or may not
32 be patched, irrespective of the target klp_object's current state.
40 - before a klp_object is patched
43 - after a klp_object has been patched and is active
47 - before a klp_object is unpatched (ie, patched code is
52 - after a klp_object has been patched, all code has
68 A callback is only executed if its host klp_object is loaded. For
77 to the livepatching core that patching of the current klp_object is not
91 for a given klp_object if the object failed to patch, due to a failed
H A Dapi.rst30 :identifiers: klp_patch klp_object klp_func klp_callbacks klp_state
H A Dlivepatch.rst265 - struct klp_object defines an array of patched functions (struct
276 klp_object).