> On May 21, 2024, at 16:04, Petr Mladek <pmla...@suse.com> wrote: > > Another motivation to use ftrace for testing is that it does not > affect the performance in production. > > We should keep klp_ftrace_handler() as fast as possible so that we > could livepatch also performance sensitive functions. > How about using unlikely() for branch testing? If we use unlikely, maybe there is no negative effect to klp_ftrace_handler() once this function is called. Regards, Wardenjohn
- [PATCH] livepatch: introduce klp_func called interface Wardenjohn
- Re: [PATCH] livepatch: introduce klp_func called inter... Markus Elfring
- Re: [PATCH] livepatch: introduce klp_func called inter... Dan Carpenter
- [PATCH] livepatch: introduce klp_func called interface Wardenjohn
- Re: [PATCH] livepatch: introduce klp_func called i... Miroslav Benes
- Re: [PATCH] livepatch: introduce klp_func call... zhang warden
- Re: [PATCH] livepatch: introduce klp_func ... Miroslav Benes
- Re: [PATCH] livepatch: introduce klp_... Petr Mladek
- Re: [PATCH] livepatch: introduce ... zhang warden
- Re: [PATCH] livepatch: introduce ... zhang warden
- Re: [PATCH] livepatch: introd... Miroslav Benes
- Re: [PATCH] livepatch: introd... zhang warden
- Re: [PATCH] livepatch: introd... Miroslav Benes
- Re: [PATCH] livepatch: introd... zhang warden
- Re: [PATCH] livepatch: introduce ... Song Liu
- Re: [PATCH] livepatch: introd... Miroslav Benes
- Re: [PATCH] livepatch: introd... Song Liu
- Re: [PATCH] livepatch: introd... zhang warden
- Re: [PATCH] livepatch: introd... zhang warden