Re: [PATCH v3] selftests: add new kallsyms selftests

2024-11-28 Thread Luis Chamberlain
On Thu, Nov 28, 2024 at 03:10:34PM +0100, Geert Uytterhoeven wrote: > Despite the warning, I gave this a try on m68k (cross-compiled on i7 ;-). > However, I didn't notice any extra-ordinary build times. I had some large values before this got merged and due to this slowing down builds 2x I reduced

Re: [PATCH v3] selftests: add new kallsyms selftests

2024-11-28 Thread Geert Uytterhoeven
Hi Luis, On Mon, Oct 21, 2024 at 9:33 PM Luis Chamberlain wrote: > We lack find_symbol() selftests, so add one. This let's us stress test > improvements easily on find_symbol() or optimizations. It also inherently > allows us to test the limits of kallsyms on Linux today. > > We test a pathalogic

Re: [PATCH v3] selftests: add new kallsyms selftests

2024-11-05 Thread Luis Chamberlain
On Tue, Oct 29, 2024 at 09:24:30AM -0700, Sami Tolvanen wrote: > Hi Luis, > > On Mon, Oct 21, 2024 at 12:33 PM Luis Chamberlain wrote: > > > > diff --git a/lib/tests/module/gen_test_kallsyms.sh > > b/lib/tests/module/gen_test_kallsyms.sh > > new file mode 100755 > > index ..e85f10dc1

Re: [PATCH v3] selftests: add new kallsyms selftests

2024-10-29 Thread Sami Tolvanen
Hi Luis, On Mon, Oct 21, 2024 at 12:33 PM Luis Chamberlain wrote: > > diff --git a/lib/tests/module/gen_test_kallsyms.sh > b/lib/tests/module/gen_test_kallsyms.sh > new file mode 100755 > index ..e85f10dc11bd > --- /dev/null > +++ b/lib/tests/module/gen_test_kallsyms.sh > @@ -0,0 +1,

Re: [PATCH v3] selftests: add new kallsyms selftests

2024-10-24 Thread Luis Chamberlain
On Wed, Oct 23, 2024 at 10:28:49AM -0700, Jeff Johnson wrote: > On 10/21/24 12:33, Luis Chamberlain wrote: > ... > > +gen_template_module_exit() > > +{ > > + cat < > +static int __init auto_test_module_init(void) > > +{ > > + return auto_runtime_test(); > > +} > > +module_init(

Re: [PATCH v3] selftests: add new kallsyms selftests

2024-10-23 Thread Jeff Johnson
On 10/21/24 12:33, Luis Chamberlain wrote: ... > +gen_template_module_exit() > +{ > + cat < +static int __init auto_test_module_init(void) > +{ > + return auto_runtime_test(); > +} > +module_init(auto_test_module_init); > + > +static void __exit auto_test_module_exit(void)

[PATCH v3] selftests: add new kallsyms selftests

2024-10-21 Thread Luis Chamberlain
We lack find_symbol() selftests, so add one. This let's us stress test improvements easily on find_symbol() or optimizations. It also inherently allows us to test the limits of kallsyms on Linux today. We test a pathalogical use case for kallsyms by introducing modules which are automatically writ