Acked-by: Chengwen Feng <[email protected]>
On 2024/9/25 14:40, 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 <[email protected]>
> Reviewed-by: Ferruh Yigit <[email protected]>