[PATCH v3] app/procinfo: display eventdev xstats for PMD data
Sevincer, Abdullah
abdullah.sevincer at intel.com
Fri Feb 17 16:58:52 CET 2023
Hi folks,
Any chance to look at this commit? Any other feedback before I push V6? (will remove extra line there below in the commit)
-----Original Message-----
From: Sevincer, Abdullah <abdullah.sevincer at intel.com>
Sent: Sunday, February 12, 2023 11:44 AM
To: Stephen Hemminger <stephen at networkplumber.org>
Cc: dev at dpdk.org; jerinj at marvell.com
Subject: RE: [PATCH v3] app/procinfo: display eventdev xstats for PMD data
Thanks Stephen,
I will remove extra line there.
Instead malloc using of calloc is required or just suggestion?
I can see allocation is done in same way with malloc in lib\eventdev\rte_eventdev.c (reference to eventdev_build_telemetry_data function).
I will keep malloc as it is if there is no opposition.
Thanks,
Abdullah.
-----Original Message-----
From: Stephen Hemminger <stephen at networkplumber.org>
Sent: Monday, February 6, 2023 4:22 PM
To: Sevincer, Abdullah <abdullah.sevincer at intel.com>
Cc: dev at dpdk.org; jerinj at marvell.com
Subject: Re: [PATCH v3] app/procinfo: display eventdev xstats for PMD data
On Mon, 6 Feb 2023 17:05:05 -0600
Abdullah Sevincer <abdullah.sevincer at intel.com> wrote:
> +
> + size = (unsigned int)ret; /* number of names */
> +
> + /* Get memory to hold stat names, IDs, and values */
> +
> + xstats_names = malloc(sizeof(struct rte_event_dev_xstats_name) * size);
> + ids = malloc(sizeof(unsigned int) * size);
> +
> +
> + if (!xstats_names || !ids)
> + rte_panic("unable to alloc memory for stats retrieval\n");
You might want to use calloc() here.
Seems like lots of extra blank lines.
More information about the dev
mailing list