CV-Bowen opened a new pull request, #21375:
URL: https://github.com/apache/nuttx/pull/21375

   ## Summary
   
   rpmsg_virtio, rpmsg_virtio_lite and rpmsg_port each walked the endpoint
   list in their dump op and printed only the endpoint names. Move the walk
   into a shared `rpmsg_dump_epts()` that also prints each endpoint's
   address, peer address, reference count, priority and private data, which
   is what is needed to tell a stuck or leaked endpoint from a healthy one.
   
   ## Impact
   
   `rpmsg dump` prints more per endpoint. No API or Kconfig change.
   
   ## Testing
   
   Host: Ubuntu 22.04.5 LTS x86_64, QEMU version 10.2.1, sim: cc (Ubuntu 
13.1.0-8ubuntu1~22.04) 13.1.0, qemu-armv8a: aarch64-none-elf-gcc (Arm GNU 
Toolchain 12.2.Rel1 (Build arm-12.24)) 12.2.1 20221205
   
   `rpmsg dump all` on qemu-armv8a:rpserver now shows, for the virtio link:
   
   ```
   [    6.443172] [ 8] [ EMERG] [server]     ept NS 0x404d5eb0: addr=53 dest=53 
refcnt=1 priority=127 priv=0x404d5ea0
   [    6.444092] [ 8] [ EMERG] [server]     ept rpmsg-sensor 0x404c2140: 
addr=1024 dest=1025 refcnt=1 priority=127 priv=0x404c2130
   [    6.445097] [ 8] [ EMERG] [server]     ept rpmsg-ping 0x404d5e20: 
addr=1025 dest=1026 refcnt=1 priority=127 priv=0
   [    6.446070] [ 8] [ EMERG] [server]     ept rpmsg-syslog 0x404c2380: 
addr=1026 dest=1024 refcnt=1 priority=127 priv=0x404c2370
   ```
   
   Baseline (runs `rpmsg dump all` on both configurations):
   
   Baseline (`test.sh`, cases: baseline.yaml):
   
   - host: Ubuntu 22.04.5 LTS x86_64, QEMU version 10.2.1, sim: cc (Ubuntu 
13.1.0-8ubuntu1~22.04) 13.1.0, qemu-armv8a: aarch64-none-elf-gcc (Arm GNU 
Toolchain 12.2.Rel1 (Build arm-12.24)) 12.2.1 20221205
   - tested: nuttx 5a0ee7f9197 apps 54374b3b2
   - qemu-armv8a built with test-only overlay: disabled LIBC_ENVPATH 
BINFMT_CHECKEXEC
   - sim:rpserver + sim:rpproxy: PASS
     - [x] `uname -a` (server)
     - [x] `rpmsg dump all` (server)
     - [x] `rpmsg ping all 10 1024 3 0` (server)
     - [x] `uname -a` (proxy)
     - [x] `rpmsg ping all 10 1024 3 0` (proxy)
     - [x] `mount -t rpmsgfs -o cpu=server,fs=/proc /sp` (proxy)
     - [x] `cat /sp/version` (proxy)
     - [x] `rpmsg dump all` (proxy)
   - qemu-armv8a:rpserver + qemu-armv8a:rpproxy: PASS
     - [x] `uname -a` (server)
     - [x] `uname -a` (proxy)
     - [x] `rpmsg dump all` (server)
     - [x] `rpmsg ping all 10 1024 3 0` (server)
     - [x] `rpmsg ping all 10 1024 3 0` (proxy)
     - [x] `mount -t rpmsgfs -o cpu=server,fs=/proc /sp` (proxy)
     - [x] `cat /sp/version` (proxy)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to