From: Jan Kiszka Subject: [PATCH 1/2] cobalt: Add _CC_COBALT_DEBUG_SYNC_BP feature Message-ID: <8271e30f-9fcf-b366-8154-922f988bf366@siemens.com> Date: Fri, 4 Oct 2019 15:47:06 +0200 MIME-Version: 1.0 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: Xenomai From: Jan Kiszka This signals if the core supports synchronous stop and resume on breakpoints. It depends on I-pipe support that is not available for all architectures and I-pipe kernel version. Signed-off-by: Jan Kiszka --- include/cobalt/uapi/corectl.h | 1 + kernel/cobalt/posix/corectl.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/include/cobalt/uapi/corectl.h b/include/cobalt/uapi/corectl.h index 98d989d635..8927c4fb07 100644 --- a/include/cobalt/uapi/corectl.h +++ b/include/cobalt/uapi/corectl.h @@ -33,6 +33,7 @@ # define _CC_COBALT_DEBUG_LEGACY 128 # define _CC_COBALT_DEBUG_TRACE_RELAX 256 # define _CC_COBALT_DEBUG_NET 512 +# define _CC_COBALT_DEBUG_SYNC_BP 1024 #define _CC_COBALT_GET_POLICIES 4 # define _CC_COBALT_SCHED_FIFO 1 diff --git a/kernel/cobalt/posix/corectl.c b/kernel/cobalt/posix/corectl.c index f7129ca64b..1b0d912008 100644 --- a/kernel/cobalt/posix/corectl.c +++ b/kernel/cobalt/posix/corectl.c @@ -79,6 +79,9 @@ static int do_conf_option(int option, void __user *u_buf, size_t u_bufsz) val |= _CC_COBALT_DEBUG_TRACE_RELAX; if (IS_ENABLED(CONFIG_XENO_DRIVERS_RTNET_CHECKED)) val |= _CC_COBALT_DEBUG_NET; +#ifdef IPIPE_KEVT_USERINTRET + val |= _CC_COBALT_DEBUG_SYNC_BP; +#endif break; case _CC_COBALT_GET_WATCHDOG: #ifdef CONFIG_XENO_OPT_WATCHDOG -- 2.16.4 -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux