[linux-yocto] [kernel-cache][PATCH] qemuppc rt: drop CONFIG_OPROFILE

Bruce Ashfield bruce.ashfield at windriver.com
Thu Oct 26 00:24:29 PDT 2017


On 10/26/2017 01:45 AM, lei.yang at windriver.com wrote:
> From: Lei Yang <Lei.Yang at windriver.com>
> 
> CONFIG_OPROFILE will be excluded from the final .config since it's
> incompatible with preempt-rt. We don't need this feature (since it
> is disabled by rt patches)

I've actually kept this in the fragment on purpose, since that way
it is clearly documented (versus someone having to go into the
source tree), not to mention, if a restriction like this was changed
in the kernel at some future point, we still don't want th is to be
enabled.

I'm actually going to tweak the tools shortly to not warn in the
case of # is not set -> not in final .config, so I'll keep this
around for testing that patch.

Thanks for pointing this out, I otherwise may have forgotten.

Bruce

> 
> please check:
>      Subject: kconfig: Disable config options which are not RT compatible
>      From: Thomas Gleixner <tglx at linutronix.de>
>      Date: Sun, 24 Jul 2011 12:11:43 +0200
> 
>      Disable stuff which is known to have issues on RT
> 
>      Signed-off-by: Thomas Gleixner <tglx at linutronix.de>
>      ---
>       arch/Kconfig |    1 +
>       mm/Kconfig   |    2 +-
>       2 files changed, 2 insertions(+), 1 deletion(-)
> 
>      --- a/arch/Kconfig
>      +++ b/arch/Kconfig
>      @@ -12,6 +12,7 @@ config OPROFILE
>              tristate "OProfile system profiling"
>              depends on PROFILING
>              depends on HAVE_OPROFILE
>      +       depends on !PREEMPT_RT_FULL
> 
> This lack of "is not set" triggers a warning. To avoid the
> warning, we drop the option.
> 
> Signed-off-by: Lei Yang <Lei.Yang at windriver.com>
> ---
>   bsp/qemu-ppc32/qemu-ppc32-rt.cfg | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/bsp/qemu-ppc32/qemu-ppc32-rt.cfg b/bsp/qemu-ppc32/qemu-ppc32-rt.cfg
> index 9576cb5..2946458 100644
> --- a/bsp/qemu-ppc32/qemu-ppc32-rt.cfg
> +++ b/bsp/qemu-ppc32/qemu-ppc32-rt.cfg
> @@ -1,2 +1 @@
>   # CONFIG_PROFILING is not set
> -# CONFIG_OPROFILE is not set
> 



More information about the linux-yocto mailing list