diff --git a/tools/pynuttx/nxgdb/mm.py b/tools/pynuttx/nxgdb/mm.py index 4c51a83716..7ec814164d 100644 --- a/tools/pynuttx/nxgdb/mm.py +++ b/tools/pynuttx/nxgdb/mm.py @@ -193,6 +193,10 @@ class MemPool(Value, p.MemPool): ninit = 0 yield (int(entry) - blks * blksize, int(entry)) + @property + def nqueue(self) -> int: + return lists.sq_count(self.equeue) + @property def size(self) -> int: """Real block size including backtrace overhead""" @@ -654,7 +658,7 @@ class MMPoolInfo(gdb.Command): name_max = max(len(pool.name) for pool in pools) + 11 # 11: "@0x12345678" formatter = ( - "{:>%d} {:>11} {:>9} {:>9} {:>9} {:>9} {:>9} {:>9} {:>9}\n" % name_max + "{:>%d} {:>11} {:>9} {:>9} {:>9} {:>9} {:>9} {:>9} {:>9} {:>9}\n" % name_max ) head = ( "", @@ -666,6 +670,7 @@ class MMPoolInfo(gdb.Command): "nfree", "nifree", "nwaiter", + "nqueue", ) gdb.write(formatter.format(*head)) @@ -681,5 +686,6 @@ class MMPoolInfo(gdb.Command): pool.nfree, pool.nifree, pool.nwaiter, + pool.nqueue, ) )