[PATCH v6 5/5] telemetry: add /eal/lcore/usage endpoint
Kevin Laatz
kevin.laatz at intel.com
Thu Jan 19 20:42:24 CET 2023
On 19/01/2023 15:06, Robin Jarry wrote:
> Allow fetching CPU cycles usage for all lcores with a single request.
> This endpoint is intended for repeated and frequent invocations by
> external monitoring systems and therefore returns condensed data.
>
> It consists of a single dictionary with three keys: "lcore_ids",
> "total_cycles" and "busy_cycles" that are mapped to three arrays of
> integer values. Each array has the same number of values, one per lcore,
> in the same order.
>
> Example:
>
> --> /eal/lcore/usage
> {
> "/eal/lcore/usage": {
> "lcore_ids": [
> 4,
> 5
> ],
> "total_cycles": [
> 23846845590,
> 23900558914
> ],
> "busy_cycles": [
> 21043446682,
> 21448837316
> ]
> }
> }
>
> Cc: Kevin Laatz <kevin.laatz at intel.com>
> Cc: Morten Brørup <mb at smartsharesystems.com>
> Signed-off-by: Robin Jarry <rjarry at redhat.com>
> ---
>
> Notes:
> v6: new patch
>
> lib/eal/common/eal_common_lcore.c | 64 +++++++++++++++++++++++++++++++
> 1 file changed, 64 insertions(+)
>
Thanks for adding this!
Reviewed-by: Kevin Laatz <kevin.laatz at intel.com>
More information about the dev
mailing list