Re: [PATCH 14/15] static_call: Simple self-test module

From: Josh Poimboeuf
Date: Mon Jun 10 2019 - 13:29:09 EST


On Wed, Jun 05, 2019 at 03:08:07PM +0200, Peter Zijlstra wrote:
>
> Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
> ---
> lib/Kconfig.debug | 8 ++++++++
> lib/Makefile | 1 +
> lib/test_static_call.c | 41 +++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 50 insertions(+)
>
> --- a/lib/Kconfig.debug
> +++ b/lib/Kconfig.debug
> @@ -1955,6 +1955,14 @@ config TEST_STATIC_KEYS
>
> If unsure, say N.
>
> +config TEST_STATIC_CALL
> + tristate "Test static call"
> + depends on m
> + help
> + Test the static call interfaces.
> +
> + If unsure, say N.
> +

Any reason why we wouldn't just make this a built-in boot time test?

--
Josh