event/sw: add xstats to expose progress details
authorHarry van Haaren <harry.van.haaren@intel.com>
Mon, 8 Mar 2021 09:22:14 +0000 (09:22 +0000)
committerJerin Jacob <jerinj@marvell.com>
Mon, 12 Apr 2021 07:19:02 +0000 (09:19 +0200)
commit324b37e637d15c172ea6f25aee3dcf3852984130
treee115e6b02f9926c70a4651876627a51a5440274d
parent8b1af885f6ac7cef128646c15a6ed8457a67b027
event/sw: add xstats to expose progress details

Today it is difficult to know if the SW Eventdev PMD is making
forward progress when it runs an iteration of its service. This
commit adds two xstats to give better visibility to the application.

The new xstats provide an application with which Eventdev ports
received work in the last iteration of scheduling, as well if
forward progress was made by the scheduler.

This patch implements an xstat for the SW PMD that exposes a
bitmask of ports that were scheduled to. In the unlikely case
that the SW PMD instance has 64 or more ports, return UINT64_MAX.

Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
drivers/event/sw/sw_evdev.h
drivers/event/sw/sw_evdev_scheduler.c
drivers/event/sw/sw_evdev_selftest.c
drivers/event/sw/sw_evdev_xstats.c