All of lore.kernel.org
 help / color / mirror / Atom feed
* [xenomai-image 0/2] control applying of no debug config
@ 2021-07-28  8:20 Hongzhan Chen
  2021-07-28  8:21 ` [xenomai-image 1/2] recipes-kernel/linux: control appyling of no debug config fragment Hongzhan Chen
  2021-07-28  8:21 ` [xenomai-image 2/2] Add kas option for swithing on xenomai debug Hongzhan Chen
  0 siblings, 2 replies; 4+ messages in thread
From: Hongzhan Chen @ 2021-07-28  8:20 UTC (permalink / raw)
  To: xenomai

1. We apply no debug fragment by default.
2. User may want to switch on xenomai debug explicitly.

Hongzhan Chen (2):
  recipes-kernel/linux: control appyling of no debug config fragment
  Add kas option for swithing on xenomai debug

 README.md                              |  5 +++++
 opt-debug.yml                          | 19 +++++++++++++++++++
 recipes-kernel/linux/linux-xenomai.inc |  2 ++
 3 files changed, 26 insertions(+)
 create mode 100644 opt-debug.yml

-- 
2.17.1



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [xenomai-image 1/2] recipes-kernel/linux: control appyling of no debug config fragment
  2021-07-28  8:20 [xenomai-image 0/2] control applying of no debug config Hongzhan Chen
@ 2021-07-28  8:21 ` Hongzhan Chen
  2021-07-28  8:21 ` [xenomai-image 2/2] Add kas option for swithing on xenomai debug Hongzhan Chen
  1 sibling, 0 replies; 4+ messages in thread
From: Hongzhan Chen @ 2021-07-28  8:21 UTC (permalink / raw)
  To: xenomai

By default, nodbg config fragment would be applied.

Signed-off-by: Hongzhan Chen <hongzhan.chen@intel.com>
---
 recipes-kernel/linux/linux-xenomai.inc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/recipes-kernel/linux/linux-xenomai.inc b/recipes-kernel/linux/linux-xenomai.inc
index 185b60b..1852bf6 100644
--- a/recipes-kernel/linux/linux-xenomai.inc
+++ b/recipes-kernel/linux/linux-xenomai.inc
@@ -12,8 +12,10 @@
 require recipes-kernel/linux/linux-custom.inc
 
 KERNEL_DEFCONFIG ?= "${DISTRO_ARCH}_defconfig"
+XENOMAI_DEBUG ?= "0"
 
 SRC_URI += "file://${KERNEL_DEFCONFIG}"
+SRC_URI += "${@'file://common_nodbg.cfg' if d.getVar('XENOMAI_DEBUG') == '0' else ''}"
 
 DEPENDS += "xenomai-kernel-source"
 KBUILD_DEPENDS += "xenomai-kernel-source"
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [xenomai-image 2/2] Add kas option for swithing on xenomai debug
  2021-07-28  8:20 [xenomai-image 0/2] control applying of no debug config Hongzhan Chen
  2021-07-28  8:21 ` [xenomai-image 1/2] recipes-kernel/linux: control appyling of no debug config fragment Hongzhan Chen
@ 2021-07-28  8:21 ` Hongzhan Chen
  2021-07-28  9:01   ` Jan Kiszka
  1 sibling, 1 reply; 4+ messages in thread
From: Hongzhan Chen @ 2021-07-28  8:21 UTC (permalink / raw)
  To: xenomai

Xenomai related debug that may influence performance is switched
off by default.

Signed-off-by: Hongzhan Chen <hongzhan.chen@intel.com>
---
 README.md     |  5 +++++
 opt-debug.yml | 19 +++++++++++++++++++
 2 files changed, 24 insertions(+)
 create mode 100644 opt-debug.yml

diff --git a/README.md b/README.md
index 004c854..2f48181 100644
--- a/README.md
+++ b/README.md
@@ -30,6 +30,11 @@ The QEMU ARM64 target is selected by `... kas.yml:board-qemu-arm64.yml` and
 started via `start-qemu.sh arm64`. Make sure to have `qemu-aarch64-system`
 installed.
 
+Xenomai related debug is switched off by default. But you still can switch it
+on like this:
+
+    kas-container build kas.yml:board-qemu-amd64.yml:opt-debug.yml
+
 ### Physical Targets
 
 This repository contains recipes for x86 (`board-x86-64-efi.yml`),
diff --git a/opt-debug.yml b/opt-debug.yml
new file mode 100644
index 0000000..d967b83
--- /dev/null
+++ b/opt-debug.yml
@@ -0,0 +1,19 @@
+#
+# Xenomai Real-Time System
+#
+# Copyright (C) 2021 Intel Corporation
+#
+# Authors:
+#  Hongzhan Chen <hongzhan.chen@intel.com>
+#
+# SPDX-License-Identifier: MIT
+#
+
+header:
+  version: 10
+
+# do not apply no debug kernel config fragment
+
+local_conf_header:
+  xenomai-debug: |
+    XENOMAI_DEBUG = "1"
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [xenomai-image 2/2] Add kas option for swithing on xenomai debug
  2021-07-28  8:21 ` [xenomai-image 2/2] Add kas option for swithing on xenomai debug Hongzhan Chen
