RE: [PATCH v12] app/procinfo: display eventdev xstats

2023-03-21 Thread Pattan, Reshma
> -Original Message- > From: Sevincer, Abdullah > > >+Ex 1: Where you want to show queue 0 xstats of eventdev 2 and port0 > >+xstats of eventdev 1 ./proc --show-evendev-port-xtstas=0:1 > >+--show-evendev-queue-xsats=0:2 > > >+Thanks. > >+Reshma > > > If you want your approach of mai

RE: [PATCH v12] app/procinfo: display eventdev xstats

2023-03-21 Thread Sevincer, Abdullah
>+Having structure like suggested not only help-s simple data handling but also >would help for the cases like below , where you need to maintain different >event ids in the code. >+With the current patch version the below scenario is not possible as you have >only one global variable for t

RE: [PATCH v12] app/procinfo: display eventdev xstats

2023-03-21 Thread Pattan, Reshma
> -Original Message- > From: Sevincer, Abdullah > >+Ex: > >+struct eventdev_params { > >+unit8_t eventdev_id; > >+unit8_t ports[MAX_PORTS_QUEUES] > >+ unit8_t queues[MAX_PORTS_QUEUES] > >+ static uint8_t num_queues > >+ static

RE: [PATCH v12] app/procinfo: display eventdev xstats

2023-03-20 Thread Sevincer, Abdullah
> -Original Message- > From: Sevincer, Abdullah > +static uint8_t evdev_id; > +static uint8_t num_ports; > +static uint8_t ports[MAX_PORTS_QUEUES]; >+static uint8_t num_queues; > +static uint8_t queues[MAX_PORTS_QUEUES]; static uint32_t > +enable_shw_all_eventdev_queues; static uint3

RE: [PATCH v12] app/procinfo: display eventdev xstats

2023-03-20 Thread Sevincer, Abdullah
+>How about keeping a struct to maintain all the data together that way you know on which all ports and queues of eventdev we have requested display. +>You can refer the existing code "struct desc_param" to see how this is done Then you can declare global variables of type struct eventdev_pa

RE: [PATCH v12] app/procinfo: display eventdev xstats

2023-03-20 Thread Pattan, Reshma
> -Original Message- > From: Sevincer, Abdullah > +static uint8_t evdev_id; > +static uint8_t num_ports; > +static uint8_t ports[MAX_PORTS_QUEUES]; >+static uint8_t num_queues; > +static uint8_t queues[MAX_PORTS_QUEUES]; > +static uint32_t enable_shw_all_eventdev_queues; static uint32

[PATCH v12] app/procinfo: display eventdev xstats

2023-03-19 Thread Abdullah Sevincer
This commit extends proc-info application to display xstats for the eventdev devices. New command line arguments are introduced to display xstats for eventdev devices. The command example is like: For displaying a specific port stats (e.g. port 1): ./dpdk-proc-info -- --show-edev-port-xstats=1:0