Re: [PATCH 1/1] selftests: livepatch: add test cases of stack_order sysfs interface

2024-10-11 Thread Petr Mladek
On Fri 2024-10-11 09:51:07, zhang warden wrote: > > > > On Oct 10, 2024, at 23:51, Josh Poimboeuf wrote: > > > > Maybe add a replace=[true|false] module parameter. > > > > How to do it? > Isn't the way we build modules using make? > How to set this replace value? You could find inspiration

Re: [PATCH 1/1] selftests: livepatch: add test cases of stack_order sysfs interface

2024-10-10 Thread Josh Poimboeuf
On Fri, Oct 11, 2024 at 09:51:07AM +0800, zhang warden wrote: > > > > On Oct 10, 2024, at 23:51, Josh Poimboeuf wrote: > > > > Maybe add a replace=[true|false] module parameter. > > > > How to do it? > Isn't the way we build modules using make? > How to set this replace value? See for examp

Re: [PATCH 1/1] selftests: livepatch: add test cases of stack_order sysfs interface

2024-10-10 Thread zhang warden
> On Oct 10, 2024, at 23:51, Josh Poimboeuf wrote: > > Maybe add a replace=[true|false] module parameter. > How to do it? Isn't the way we build modules using make? How to set this replace value? Regards Wardenjohn

Re: [PATCH 1/1] selftests: livepatch: add test cases of stack_order sysfs interface

2024-10-10 Thread Josh Poimboeuf
On Thu, Oct 10, 2024 at 11:11:56PM +0800, zhang warden wrote: > > IIUC, you only need to test the stack order by loading LP modules. In > > this case you could use our currently existing LP testing module for > > that, right? That's what we currently do when testing different sysfs > > attributes.

Re: [PATCH 1/1] selftests: livepatch: add test cases of stack_order sysfs interface

2024-10-10 Thread zhang warden
Hi, Marcos! > On Oct 10, 2024, at 20:31, Marcos Paulo de Souza wrote: > > On Tue, 2024-10-08 at 15:52 +0800, Wardenjohn wrote: >> Add selftest test cases to sysfs attribute 'stack_order'. >> >> Signed-off-by: Wardenjohn >> --- >> .../testing/selftests/livepatch/test-sysfs.sh | 71 >>

Re: [PATCH 1/1] selftests: livepatch: add test cases of stack_order sysfs interface

2024-10-10 Thread Marcos Paulo de Souza
On Tue, 2024-10-08 at 15:52 +0800, Wardenjohn wrote: > Add selftest test cases to sysfs attribute 'stack_order'. > > Signed-off-by: Wardenjohn > --- >  .../testing/selftests/livepatch/test-sysfs.sh | 71 > +++ >  .../selftests/livepatch/test_modules/Makefile |  5 +- >  .../test_klp

[PATCH 1/1] selftests: livepatch: add test cases of stack_order sysfs interface

2024-10-08 Thread Wardenjohn
Add selftest test cases to sysfs attribute 'stack_order'. Signed-off-by: Wardenjohn --- .../testing/selftests/livepatch/test-sysfs.sh | 71 +++ .../selftests/livepatch/test_modules/Makefile | 5 +- .../test_klp_livepatch_noreplace.c| 53 ++ .../test_klp_l