@ 2021-07-28  9:01   ` Jan Kiszka
  0 siblings, 0 replies; 4+ messages in thread
From: Jan Kiszka @ 2021-07-28  9:01 UTC (permalink / raw)
  To: Hongzhan Chen, xenomai

On 28.07.21 10:21, Hongzhan Chen via Xenomai wrote:
> Xenomai related debug that may influence performance is switched
> off by default.
> 
> Signed-off-by: Hongzhan Chen <hongzhan.chen@intel.com>
> ---
>  README.md     |  5 +++++
>  opt-debug.yml | 19 +++++++++++++++++++
>  2 files changed, 24 insertions(+)
>  create mode 100644 opt-debug.yml
> 
> diff --git a/README.md b/README.md
> index 004c854..2f48181 100644
> --- a/README.md
> +++ b/README.md
> @@ -30,6 +30,11 @@ The QEMU ARM64 target is selected by `... kas.yml:board-qemu-arm64.yml` and
>  started via `start-qemu.sh arm64`. Make sure to have `qemu-aarch64-system`
>  installed.
>  
> +Xenomai related debug is switched off by default. But you still can switch it
> +on like this:
> +
> +    kas-container build kas.yml:board-qemu-amd64.yml:opt-debug.yml
> +
>  ### Physical Targets
>  
>  This repository contains recipes for x86 (`board-x86-64-efi.yml`),
> diff --git a/opt-debug.yml b/opt-debug.yml
> new file mode 100644
> index 0000000..d967b83
> --- /dev/null
> +++ b/opt-debug.yml
> @@ -0,0 +1,19 @@
> +#
> +# Xenomai Real-Time System
> +#
> +# Copyright (C) 2021 Intel Corporation
> +#
> +# Authors:
> +#  Hongzhan Chen <hongzhan.chen@intel.com>
> +#
> +# SPDX-License-Identifier: MIT
> +#
> +
> +header:
> +  version: 10
> +
> +# do not apply no debug kernel config fragment
> +
> +local_conf_header:
> +  xenomai-debug: |
> +    XENOMAI_DEBUG = "1"
> 

The two patches are fine, but we are now missing :opt-debug.yml in the
CI jobs (ci/gitlab-ci-base.yml -> .build:).

Jan

-- 
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-07-28  9:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-28  8:20 [xenomai-image 0/2] control applying of no debug config Hongzhan Chen
2021-07-28  8:21 ` [xenomai-image 1/2] recipes-kernel/linux: control appyling of no debug config fragment Hongzhan Chen
2021-07-28  8:21 ` [xenomai-image 2/2] Add kas option for swithing on xenomai debug Hongzhan Chen
2021-07-28  9:01   ` Jan Kiszka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.