Subject: Re: [xenomai-image PATCH v2 5/5] Add kas option for swithing off debug References: <20210727004217.10892-1-hongzhan.chen@intel.com> <20210727004217.10892-6-hongzhan.chen@intel.com> From: Jan Kiszka Message-ID: <4a7e2141-9889-d024-bd1d-abc36d70fb31@siemens.com> Date: Tue, 27 Jul 2021 12:51:33 +0200 MIME-Version: 1.0 In-Reply-To: <20210727004217.10892-6-hongzhan.chen@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Hongzhan Chen , xenomai@xenomai.org On 27.07.21 02:42, Hongzhan Chen via Xenomai wrote: > For performance or latency testing and demonstration, debug switches > should be off but it is on by default. > > Signed-off-by: Hongzhan Chen > --- > opt-set-nodbg.yml | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) > create mode 100644 opt-set-nodbg.yml > > diff --git a/opt-set-nodbg.yml b/opt-set-nodbg.yml > new file mode 100644 > index 0000000..16a2fec > --- /dev/null > +++ b/opt-set-nodbg.yml > @@ -0,0 +1,20 @@ > +# > +# Xenomai Real-Time System > +# > +# Copyright (C) 2021 Intel Corporation > +# > +# Authors: > +# Hongzhan Chen > +# > +# SPDX-License-Identifier: MIT > +# > + > +header: > + version: 10 > + > +# to use kernel config fragments for disabling dbg and > +# improving performance > + > +local_conf_header: > + distro-nodbg: | > + DISTRO_NODBG = "YES" > We tend to use "0" / "1" for bitbake boolean vars. Furthermore, I wonder if we shouldn't switch default to no-debug and explicitly turn debugging on in our CI/testing. In any case, some short hint on this control in the README would be good. Jan -- Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux