[PATCH v2] service: extend service function call statistics

David Marchand david.marchand at redhat.com
Tue Oct 1 17:24:58 CEST 2024


On Mon, Sep 9, 2024 at 9:28 PM Mattias Rönnblom
<mattias.ronnblom at ericsson.com> wrote:
>
> Add two new per-service counters.
>
> RTE_SERVICE_ATTR_IDLE_CALL_COUNT tracks the number of service function
> invocations where no work was performed.
>
> RTE_SERVICE_ATTR_ERROR_CALL_COUNT tracks the number invocations
> resulting in an error.
>
> The semantics of RTE_SERVICE_ATTR_CALL_COUNT remains the same (i.e.,
> counting all invocations, regardless of return value).
>
> The new statistics may be useful for both debugging and profiling
> (e.g., calculate the average per-call processing latency for non-idle
> service calls).
>
> Service core tests are extended to cover the new counters, and
> coverage for RTE_SERVICE_ATTR_CALL_COUNT is improved.
>
> The documentation for the CYCLES attributes are updated to reflect
> their actual semantics.
>
> Signed-off-by: Mattias Rönnblom <mattias.ronnblom at ericsson.com>
Acked-by: Chengwen Feng <fengchengwen at huawei.com>
Acked-by: Harry van Haaren <harry.van.haaren at intel.com>


Applied, thanks.

-- 
David Marchand



More information about the dev mailing list