Subject: Re: [PATCH v2 0/7] Export posix mqueues and named semaphores to procfs References: <20210825103230.27274-1-florian.bezdeka@siemens.com> From: Jan Kiszka Message-ID: <16ef30bb-9e0b-171d-3cb5-3bbd88a7c342@siemens.com> Date: Wed, 25 Aug 2021 12:44:38 +0200 MIME-Version: 1.0 In-Reply-To: <20210825103230.27274-1-florian.bezdeka@siemens.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: Florian Bezdeka , xenomai@xenomai.org On 25.08.21 12:32, Florian Bezdeka wrote: > Hi all, > > with this series I'm trying to care about all the feedback I got for > RFCs I sent out some days ago. Exporting mqueues and named semaphores to > the procfs helps to debug and identify resource leaks. > > mqueues will be exported to > /proc/xenomai/registry/posix/mqueue/ > > named semaphores will be exported to > /proc/xenomai/registry/posix/sem/ > > While adding the tests I noticed that the exit code of the subprocess > started in the smokey leak test was not correctly reported to the parent > process. That is now fixed as well. (See last patch for details) > > All patches compile time tested for all targets by the gitlab > hackerspace CI pipeline. In addition manually tested on ARM64. My > internal CI is currently out of order, so tests on real hardware were > skipped this time. > > Best regards, > Florian > > Changes in v2: > - Implement review comments from Jan: > - Split test adjustments into two separate patches > - Move the posix xpntree to process.c/internal.h > - Remove posix xpntree external declaration from sem.c and mqueue.c > > Florian Bezdeka (7): > cobalt/registry: Share xnregistry_vfreg_ops with other compile units > cobalt/registry: Initialize refcnt of exported virtual proc files > cobalt/posix/process: Adding a xnptree for exporting registry entries > cobalt/posix/mqueue: Export created mqueues to procfs > cobalt/posix/semaphore: Export named semaphores to procfs > testsuite/smokey/leaks: Fix error reporting from child to parent > process > testsuite/smokey/leaks: Adding checks for procfs exports > > include/cobalt/kernel/registry.h | 2 + > kernel/cobalt/posix/internal.h | 2 + > kernel/cobalt/posix/mqueue.c | 36 ++++++++++++++++- > kernel/cobalt/posix/process.c | 2 + > kernel/cobalt/posix/sem.c | 35 +++++++++++++++- > kernel/cobalt/registry.c | 1 + > testsuite/smokey/leaks/leaks.c | 68 +++++++++++++++++++++----------- > 7 files changed, 121 insertions(+), 25 deletions(-) > Thanks, applied to next. Jan -- Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux