PetervdPerk-NXP opened a new pull request, #17847:
URL: https://github.com/apache/nuttx/pull/17847

   ## Summary
   
   This adds a Kconfig option to optionally track the allocating context of 
each IOB (task PID or ISR). The extra metadata makes it much easier to diagnose 
IOB leaks, starvation, and ownership/lifetime bugs across task/ISR boundaries 
without changing the IOB API seen by callers.
   
   Example
   ```
   nsh> cat /proc/iobinfo
       ntotal     nfree     nwait nthrottle
           24         0         2         0
   00 0x2024f77c -> 0x2024f850 pid=1306 flags=0x01
   01 0x2024f850 -> 0 pid=1306 flags=0x01
   02 0x2024f924 -> 0x2024f77c pid=1306 flags=0x01
   03 0x2024f9f8 -> 0x2024f924 pid=1306 flags=0x01
   04 0x2024facc -> 0x2024f9f8 pid=1306 flags=0x01
   05 0x2024fba0 -> 0x2024facc pid=1306 flags=0x01
   06 0x2024fc74 -> 0x2024fba0 pid=1306 flags=0x01
   07 0x2024fd48 -> 0 pid=1306 flags=0x01
   08 0x2024fe1c -> 0x2024fd48 pid=1306 flags=0x01
   09 0x2024fef0 -> 0x2024fe1c pid=1306 flags=0x01
   10 0x2024ffc4 -> 0x2024fef0 pid=1306 flags=0x01
   11 0x20250098 -> 0x2024ffc4 pid=1306 flags=0x01
   12 0x2025016c -> 0x20250098 pid=1306 flags=0x01
   13 0x20250240 -> 0x2025016c pid=1306 flags=0x01
   14 0x20250314 -> 0x20250240 pid=1306 flags=0x01
   15 0x202503e8 -> 0 pid=1306 flags=0x01
   16 0x202504bc -> 0x202503e8 pid=1306 flags=0x01
   17 0x20250590 -> 0x202504bc pid=1306 flags=0x01
   18 0x20250664 -> 0x20250590 pid=1306 flags=0x01
   19 0x20250738 -> 0x20250664 pid=1306 flags=0x01
   20 0x2025080c -> 0x20250738 pid=1306 flags=0x01
   21 0x202508e0 -> 0x2025080c pid=1306 flags=0x01
   22 0x202509b4 -> 0x202508e0 pid=1306 flags=0x01
   23 0x20250a88 -> 0 pid=1306 flags=0x01
   
   ```
   
   ## Impact
   
   Kconfig debug toggle
   
   ## Testing
   
   IMXRT
   


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