Re: [POC 3/7] livepatch: Use per-state callbacks in state API tests

2024-08-16 Thread Petr Mladek
On Thu 2024-07-25 13:48:06, Miroslav Benes wrote: > Hi, > > On Fri, 10 Nov 2023, Petr Mladek wrote: > > > Recent changes in the livepatch core have allowed to connect states, > > shadow variables, and callbacks. Use these new features in > > the state tests. > > > > Use the shadow variable API t

Re: [POC 3/7] livepatch: Use per-state callbacks in state API tests

2024-07-25 Thread Miroslav Benes
Hi, On Fri, 10 Nov 2023, Petr Mladek wrote: > Recent changes in the livepatch core have allowed to connect states, > shadow variables, and callbacks. Use these new features in > the state tests. > > Use the shadow variable API to store the original loglevel. It is > better suited for this purpos

[POC 3/7] livepatch: Use per-state callbacks in state API tests

2023-11-10 Thread Petr Mladek
Recent changes in the livepatch core have allowed to connect states, shadow variables, and callbacks. Use these new features in the state tests. Use the shadow variable API to store the original loglevel. It is better suited for this purpose than directly accessing the .data pointer in state klp_s