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

   ## Summary
   
   - `drivers/rpmsg/rpmsg_ping: log the start and end of each ping run`: a
     run printed statistics only at the end, and a failed send returned
     without a message, so a stalled link left no trace. Each run now logs
     its start and end with a per-device sequence number, a timestamp, the
     two cpu names and the parameters; the end is logged also when a send
     fails.
   
   ## Impact
   
   - `rpmsg ping` prints two more lines per run (start and end).
   - 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
   
   The commit builds sim:rpserver, sim:rpproxy, qemu-armv8a:rpserver,
   qemu-armv8a:rpproxy and qemu-armv7a:rpserver with 0 warnings.
   
   **Ping log (sim and qemu-armv8a, both directions).** Added to the
   baseline run:
   
   ```
   server> rpmsg ping all 3 64 1 0
   [   19.190681] [server] ping #2 start at 19.190680348: server <-> proxy, 
times 3, len 64, cmd 0x1, sleep 0 ms
   [   19.220133] [server] ping times: 3
   [   19.220513] [server] buffer_len: 1520, send_len: 64
   [   19.220668] [server] avg: 0 s, 9610752 ns
   [   19.220761] [server] min: 0 s, 8883919 ns
   [   19.220893] [server] max: 0 s, 9996272 ns
   [   19.221106] [server] rate: 0.053273 Mbits/sec
   [   19.221616] [server] ping #2 end at 19.221616139: 3 of 3 done, ret 0
   ```
   
   Not tested: the end line after a failed send (needs a link that drops
   mid-run).
   
   No regression in rpmsg: sim:rpserver/rpproxy and 
qemu-armv8a:rpserver/rpproxy boot and pass the fixed rpmsg cases (dump, ping, 
rpmsgfs; 20/20). qemu-armv8a was built with LIBC_ENVPATH and BINFMT_CHECKEXEC 
disabled, which current master needs for nxinit to start nsh there; unrelated 
to this change.
   


-- 
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