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.la...@intel.com>
Cc: Morten Brørup <m...@smartsharesystems.com>
Signed-off-by: Robin Jarry <rja...@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.la...@intel.com>


Reply via email to