Re: [PATCH] livepatch: Add using attribute to klp_func for using func show

2024-07-24 Thread zhang warden
Hi Petr! > The value is useless when the transition is in progress. > You simply do not know which variant is used in this case. > Yes, I agree that if the patch is in transition, we can not know which version of this function is running by one task. As my previous explanation, each patch hav

Re: [PATCH] livepatch: Add using attribute to klp_func for using func show

2024-07-24 Thread Petr Mladek
On Sat 2024-07-20 13:56:56, zhang warden wrote: > > > is this always correct though? See the logic in klp_ftrace_handler(). If > > there is a transition running, it is a little bit more complicated. > > > > Miroslav > > Hi! Miroslav. > > In reality, we often encounter such situation that serva

Re: [PATCH] livepatch: Add using attribute to klp_func for using func show

2024-07-19 Thread zhang warden
> is this always correct though? See the logic in klp_ftrace_handler(). If > there is a transition running, it is a little bit more complicated. > > Miroslav Hi! Miroslav. In reality, we often encounter such situation that serval patch in one system, some patch make changes to one same funct

Re: [PATCH] livepatch: Add using attribute to klp_func for using func show

2024-07-19 Thread Miroslav Benes
Hi, On Thu, 18 Jul 2024, zhangyongde.zyd wrote: > From: Wardenjohn > > One system may contains more than one livepatch module. We can see > which patch is enabled. If some patches applied to one system > modifing the same function, livepatch will use the function enabled > on top of the functio