Re: [PATCH v3 2/3] livepatch: Move tests from lib/livepatch to selftests/livepatch

2023-12-11 Thread Marcos Paulo de Souza
On Mon, 2023-12-11 at 14:56 -0700, Shuah Khan wrote: > On 12/7/23 12:19, mpdeso...@suse.com wrote: > > On Thu, 2023-12-07 at 10:20 -0500, Joe Lawrence wrote: > > > On 12/6/23 10:05, Miroslav Benes wrote: > > > > On Fri, 1 Dec 2023, Joe Lawrence wrote: > > > > > > > > > On Tue, Oct 31, 2023 at 06:1

Re: [PATCH v3 2/3] livepatch: Move tests from lib/livepatch to selftests/livepatch

2023-12-11 Thread Shuah Khan
On 12/7/23 12:19, mpdeso...@suse.com wrote: On Thu, 2023-12-07 at 10:20 -0500, Joe Lawrence wrote: On 12/6/23 10:05, Miroslav Benes wrote: On Fri, 1 Dec 2023, Joe Lawrence wrote: On Tue, Oct 31, 2023 at 06:10:52PM -0300, Marcos Paulo de Souza wrote: The modules are being moved from lib/livep

Re: [PATCH v3 2/3] livepatch: Move tests from lib/livepatch to selftests/livepatch

2023-12-08 Thread Petr Mladek
On Fri 2023-12-08 09:06:30, Miroslav Benes wrote: > > > My idea is to abandon this way completely, take the selftests and build > > > and run them on the system right away. > > > > > > Both should be doable, hopefully, if we wire it all correctly... and > > > document it. > > > > > I can't thin

Re: [PATCH v3 2/3] livepatch: Move tests from lib/livepatch to selftests/livepatch

2023-12-08 Thread Miroslav Benes
> > My idea is to abandon this way completely, take the selftests and build > > and run them on the system right away. > > > > Both should be doable, hopefully, if we wire it all correctly... and > > document it. > > > I can't think of why it shouldn't continue to work, even in a future > where

Re: [PATCH v3 2/3] livepatch: Move tests from lib/livepatch to selftests/livepatch

2023-12-07 Thread mpdesouza
On Thu, 2023-12-07 at 10:20 -0500, Joe Lawrence wrote: > On 12/6/23 10:05, Miroslav Benes wrote: > > On Fri, 1 Dec 2023, Joe Lawrence wrote: > > > > > On Tue, Oct 31, 2023 at 06:10:52PM -0300, Marcos Paulo de Souza > > > wrote: > > > > The modules are being moved from lib/livepatch to > > > > tool

Re: [PATCH v3 2/3] livepatch: Move tests from lib/livepatch to selftests/livepatch

2023-12-07 Thread Joe Lawrence
On 12/6/23 10:05, Miroslav Benes wrote: > On Fri, 1 Dec 2023, Joe Lawrence wrote: > >> On Tue, Oct 31, 2023 at 06:10:52PM -0300, Marcos Paulo de Souza wrote: >>> The modules are being moved from lib/livepatch to >>> tools/testing/selftests/livepatch/test_modules. >>> >>> This code moving will allo

Re: [PATCH v3 2/3] livepatch: Move tests from lib/livepatch to selftests/livepatch

2023-12-06 Thread Miroslav Benes
On Fri, 1 Dec 2023, Joe Lawrence wrote: > On Tue, Oct 31, 2023 at 06:10:52PM -0300, Marcos Paulo de Souza wrote: > > The modules are being moved from lib/livepatch to > > tools/testing/selftests/livepatch/test_modules. > > > > This code moving will allow writing more complex tests, like for examp

Re: [PATCH v3 2/3] livepatch: Move tests from lib/livepatch to selftests/livepatch

2023-12-01 Thread Joe Lawrence
On Tue, Oct 31, 2023 at 06:10:52PM -0300, Marcos Paulo de Souza wrote: > The modules are being moved from lib/livepatch to > tools/testing/selftests/livepatch/test_modules. > > This code moving will allow writing more complex tests, like for example an > userspace C code that will call a livepatch

[PATCH v3 2/3] livepatch: Move tests from lib/livepatch to selftests/livepatch

2023-10-31 Thread Marcos Paulo de Souza
The modules are being moved from lib/livepatch to tools/testing/selftests/livepatch/test_modules. This code moving will allow writing more complex tests, like for example an userspace C code that will call a livepatched kernel function. The modules are now built as out-of-tree modules, but being