[PATCH v7 2/8] ethdev: add telemetry cmd for registers
Ferruh Yigit
ferruh.yigit at amd.com
Sun Sep 22 23:28:12 CEST 2024
On 9/14/2024 8:13 AM, Jie Hai wrote:
> This patch adds a telemetry command for registers dump,
> and supports obtaining the registers of a specified module.
>
> In one way, the number of registers that can be exported
> is limited by the number of elements carried by dict and
> container. In another way, the length of the string
> exported by telemetry is limited by MAX_OUTPUT_LEN.
> Therefore, when the number of registers to be exported
> exceeds, some information will be lost. Warn on the former
> case.
>
> An example usage is shown below:
> --> /ethdev/regs,0,ring
> {
> "/ethdev/regs": {
> "registers_length": 318,
> "registers_width": 4,
> "register_offset": "0x0",
> "version": "0x1140011",
> "group_0": {
> "Q0_ring_rx_bd_num": "0x0",
> "Q0_ring_rx_bd_len": "0x0",
> ...
> },
> "group_1": {
> ...
> },
> ...
> }
>
> Signed-off-by: Jie Hai <haijie1 at huawei.com>
>
Reviewed-by: Ferruh Yigit <ferruh.yigit at amd.com>
More information about the dev
mailing list