[PATCH v4 3/3] ring: add telemetry cmd for ring info

lihuisong (C) lihuisong at huawei.com
Thu Feb 16 07:54:54 CET 2023


在 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 <haijie1 at huawei.com>
> Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli at arm.com>
lgtm,
Acked-by: Huisong Li <lihuisong at huawei.com>


More information about the dev mailing list