On Fri, Feb 10, 2023 at 3:50 AM Jie Hai <haij...@huawei.com> wrote:
>
> 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,

What would an external user make of such an information?

I'd like to have a better idea what your usecase is.
If it is for debugging, well, gdb is probably a better candidate.


>     "mz_name": "RG_MP_mb_pool_0",
>     "mz_len": 2097536,
>     "mz_hugepage_sz": 1073741824,
>     "mz_socket_id": 0,
>     "mz_flags": "0x0"
>   }
> }


-- 
David Marchand

Reply via email to