Re: [PATCH v2 6/6] powerpc/64: Add tests for out-of-line static calls

2022-09-26 Thread Christophe Leroy
Le 27/09/2022 à 05:31, Benjamin Gray a écrit : > On Mon, 2022-09-26 at 14:55 +, Christophe Leroy wrote: >>> +config PPC_STATIC_CALL_KUNIT_TEST >>> +   tristate "KUnit tests for PPC64 ELF ABI V2 static calls" >>> +   default KUNIT_ALL_TESTS >>> +   depends on HAVE_STATIC_CALL && PP

Re: [PATCH v2 6/6] powerpc/64: Add tests for out-of-line static calls

2022-09-26 Thread Benjamin Gray
On Mon, 2022-09-26 at 14:55 +, Christophe Leroy wrote: > > +config PPC_STATIC_CALL_KUNIT_TEST > > +   tristate "KUnit tests for PPC64 ELF ABI V2 static calls" > > +   default KUNIT_ALL_TESTS > > +   depends on HAVE_STATIC_CALL && PPC64_ELF_ABI_V2 && KUNIT && > > m > > Is there a re

Re: [PATCH v2 6/6] powerpc/64: Add tests for out-of-line static calls

2022-09-26 Thread Christophe Leroy
Le 26/09/2022 à 08:43, Benjamin Gray a écrit : > KUnit tests for the various combinations of caller/trampoline/target and > kernel/module. They must be run from a module loaded at runtime to > guarantee they have a different TOC to the kernel. > > The tests try to mitigate the chance of panicing

[PATCH v2 6/6] powerpc/64: Add tests for out-of-line static calls

2022-09-25 Thread Benjamin Gray
KUnit tests for the various combinations of caller/trampoline/target and kernel/module. They must be run from a module loaded at runtime to guarantee they have a different TOC to the kernel. The tests try to mitigate the chance of panicing by restoring the TOC after every static call. Not all poss