在 2023/2/10 10:48, Jie Hai 写道:
This patch supports dump of ring information by its name.
An example using this command is shown below:

--> /ring/info,MP_mb_pool_0
{
   "/ring/info": {
     "name": "MP_mb_pool_0",
     "socket": 0,
     "flags": "0x0",
     "producer_type": "MP",
     "consumer_type": "MC",
     "size": 262144,
     "mask": "0x3ffff",
     "capacity": 262143,
     "used_count": 153197,
     "consumer_tail": 2259,
     "consumer_head": 2259,
     "producer_tail": 155456,
     "producer_head": 155456,
     "mz_name": "RG_MP_mb_pool_0",
     "mz_len": 2097536,
     "mz_hugepage_sz": 1073741824,
     "mz_socket_id": 0,
     "mz_flags": "0x0"
   }
}

Signed-off-by: Jie Hai <haij...@huawei.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagaraha...@arm.com>
lgtm,
Acked-by: Huisong Li <lihuis...@huawei.com>

Reply via email to